Page 1 of 1
Is it possible to set up openvpn server as transparent proxy sever?
Posted: Fri Jun 04, 2021 3:13 pm
by tvrc
Hi everyone:
I need set up a vpn server. For some reasons, I hope that the client's IP will not be replaced with the server's IP when accessing the website through the VPN server. For example, the client's IP is 1.1.1.1 and the VPN server's IP is 2.2.2.2. When I visit google, google shows that the IP is 1.1.1.1 instead of the server's IP 2.2.2.2. Is it possible to do this using openvpn?
Hope to get your help. Thanks.
Re: Is it possible to set up openvpn server as transparent proxy sever?
Posted: Fri Jun 04, 2021 4:53 pm
by TinCanTech
tvrc wrote: ↑Fri Jun 04, 2021 3:13 pm
For example, the client's IP is 1.1.1.1 and the VPN server's IP is 2.2.2.2. When I visit google, google shows that the IP is 1.1.1.1 instead of the server's IP 2.2.2.2. Is it possible to do this using openvpn?
No.
Unless somebody cares to prove me wrong ..
Re: Is it possible to set up openvpn server as transparent proxy sever?
Posted: Sat Jun 05, 2021 2:28 am
by tvrc
TinCanTech wrote: ↑Fri Jun 04, 2021 4:53 pm
tvrc wrote: ↑Fri Jun 04, 2021 3:13 pm
For example, the client's IP is 1.1.1.1 and the VPN server's IP is 2.2.2.2. When I visit google, google shows that the IP is 1.1.1.1 instead of the server's IP 2.2.2.2. Is it possible to do this using openvpn?
No.
Unless somebody cares to prove me wrong ..
Thank you for your reply. Do you know if there are other software that can do this?
Re: Is it possible to set up openvpn server as transparent proxy sever?
Posted: Sat Jun 05, 2021 2:25 pm
by TinCanTech
I think you would need a magic lantern with a genie in it.
Re: Is it possible to set up openvpn server as transparent proxy sever?
Posted: Wed Jun 21, 2023 12:11 pm
by Nomyo
Hi, I've just register so I can answer you even if it's been 2 years.
Yes I believe it is possible, you need to spoof the ip to make the other server believe it's talking directly to the client.
You need to have a front router that would reroute any client packet to your transparent proxy which would then pass it to the final client. Then the final client talks to the proxy which then send a packet with the final client ip in it as if it didn't existed at all.
It's a "hacky" solution so probably not a very good one but anything is possible.
P.S.: I've been thinking...what's your use case? I mean, vpn first use is to change the ip and hide the client's infos, I don't see a use case apart from doing interception either for scanning and protection or to spy on users. Be careful with the laws of your country.