| Linode Forum https://forum.linode.com/ |
|
| iptables centos 5 https://forum.linode.com/viewtopic.php?f=19&t=6813 |
Page 1 of 1 |
| Author: | jcr [ Sat Mar 12, 2011 11:20 am ] |
| Post subject: | iptables centos 5 |
Hello, My linode works fine with Centos 5.5, two IPs (one for Apache and one for Nginx). ports 80and 21 are obviously open. Now, I am struggling to open port 30000. What puzzles me is that Code: iptables -L returns Code: Chain INPUT (policy ACCEPT) It looks like my current rules are somewhere else and that would explain why adding rules for port 30000 does not work. But I don't really understand what's going on here. Where are the rules for ports 80 declared? How could I add rles so that I can run bidirectionnal socket on that port. (I need that 30000 port to communicate with Canada Post's shipping module Thanks! |
|
| Author: | Vance [ Sat Mar 12, 2011 9:53 pm ] |
| Post subject: | |
CentOS keeps its firewall rules in the /etc/sysconfig/iptables file. According to the output you posted, your firewall is accepting all connections. What makes you think that port 30000 is not open? |
|
| Author: | jcr [ Sat Mar 12, 2011 11:14 pm ] |
| Post subject: | |
What makes me think that port 30000 is closed? That my script requiring port 300000 did not work of course! Since what you suggested made quite a bit of sense, I reviewed my script... found a problem... and, guess what?, I can now connect to CanadaPost. Thanks a ton! I guess I should consider closing all those ports... |
|
| Author: | sleddog [ Sun Mar 13, 2011 9:54 am ] |
| Post subject: | |
A port isn't "open" unless something is listening on it. To see open (listening) TCP ports, try: netstat -ltn And for UDP ports: netstat -lun |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|