
Originally Posted by
CharlesA
The port is not open on the client. You are only allowing traffic to go out on port 22.
You are correct. The firewall checks to see what the destination port is and if it is on the "allow out" list, it will allow it through the firewall. If the destination port is not on the allow out list, it will block the outbound connection.
As CharlesA is telling you, if you look at the actual rules you will see it has nothing to do with port 22 on the client.
Code:
iptables -A OUTPUT -p tcp -m port --dport 22 -j ALLOW
iptables -A OUTPUT -j DROP
Bookmarks