From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pascal Hambourg Subject: Re: Connect to localhost bound port from outside? Date: Wed, 31 Jan 2007 11:13:59 +0100 Message-ID: <45C06BE7.2080208@plouf.fr.eu.org> References: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="iso-8859-1"; format="flowed" To: netfilter@lists.netfilter.org Hello, jan_bar a =E9crit : >=20 > I want to connect from my VPN interface to the port that is bound to > (listening on) localhost. The server listens only on localhost, so it i= s not > visible to outside world and it seems that I cannot use iptables to for= ward > outside traffice from VPN to that port. Iptables will happily redirect anything you like to localhost, but the=20 kernel IP routing prohibits communications with a loopback address on a=20 non loopback interface and thus will drop the packets. This is similar=20 to the problem in the above thread "port forwarding through localhost",=20 and the same workaround is applicable.