Hi, On Sun, Jul 29, 2018 at 07:35:39AM -0700, Andrew Eisenberg wrote: > #1, 2, and 3 are all what I want and expect. However, #4 is not. I want > nginx to see the client's vpn address. How can I get this to happen?
You can't.
The openvpn client machine needs to be able to send packets to the openvpn
server "outside" the VPN - and since this is done with routing, it cannot
differenciate between "this is an openvpn packet" or "this is a nginx
packet".
On Linux, you might be able to do some tricks with iptables policy, but
OpenVPN does not do that out of the box. On Windows, I wouldn't know
an easy way to do that.
(Side note: on iOS and Android, the VPN api will solve this for you - so
what you want will actually *work* for iOS and Android clients).
Long story short: you could tell the clients to use the tunnel IP
address of the nginx server - that will alway go through the tunnel.
gert
--
"If was one thing all people took for granted, was conviction that if you
feed honest figures into a computer, honest figures come out. Never doubted
it myself till I met a computer with a sense of humor."
Robert A. Heinlein, The Moon is a Harsh Mistress
Gert Doering - Munich, Germany [email protected]
signature.asc
Description: PGP signature
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ Openvpn-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openvpn-users
