代码:

iptables -A INPUT -p tcp --dport 端口 -s 127.0.0.1 -j ACCEPT
iptables -A INPUT -p tcp --dport 端口 -j DROP



Powered by NoderCMS