*filter
:INPUT ACCEPT [35:6316]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [17:1648]
-A INPUT -p tcp -m tcp --dport 30009 -j REJECT
-A INPUT -s 127.0.0.1/32 -p tcp -m tcp --dport 30009 -j ACCEPT
COMMIT
这样貌似不行。
在服务器上是这样的
telnet 127.0.0.1 30009
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused