how do I port forward through loopback?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
I need to port forward all traffic locally going to port 80 to port 8040. For the external interface eth0 this works, I thought it would work for the internal/loopback as well. Nothing else is turned on
, all other settings are open.


/sbin/iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8040

this doesn't work for the internal network, 127.0.0.1 lo, not sure why
System info: Redhat7.3, 2.4.20 kernel, iptables-1.2.8-8.72.3
Thanks



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux