Score:0

Adopt IP of network connecting to without routing everything through the VPN

id flag

Is it possible with OpenVPN to adopt the IP of the network I'm connecting to, so to the outside it looks like I have the same IP instead of my own local one?

This could work when I route everything through the vpn with redirect-gateway def1 but is there a way without doing that? It really slows down speed overall and any other benefits of this aren't needed.

I just want the same IP for "whitelist reasons".

Current client config:

client
dev tun
proto udp
nobind
pull
resolv-retry infinite
key-direction 1
remote here_is_our_ip
script-security 2
comp-lzo
reneg-sec 0
cipher AES-256-CBC
auth SHA512

Some more details to explain my situation:

I have set up a OpenVPN server in our office network where we have a static IP. I want that co-workers that connect to our VPN have the same static IP like we have in the office instead their own dynamic IP that gets renewed from time to time by their ISP. The overall use for this is to whitelist our static IP on our website for matomo statistics. So when a co-worker in the home office accesses our website it's not counted in our statistics.

paladin avatar
id flag
It's unclear what you want. Please elaborate more. But if I understand you correct, you just need to use a global IP address. This is globally unique and doesn't need to be routed. In practice you need to use an IPv6 address.
jona avatar
id flag
@paladin Thanks, I've added some details.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.