限制 port 1978 只能給 localhost 連接


避免無聊的人來亂掃:

  • sudo iptables -A INPUT -p tcp -s 127.0.0.1 –dport 1978 -j ACCEPT
  • sudo iptables -A INPUT -p tcp –dport 1978 -j DROP

比較像在做大事業的方法,當然還是弄個放在 private area 的機器…。

Creative Commons License
This work, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.
  1. No comments yet.
(will not be published)