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: "jan_bar" <herkule9s@yahoo.com>
Date: Wed, 31 Jan 2007 10:43:17 +0100
Delivered-to: sp-com-lists@consult.net
Delivered-to: netfilter-list1@securepoint.com
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>
References: <eppgne$mc1$1@sea.gmane.org> <1170234205.4464.0.camel@localhost.localdomain>
Sender: netfilter-bounces@lists.netfilter.org
Thank you, but REDIRECT works fine only if the server listens on 0.0.0.0,
when the server listens on 127.0.0.1, it doesn't work.

kernel:  2.6.9-gentoo-r14
iptables: iptables-1.3.5-r4

Jan

-- 
Jan Bares
http://jan.vegetband.cz


"??????????? ??????" <casper@meteor.dp.ua> wrote in message
1170234205.4464.0.camel@localhost.localdomain">news:1170234205.4464.0.camel@localhost.localdomain...
> ÷ óOÄ, 31/01/2007 × 08:33 +0100, jan_bar ?ÉUAÔ:
> > Hi,
> >
> > 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.
>
> -j REDIRECT should do the job.
>
> -- 
> ?IËIÔÉIAÎËI ëIÓÔÉË <casper@meteor.dp.ua>
>
>
>





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