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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s