Re: reverse tunnel

[email protected]
Newsgroups gmane.org.user-groups.rlug.general
Message-ID <CACjhSfGdbWrENT2vKq6+nv=BCcqdLRRgCKTwqHwvOwQZKm1pOw@mail.gmail.com>
prerouting poate sa trimita si la un alt ip in reteaua locala

-A PREROUTING -d $IP_PUBLIC -p tcp -m tcp --dport $PORT -j DNAT
--to-destination $IP_LOCAL


2017-01-25 17:25 GMT+02:00 alex alex <[email protected]>:

> Cu iptableas am incercat, insa in momentul cind pachetul e livrat catre
> 127.0.0.1:port nu mai atinge procesul de network, deci iptables nu mai
> intervine. Am rezolvat cu socat.
> multumesc
>
> On Wed, Jan 25, 2017 at 5:14 PM, petrescs <[email protected]> wrote:
>
> > >
> > > 2/ exista aplicatie simpla prin care sa"leg" un port de alt port sau
> care
> > > sa forwardeze ce vine pe un port catre alt ip /port ?
> > >
> >
> > Ceva de genul asta ar merge?
> > iptables -t nat -A PREROUTING -p tcp --dport 8888 -j REDIRECT --to-port
> 888
> > _______________________________________________
> > RLUG mailing list
> > [email protected]
> > http://lists.lug.ro/mailman/listinfo/rlug
> >
> _______________________________________________
> RLUG mailing list
> [email protected]
> http://lists.lug.ro/mailman/listinfo/rlug
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.