On Tue, 2004-05-18 at 15:59, Mark wrote: > 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 To get nat to work on the local interface you have to compile the kernel with local nat support. The catch is that normal nat stops working. -- -- Raymond Leach <raymondl@xxxxxxxxxxxxxxxxxxxxxx> Network Support Specialist http://www.knowledgefactory.co.za "lynx -source http://www.rchq.co.za/raymondl.asc | gpg --import" Key fingerprint = 7209 A695 9EE0 E971 A9AD 00EE 8757 EE47 F06F FB28 --
Attachment:
signature.asc
Description: This is a digitally signed message part