How can I block all ports except some on Debian? [closed]

0 投票
最新提问 用户: (120 分)

I am trying to use iptables but I am clueless in understanding the documentation even so that I've locked myself out of my server twice already whilst trying to implement it.

These are the simple rules that I want to implement:

  • Allow ports 80, 6667 and 6697 to everyone
  • Allow port 22 to just my IP for example 10.10.10.10

Please can someone help me implement these simple rules, without locking myself out?

发表于 用户: (140 分)
Stackoverflow is for help with software development. You should consider asking this on Unix & Linux or Super User.

登录 或者 注册 后回答这个问题。

欢迎来到 Security Q&A ,有什么不懂的可以尽管在这里提问,你将会收到社区其他成员的回答。
...