Port forwarding to a remote host AND local processing on redhat linux

Sep 27, 2006 5 Replies

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.



formatting link
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

I don't know a possibility to copy packets (with iptables). Therefore I said: 'Forget it'.

Wolfgang

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 aga> I use kernel 2.4.x.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required