iptables - how do I unblock a port?
-
I set up the server with iptables from the vpsbible guide. How do I unblock certain ports?
Posted 2 years ago # -
hey OSB ..
#assume root
sudo -i
#do this:-
iptables-save > /etc/iptables_temp
sudo nano /etc/iptables_temp
# add some rule like:-
-A INPUT -p tcp -m tcp --dport 123 -j ACCEPT
#where 123 is the port you wanna open.
iptables-restore < /etc/iptables_temp
iptables-save > /etc/iptables.rules
#check the new rule is active:-
iptables -L
#look for a line like:-
ACCEPT tcp -- anywhere anywhere tcp dpt:123
#leave sudo
exitthassit .. huh, guess i'll have to tut that!
Posted 2 years ago # -
PS .. good iptables reference here, care of guvnr:-
HACK-PROOF 9.10 Anti-Virus & Firewall [KARMIC KOALA BIBLE #19] - GUVNR
Posted 2 years ago # -
thanks guvnr!
Posted 2 years ago #
Reply
You must log in to post.
Want HTML?
a blockquote code em strong ul ol liPlace code between backticks `codeHere`
You've got it.
