On Friday 01 January 2010, Alexander wrote: > On Friday 01 January 2010 03:07:42 Etaoin Shrdlu wrote: > > On Thursday 31 December 2009, Alexander wrote: > > > Is there a way to redirect TCP connections from external network > > > interfaces to the local/loopback in network 127.0.0.0/8? I need > > > functionality like DNAT target in iptables. > > > > Uh...why don't you use DNAT then? > > This doesn't work, because kernel drops any packets that come from external > network to 127.0.0.0/8.
Of course it does. But in these cases, the workaround is assigning a non-127 address to the lo interface, like 192.168.0.1/32 for example, and DNAT to that address (and have whatever program should receive the data listen on 192.168.0.1, of course).