etrader Posted June 3, 2009 Share Posted June 3, 2009 I add rule lines to iptables in Linux Firewall, but closed ports will not be opened. My iptables is as follows, but pots 23, 5900, 5800, 5500 are still closed. # Firewall configuration written by system-config-firewall # Manual customization of this file is not recommended. *filter :FORWARD ACCEPT [0:0] :INPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT -A INPUT -p icmp -m icmp --icmp-type echo-request -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -i eth0 -j ACCEPT -A INPUT -p tcp -m state -m tcp --dport 22 --state NEW -j ACCEPT -A INPUT -p tcp -m state -m tcp --dport 23 --state NEW -j ACCEPT -A INPUT -p tcp -m state -m tcp --dport 80 --state NEW -j ACCEPT -A INPUT -p tcp -m state -m tcp --dport 21 --state NEW -j ACCEPT -A INPUT -p tcp -m state -m tcp --dport 443 --state NEW -j ACCEPT -A INPUT -p tcp -m state -m tcp --dport 53 --state NEW -j ACCEPT -A INPUT -p udp -m state -m udp --dport 53 --state NEW -j ACCEPT -A INPUT -p tcp -m state -m tcp --dport 5900 --state NEW -j ACCEPT -A INPUT -p tcp -m state -m tcp --dport 5800 --state NEW -j ACCEPT -A INPUT -p tcp -m state -m tcp --dport 5500 --state NEW -j ACCEPT -A INPUT -p tcp -m state -m tcp --dport 10000 --state NEW -j ACCEPT -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT -A FORWARD -p icmp -m icmp --icmp-type echo-request -j ACCEPT -A FORWARD -p icmp -j ACCEPT -A FORWARD -i lo -j ACCEPT -A FORWARD -i eth0 -j ACCEPT -A FORWARD -j ACCEPT -A INPUT -j ACCEPT COMMIT # Generated by webmin *mangle :FORWARD ACCEPT [0:0] :INPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0] :PREROUTING ACCEPT [0:0] :POSTROUTING ACCEPT [0:0] COMMIT # Completed # Generated by webmin *nat :OUTPUT ACCEPT [0:0] :PREROUTING ACCEPT [0:0] :POSTROUTING ACCEPT [0:0] COMMIT # Completed Quote Link to comment https://forums.phpfreaks.com/topic/160747-cannot-open-ports-by-linux-firewall/ Share on other sites More sharing options...
steviewdr Posted June 3, 2009 Share Posted June 3, 2009 Did you restart the firewall after you edited/changed the config? -steve Quote Link to comment https://forums.phpfreaks.com/topic/160747-cannot-open-ports-by-linux-firewall/#findComment-848500 Share on other sites More sharing options...
etrader Posted June 3, 2009 Author Share Posted June 3, 2009 Did you restart the firewall after you edited/changed the config? -steve yes I successfully restart iptables; everything is [OK] Quote Link to comment https://forums.phpfreaks.com/topic/160747-cannot-open-ports-by-linux-firewall/#findComment-848600 Share on other sites More sharing options...
etrader Posted June 6, 2009 Author Share Posted June 6, 2009 I totally removed the Linux firewall to allow all traffics, but the ports are still closed. Do you have any idea which is blocking my ports ? Quote Link to comment https://forums.phpfreaks.com/topic/160747-cannot-open-ports-by-linux-firewall/#findComment-850543 Share on other sites More sharing options...
chipmunken Posted June 6, 2009 Share Posted June 6, 2009 SELinux? or what firewall is being used? Quote Link to comment https://forums.phpfreaks.com/topic/160747-cannot-open-ports-by-linux-firewall/#findComment-850566 Share on other sites More sharing options...
etrader Posted June 6, 2009 Author Share Posted June 6, 2009 SELinux? or what firewall is being used? OS is Fedora 10, and CP is Webmin; I use Webmin Linux Firewall Quote Link to comment https://forums.phpfreaks.com/topic/160747-cannot-open-ports-by-linux-firewall/#findComment-850570 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.