Oh, and just in case any one else hits this problem. Initially, I couldn't
get any pages to load when I specified the DNS server. It was this issue:
https://serverfault.com/questions/318563/how-to-push-
my-own-dns-server-to-openvpn
But since there are no instructions for MacOS, I had to specify the DNS
server client-side. And I am asking all the other clients to do the same.
On Mon, Jul 30, 2018 at 10:09 PM, Andrew Eisenberg <
[email protected]> wrote:
> Thanks everyone for your suggestions and advice. In the end, I simply
> added the VPN IP address of the VPN server as the primary DNS server. Now
> all communication with the VPN server will use the VPN IP address of the
> client for communication.
>
> I do realize that there are limitations to this approach, but it works for
> us since we only have a handful of VPN users.
>
> On Sun, Jul 29, 2018 at 11:13 AM, Gert Doering <[email protected]>
> wrote:
>
>> 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]
>>
>
>
------------------------------------------------------------------------------
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