Hi,
What iptables command do I need to run in order to open up the following port for incomming traffic on the following server:
# telnet 127.0.0.1 1521
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection refused
R,
D.
Add the following line in /etc/sysconfig/iptables before the FORWARD chain:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 1521 -j ACCEPT
And restart the iptables service:
service iptables restart
Check if the port is open now:
iptables -L
nicks
3
Kindly run the following command sequences on root terminal.
iptables -I INPUT -m state --state NEW -p tcp --dport 1521 -j ACCEPT
iptables -I INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
/etc/init.d/iptables save
iptables -A INPUT -p tcp -m tcp --dport 1521 -j ACCEPT
iptables save
service iptables restart