NetFilter
[Top] [All Lists]

Re: Connect to localhost bound port from outside?

To: netfilter@lists.netfilter.org
Subject: Re: Connect to localhost bound port from outside?
From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
Date: Wed, 31 Jan 2007 11:13:59 +0100
Delivered-to: sp-com-lists@consult.net
Delivered-to: netfilter-list1@securepoint.com
In-reply-to: <eppgne$mc1$1@sea.gmane.org>
List-archive: </pipermail/netfilter>
List-help: <mailto:netfilter-request@lists.netfilter.org?subject=help>
List-id: General discussion and user questions <netfilter.lists.netfilter.org>
List-post: <mailto:netfilter@lists.netfilter.org>
List-subscribe: <https://lists.netfilter.org/mailman/listinfo/netfilter>, <mailto:netfilter-request@lists.netfilter.org?subject=subscribe>
List-unsubscribe: <https://lists.netfilter.org/mailman/listinfo/netfilter>, <mailto:netfilter-request@lists.netfilter.org?subject=unsubscribe>
Organization: Plouf !
References: <eppgne$mc1$1@sea.gmane.org>
Sender: netfilter-bounces@lists.netfilter.org
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
Hello,

jan_bar a écrit :

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 is not
visible to outside world and it seems that I cannot use iptables to forward
outside traffice from VPN to that port.

Iptables will happily redirect anything you like to localhost, but the kernel IP routing prohibits communications with a loopback address on a non loopback interface and thus will drop the packets. This is similar to the problem in the above thread "port forwarding through localhost", and the same workaround is applicable.


<Prev in Thread] Current Thread [Next in Thread>