All pastes #525706 Raw Edit

Mine

public text v1 · immutable
#525706 ·published 2007-05-31 13:59 UTC
rendered paste body
sudo iptables -A INPUT -p ALL -j REJECT
sudo iptables -A INPUT -p tcp --destination-port 22 -j ACCEPT
sudo iptables -A OUTPUT -p ALL -j REJECT
sudo iptables -A OUTPUT -p tcp --destination-port 22 -m state --state ESTABLISHED,RELATED -j ACCEPT

change to:

sudo iptables -A INPUT -p ALL -j REJECT
sudo iptables -A INPUT -p tcp --destination-port 5566 -j ACCEPT
sudo iptables -A OUTPUT -p ALL -j REJECT
sudo iptables -A OUTPUT -p tcp --destination-port 22 -m state --state ESTABLISHED,RELATED -j ACCEPT

?