How can I block all ports except
- ssh (port 22)
- httpd (port 80)
using iptables and iphains?
feedback
|
This question came from our site for professional and enthusiast programmers.
|
Ipchains are old and i do not reccomend it simple script
| |||||
feedback
|
|
Which Linux distribution? You may be better off using a higher level firewall like ufw | |||
|
feedback
|