PDA

View Full Version : [ubuntu] ip tables


num
April 2nd, 2009, 11:33 AM
hello,

how can i open a port in ip tables?

cdenley
April 2nd, 2009, 12:03 PM
How have you configured iptables to "close" the port? There are various ways to configure iptables.

bodhi.zazen
April 2nd, 2009, 12:03 PM
sudo iptables -A INPUT -p tcp --dport xx -j ACCEPT

xx = port number (ie 22 , 80, 443 , etc)

You can also use multiport.

http://bodhizazen.net/Tutorials/iptables

hyper_ch
April 2nd, 2009, 06:54 PM
if you did not mess with iptables you'd just need to start a server that listens on a given port.

The Cog
April 3rd, 2009, 04:46 AM
In a default installation, iptables is not blocking any ports. If you have configured iptables to block ports after installation, then you need to reverse or adapt your iptables/firewalls rules that you appplied.

If the client you are trying to use is telling you connection refused, then iptables is probably not blocking the port, and your problem is probably that there is no application listening for connections on that port.