Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

ubuntu iptables open ssh output port

//add rule
sudo iptables -A OUTPUT -p tcp -m tcp --dport 22 -m state --state NEW -j ACCEPT
//check rules
sudo iptables -S
 
PREVIOUS NEXT
Tagged: #ubuntu #iptables #open #ssh #output #port
ADD COMMENT
Topic
Name
6+9 =