一、filter表防火墙(过滤器)

 

iptables -A ( INPUT OUTPUT ) -s 192.1680.1.200 -p ( TCP UDP ICMP ) -i ( eth0 eth1 )  ( --dport --sport ) 80 -j (ACCEPT DROP)

 

二、nat表防火墙 (地址转换)

iptables -t nat -A PREROUTING ......

 


[root@tp ~]# iptables -F        清除预设表filter中的所有规则链的规则
[root@tp ~]# iptables -X        清除预设表filter中使用者自定链中的规则
 
查看filter表:
[root@tp ~]# iptables -L -n

查看本机关于NAT的设置情况

[root@tp rc.d]# iptables -t nat -L

 

 

 

 

 

 

dd

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-23
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2021-07-19
猜你喜欢
  • 2021-09-01
  • 2021-06-19
  • 2022-12-23
  • 2021-12-05
  • 2021-11-27
  • 2021-10-20
  • 2021-08-16
相关资源
相似解决方案