Logs behind a transparent proxy
Hi,
I'd like to make a "really" transparent bridge using a proxy. Though when watching my logs on my server (behind the bridge), I always get the proxy IP (which is normal). I'd like to know if there's an existing patch to iptables that could hide the proxy's adress by putting back the real source adress when the traffic is coming from Internet.
Gregory
Quoted 7 lines · Grégory
Hi,
I'd like to make a "really" transparent bridge using a proxy. Though when watching my logs on my server (behind the bridge), I always get the proxy IP (which is normal). I'd like to know if there's an existing patch to iptables that could hide the proxy's adress by putting back the real source adress when the traffic is coming from Internet.
If I understand correctly, the bridge proxy will make new IP packets to talk with the server and therefore the IP packets have the proxy's IP. Because these are new packets, it seems hard to get your requested behaviour using iptables. I think it's much easier to hack the code of the proxy, maybe it's even already an option there.
Signature · 2 lines
cheers, Bart
Quoted 8 lines · Bart De Schuymer
Quoted 6 lines · Grégory
I'd like to make a "really" transparent bridge using a proxy. Though when watching my logs on my server (behind the bridge), I always get the proxy IP (which is normal). I'd like to know if there's an existing patch to iptables that could hide the proxy's adress by putting back the real source adress when the traffic is coming from Internet.
Quoted 5 lines
If I understand correctly, the bridge proxy will make new IP packets to talk with the server and therefore the IP packets have the proxy's IP. Because these are new packets, it seems hard to get your requested behaviour using iptables. I think it's much easier to hack the code of the proxy, maybe it's even already an option there.
Check my transparent proxy patches. They are reported to work in bridging mode, though a couple of conflicts in the patches need to be sorted out.
Note that your proxy need to be modified a bit to be able to do what you want.
http://www.balabit.hu/en/downloads/tproxy/
Signature · 2 lines
Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1