Howto open ports using iptables, see the following examples:
Open port 25 (SMTP) for the SOURCE_IP address:
iptables -A INPUT -p tcp -s SOURCE_IP –dport 25 -j ACCEPT
Open port 22 (SSH) for the SOURCE_IP address to a specific DESTINATION_IP address
iptables -A INPUT -p tcp -s SOURCE_IP –dport 22 -d DESTINATION_IP -j ACCEPT
More to come…
Comments are closed.