# 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

最新文章

  1. HBase数据模型剖析
  2. linux设备分类
  3. POJ 1099 Square Ice
  4. windows上安装winsshd
  5. 利用CSS3的transform 3D制作的立方体旋转效果
  6. C# File类的操作
  7. [转]makefile文件的编写规则及实例
  8. 插入排序的性能测试对比(C与C++实现)
  9. web移动端类型检测
  10. SQL约束(主键约束、外键约束、自动递增、不允许空值、值唯一、值默认、值限制范围)
  11. 使用Java解析XML
  12. 完美解决"Encountered an NTFS Volume with a logfile ..."
  13. ODAC(V9.5.15) 学习笔记(十二)TOraLoader
  14. Restrict & Cascade
  15. Git直接拉取远程分支
  16. Java有序数组的实现
  17. laravel 5.5 《电商实战 》基础布局
  18. linux网卡的开启
  19. mongodb可以通过profile来监控数据 (mongodb性能优化)
  20. Linux光标移动异常

热门文章

  1. 使用Spring Data Redis操作Redis(单机版)
  2. http://www.doframe.com/jetoolweb/index.html
  3. Java实现网页截屏
  4. Guava ---- Concurrent并发
  5. ICONFONT在APP中的使用
  6. C#数据库连接池 MySql SqlServer
  7. 【日常学习】codevs1287 矩阵乘法题解
  8. Axure使用笔记
  9. seajs载入流程图
  10. 设置ArcGIS的数据源