my-first-blog-lgz

转至:https://www.cnblogs.com/kevin-yang123/p/9916572.html

二、关闭端口号:

iptables -A OUTPUT -p tcp --dport 端口号-j DROP

 

三、打开端口号:

iptables -A INPUT -ptcp --dport  8099 -j ACCEPT


service iptables save 保存设置

 



四、以下是linux打开端口命令的使用方法。 
  nc -lp 23 &(打开23端口,即telnet) 
  netstat -an | grep 23 (查看是否打开23端口) 
五、linux打开端口命令每一个打开的端口,都需要有相应的监听程序才可以

分类:

技术点:

相关文章:

  • 2021-09-07
  • 2021-11-02
  • 2021-12-31
  • 2021-11-30
  • 2022-12-23
  • 2021-09-17
猜你喜欢
  • 2022-01-07
  • 2021-11-02
  • 2021-04-15
  • 2021-11-30
  • 2021-11-02
  • 2022-02-09
相关资源
相似解决方案