Gentoo Archives: gentoo-user

From: Etaoin Shrdlu <shrdlu@×××××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] redirect connections to localhost
Date: Fri, 01 Jan 2010 12:06:56
Message-Id: 201001011138.36625.shrdlu@unlimitedmail.org
In Reply to: Re: [gentoo-user] redirect connections to localhost by Alexander
1 On Friday 01 January 2010, Alexander wrote:
2 > On Friday 01 January 2010 03:07:42 Etaoin Shrdlu wrote:
3 > > On Thursday 31 December 2009, Alexander wrote:
4 > > > Is there a way to redirect TCP connections from external network
5 > > > interfaces to the local/loopback in network 127.0.0.0/8? I need
6 > > > functionality like DNAT target in iptables.
7 > >
8 > > Uh...why don't you use DNAT then?
9 >
10 > This doesn't work, because kernel drops any packets that come from external
11 > network to 127.0.0.0/8.
12
13 Of course it does. But in these cases, the workaround is assigning a non-127
14 address to the lo interface, like 192.168.0.1/32 for example, and DNAT to that
15 address (and have whatever program should receive the data listen on
16 192.168.0.1, of course).

Replies

Subject Author
Re: [gentoo-user] redirect connections to localhost Alexander <b3nder@××××××.ru>