Simple IPTABLES problem
Hi,
I got a simple IPTABLES rule question. I want to redirect the incoming 80 port (of a specific IP address) to the port 22 of my router what is happen to be a linux box (debian).
This is my rule line (someone wrote me before in this forum):
iptables -t nat -A PREROUTING -i eth1 -s 192.168.0.7 -p tcp --dport 80 -j REDIRECT --to-ports 22
But when I want to enable it I got this error message:
"iptables: No chain/target/match by that name"
If I comment it out everything is fine all my other rules are running perfectly.
The eth1 is the interface of my internal newtwork (my subnet).
I got another interface (eth0 what is also the ppp0 since I'm using PPPoE connection).
Thanks!
Zahoo
|