Open port in linux

From: http://www.tixati.com/optimize/open-ports-linux.html

If you want to open an incoming TCP port, type the following:

iptables -I INPUT -p tcp –dport 12345 –syn -j ACCEPT

If you want to open a UDP port (perhaps for DHT in Tixati), type the following:

iptables -I INPUT -p udp –dport 12345 -j ACCEPT

After you are done opening ports in your firewall, you can save your changes so they will be applied when you restart your computer by typing the following command:

service iptables save
Advertisements