Hello,
I wish you're fine
![Smiley :)](https://forum.mratwork.com/Smileys/default/smiley.gif)
I tried to open a new port in the firewall but not working,
I'm using this firewall script
http://oldwiki.lxcenter.org/How+to+secure+your+Kloxo+with+IPTABLESSo, I did the following :
Edited the firewall scipt and added this lines :
# 2087
iptables -t filter -A OUTPUT -p tcp --dport 2087 -j ACCEPT
iptables -t filter -A INPUT -p tcp --dport 2087 -j ACCEPT
echo - 2087 : [OK]
then restarted the firewall ...
[root@s2 ~]# /etc/init.d/firewall restart
the port still closed !
So, I Tried :
iptables -t filter -A OUTPUT -p tcp --dport 2087 -j ACCEPT
iptables -t filter -A OUTPUT -p udp --dport 2087 -j ACCEPT
iptables -t filter -A INPUT -p tcp --dport 2087 -j ACCEPT
iptables -t filter -A INPUT -p udp --dport 2087 -j ACCEPT
Still the same !
And
iptables -A INPUT -p tcp --dport 2087 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A INPUT -p udp --dport 2087 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A INPUT -p tcp --dport 2087 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A INPUT -p udp --dport 2087 -m state --state NEW,ESTABLISHED -j ACCEPT
With no luck at all !
[root@s2 ~]# netstat -ntul
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:2014 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:7776 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:7779 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:2020 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:2021 0.0.0.0:* LISTEN
tcp 0 0 :::3306 :::* LISTEN
tcp 0 0 :::587 :::* LISTEN
tcp 0 0 :::110 :::* LISTEN
tcp 0 0 :::143 :::* LISTEN
tcp 0 0 :::80 :::* LISTEN
tcp 0 0 :::465 :::* LISTEN
tcp 0 0 :::25 :::* LISTEN
tcp 0 0 :::443 :::* LISTEN
tcp 0 0 :::2014 :::* LISTEN
tcp 0 0 :::993 :::* LISTEN
tcp 0 0 :::995 :::* LISTEN
[root@s2 ~]#
How to open a port?
![Smiley :)](https://forum.mratwork.com/Smileys/default/smiley.gif)
Thanks in advance.