Open specific port using terminal (Ubuntu)

Getting Started

Open the terminal (Ctrl+Alt+T) and run this command (root privileges is required):
root@penreturns:~$ su

root@penreturns:~$ sudo iptables -A INPUT -p tcp -d 0/0 -s 0/0 --dport 80 -j ACCEPT


Replace 80 with the port you want to open.

That's it!

*copy code without root@penreturns:~$ 

Reply to this post

Post a Comment