codingking
 比如只允许在192.168.62.1上使用ssh远程登录,从其它计算机上禁止使用
#iptables -A INPUT -s 192.168.62.1 -p tcp --dport 22 -j ACCEPT 
#iptables -A INPUT -p tcp --dport 22 -j DROP
 
#/etc/rc.d/init.d/iptables save
#service iptables restart 
 
注:防火墙设置可能导致外部socket无法连接到服务器

分类:

技术点:

相关文章:

  • 2021-11-19
  • 2021-07-25
  • 2021-10-19
  • 2021-07-16
  • 2021-10-31
  • 2021-10-29
  • 2022-12-23
  • 2021-11-18
猜你喜欢
  • 2021-11-30
  • 2021-12-10
  • 2021-12-10
  • 2022-12-23
  • 2021-04-03
相关资源
相似解决方案