Port forwarding to a remote host AND local processing on redhat linux
Port forwarding to a remote host AND local processing on redhat linux
am 27.09.2006 18:32:15 von ceek63
I use kernel 2.4.x.
My requirement is to do port forwarding to a remote host AND to process
these
packets locally.
I tried using iptables for port forwarding. It works. But I can't
process these
packets locally as well i.e. I need to pass these packets to a local
application
for further processing in addition to remote host forwarding.
Any other tips other than using iptables?
Thanks for the help.
Re: Port forwarding to a remote host AND local processing on redhat linux
am 27.09.2006 21:40:29 von Wolfgang Kueter
ceek63@yahoo.com wrote:
> I use kernel 2.4.x.
> My requirement is to do port forwarding to a remote host AND to process
> these packets locally.
http://www.iptables.org/documentation/HOWTO//packet-filterin g-HOWTO-6.html
Port Forwarding means address rewriting and that means routing and the
packet is processed in the FORWARD chain. You would have to copy the
packets before the address rewritten, rewrite the address of one packet and
leave the other untouched ... forget it.
Wolfgang
Re: Port forwarding to a remote host AND local processing on redhat linux
am 28.09.2006 00:44:07 von ceek63
Can you share the rule for COPY operation?
Wolfgang Kueter wrote:
> ceek63@yahoo.com wrote:
>
> > I use kernel 2.4.x.
> > My requirement is to do port forwarding to a remote host AND to process
> > these packets locally.
>
> http://www.iptables.org/documentation/HOWTO//packet-filterin g-HOWTO-6.html
>
> Port Forwarding means address rewriting and that means routing and the
> packet is processed in the FORWARD chain. You would have to copy the
> packets before the address rewritten, rewrite the address of one packet and
> leave the other untouched ... forget it.
>
> Wolfgang
Re: Port forwarding to a remote host AND local processing on redhat linux
am 28.09.2006 01:13:36 von ceek63
If you are referring to the use of --tee option in ROUTE target,
unfortunately it's not an acceptable choice for my project.
ceek63@yahoo.com wrote:
> Can you share the rule for COPY operation?
>
> Wolfgang Kueter wrote:
> > ceek63@yahoo.com wrote:
> >
> > > I use kernel 2.4.x.
> > > My requirement is to do port forwarding to a remote host AND to process
> > > these packets locally.
> >
> > http://www.iptables.org/documentation/HOWTO//packet-filterin g-HOWTO-6.html
> >
> > Port Forwarding means address rewriting and that means routing and the
> > packet is processed in the FORWARD chain. You would have to copy the
> > packets before the address rewritten, rewrite the address of one packet and
> > leave the other untouched ... forget it.
> >
> > Wolfgang
Re: Port forwarding to a remote host AND local processing on redhat linux
am 28.09.2006 19:33:10 von Wolfgang Kueter
ceek63@yahoo.com wrote:
> Can you share the rule for COPY operation?
I don't know a possibility to copy packets (with iptables). Therefore I
said: 'Forget it'.
Wolfgang
Re: Port forwarding to a remote host AND local processing on redhatlinux
am 29.09.2006 19:09:05 von Jeff B
this kind of thing is solved with Proxy solutions, but there's big
questions as to WHY one would attempt this data flow. The connection to
the client-server imply atomic processing. IF you need some kind of
'back-end' support, it would normally be an extract or secondary process
from the original server. Simple dual-logging would be straight from
the proxy.
So again, what are you trying to do?
ceek63@yahoo.com wrote:
> I use kernel 2.4.x.
> My requirement is to do port forwarding to a remote host AND to process
> these
> packets locally.
>
> I tried using iptables for port forwarding. It works. But I can't
> process these
> packets locally as well i.e. I need to pass these packets to a local
> application
> for further processing in addition to remote host forwarding.
>
> Any other tips other than using iptables?
> Thanks for the help.
>
--
try a random act of kindness today -- you just might surprise even
yourself :)