Can't add a Port address translation rule
Hi All,
I try since two days to redirect traffic coming in a port to another address and port, the problem is that iptables returns me : Code:
iptables: No chain/target/match by that name. iptables version iptables v1.4.12 here the rules Code:
iptables -v -t nat -D PREROUTING -p tcp --dport 80 -j DNAT --to-dest Thank you |
Option "-D" means to delete specific rule, you want to use option "-I PREROUTING" or "-A PREROUTING" to add new rule. Remember also to enable forwarding on this machine, by for example:
Code:
echo 1 > /proc/sys/net/ipv4/ip_forward |
Thank you eSelix, this fixes my problem.
|
All times are GMT -5. The time now is 09:06 AM. |