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.
Is it possible to set up openvpn server as transparent proxy sever?
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 2
- Joined: Thu Jun 03, 2021 3:19 pm
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
-
- OpenVpn Newbie
- Posts: 2
- Joined: Thu Jun 03, 2021 3:19 pm
Re: Is it possible to set up openvpn server as transparent proxy sever?
Thank you for your reply. Do you know if there are other software that can do this?
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Is it possible to set up openvpn server as transparent proxy sever?
I think you would need a magic lantern with a genie in it.
-
- OpenVpn Newbie
- Posts: 1
- Joined: Wed Jun 21, 2023 12:03 pm
Re: Is it possible to set up openvpn server as transparent proxy sever?
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.
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.