I used to be able to do this: iptables -t nat -I OUTPUT -p icmp --icmp-type echo-request -j REDIRECT And then be able to ping any IP address as everything was redirected back to 127.0.0.1. Not sure when it stopped working but it doesn't work now on 9.2 or 9.1 with latest kernels. What magic runes & invocations are required to get this working again? Cosmo
iptables -t nat -A OUTPUT -p icmp -j REJECT El Martes, 1 de Marzo de 2005 16:56, Mr Banana escribió:
I used to be able to do this:
iptables -t nat -I OUTPUT -p icmp --icmp-type echo-request -j REDIRECT
And then be able to ping any IP address as everything was redirected back to 127.0.0.1. Not sure when it stopped working but it doesn't work now on 9.2 or 9.1 with latest kernels.
What magic runes & invocations are required to get this working again?
Cosmo
-- Francisco Javier Lopez Vazquez Administrador UNIX/Linux Dba Oracle Randstad ICT tlf 914906137
Francisco Javier Lopez wrote:
iptables -t nat -A OUTPUT -p icmp -j REJECT
No good... root@koetsu [/root] iptables -t nat -A OUTPUT -p icmp -j REJECT iptables: Invalid argument Any other ideas? Cosmo
El Martes, 1 de Marzo de 2005 16:56, Mr Banana escribió:
I used to be able to do this:
iptables -t nat -I OUTPUT -p icmp --icmp-type echo-request -j REDIRECT
And then be able to ping any IP address as everything was redirected back to 127.0.0.1. Not sure when it stopped working but it doesn't work now on 9.2 or 9.1 with latest kernels.
What magic runes & invocations are required to get this working again?
Cosmo
Mr Banana wrote:
I used to be able to do this:
iptables -t nat -I OUTPUT -p icmp --icmp-type echo-request -j REDIRECT
And then be able to ping any IP address as everything was redirected back to 127.0.0.1. Not sure when it stopped working but it doesn't work now on 9.2 or 9.1 with latest kernels.
Found the answer. I needed to rebuild the kernel netfilter modules with CONFIG_IP_NF_NAT_LOCAL=y It would be nice if this could be done in the stock kernel to go back to previous behaviour. Any idea why it was changed? Cosmo
participants (2)
-
Francisco Javier Lopez
-
Mr Banana