iptables -m, -p 参数说明


 

-m: module_name

-p:protocol

 

iptables -p tcp : 表示使用 TCP协议

iptables -m tcp:表示使用TCP模块的扩展功能(tcp扩展模块提供了 --dport, --tcp-flags, --sync等功能)

eg:

-A INPUT -p tcp -m state --state NEW -m tcp --dport 20022 -j ACCEPT

(表示:允许其他机器访问本机的 TCP端口 20022)

 

相关文章:

  • 2021-12-22
  • 2022-01-12
  • 2021-12-13
  • 2021-11-26
  • 2021-08-29
  • 2021-10-19
  • 2021-11-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-28
  • 2022-12-23
  • 2021-07-13
  • 2021-06-02
相关资源
相似解决方案