|
Forward all request on port 22
Hi Everyone,
In my iptables there aren't any rules defined. Now I want to forward all requests to port 22 on 10.0.0.32 to port 22 on destination 10.0.0.16.
This is the rule I use:
iptables -A FORWARD -p tcp --sport 22 --dport 22 -d 10.0.0.16 -j ACCEPT
After inserting this rule and I try to connect to this server (10.0.0.32) with putty on port 22. I'm getting the error message 'Connection refused'.
When I connect direct to 10.0.0.16 on port 22 I can login to this computer. So my quess it a problem with the forwarding on 10.0.0.32, because the firewall of 10.0.0.16 accepts all connections on port 22.
Even with the firewall off on 10.0.0.16 it still doesn't work. What's wrong with my rule?
Thanks Arian
Last edited by Abstractt; 03-19-2008 at 08:03 AM.
|