I am trying to forward the outbound traffic to another server. Current rule is:
/sbin/iptables -A OUTPUT -p tcp -s localhost -o 91.xxx.xxx.xxx --dport 65000:65010 -j ACCEPT
but when I do a iptables -L, the rule its showed like this:
ACCEPT tcp -- localhost.localdomain anywhere tcp dpts:65000:65010
So I guess my rule is bad written since the "destination" column shows "anywhere"
Can you help me with this?