[ubuntu] Iptables Help

view story

http://ubuntuforums.org – I'm trying to set up iptables to block all traffic except ssh but, no matter what I do, it's blocking outgoing ssh. The commands that I'm using are shown below. Oddly, I can SSH into the box, just not out. I'm using Ubuntu Server 10.10 if it makes any difference. # Flush existing rules sudo iptables --flush # default policies sudo iptables -P INPUT DROP sudo iptables -P OUTPUT ACCEPT sudo iptables -P FORWARD ACCEPT # allow unlimited traffic on loopback sudo iptables -A INPUT -i lo -j ACCEPT sudo iptables -A OUTPUT -o lo -j ACCEPT # allow ssh sudo iptables -A INPUT -p tcp --d (Hardware)