重置iptables
2024-08-23 06:39:36
# reset the default policies in the filter table.
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
# reset the default policies in the nat table.
iptables -t nat -P PREROUTING ACCEPT
iptables -t nat -P POSTROUTING ACCEPT
iptables -t nat -P OUTPUT ACCEPT
# reset the default policies in the mangle table.
iptables -t mangle -P PREROUTING ACCEPT
iptables -t mangle -P OUTPUT ACCEPT
# flush all the rules in the filter and nat tables.
iptables -F
iptables -t nat -F
iptables -t mangle -F
# erase all chains that's not default in filter and nat table.
iptables -X
iptables -t nat -X
iptables -t mangle -X
最新文章
- HBase数据模型剖析
- linux设备分类
- POJ 1099 Square Ice
- windows上安装winsshd
- 利用CSS3的transform 3D制作的立方体旋转效果
- C# File类的操作
- [转]makefile文件的编写规则及实例
- 插入排序的性能测试对比(C与C++实现)
- web移动端类型检测
- SQL约束(主键约束、外键约束、自动递增、不允许空值、值唯一、值默认、值限制范围)
- 使用Java解析XML
- 完美解决";Encountered an NTFS Volume with a logfile ...";
- ODAC(V9.5.15) 学习笔记(十二)TOraLoader
- Restrict &; Cascade
- Git直接拉取远程分支
- Java有序数组的实现
- laravel 5.5 《电商实战 》基础布局
- linux网卡的开启
- mongodb可以通过profile来监控数据 (mongodb性能优化)
- Linux光标移动异常