OPNsense Forum

Archive => 20.1 Legacy Series => Topic started by: Ikes_72000 on June 26, 2020, 10:04:12 PM

Title: NAT one LAN to VPN, DNS problems
Post by: Ikes_72000 on June 26, 2020, 10:04:12 PM
Hi,

I need to do NAT between one of my LAN and a VPN (NordVpn).

Configuration of OpenVPN client is ok.

(https://zupimages.net/up/20/26/refv.png) (https://zupimages.net/viewer.php?id=20/26/refv.png)

I created an interface for VPN

(https://zupimages.net/up/20/26/pcu4.png) (https://zupimages.net/viewer.php?id=20/26/pcu4.png)

VPN gateway is ok.

(https://zupimages.net/up/20/26/dmxr.png) (https://zupimages.net/viewer.php?id=20/26/dmxr.png)

I added a FW rule for LAN.

(https://zupimages.net/up/20/26/fmex.png) (https://zupimages.net/viewer.php?id=20/26/fmex.png)

NAT outbound rules are configured like this:

(https://zupimages.net/up/20/26/c5ys.png) (https://zupimages.net/viewer.php?id=20/26/c5ys.png)

DNS configuration for gateways:

(https://zupimages.net/up/20/26/xua7.png) (https://zupimages.net/viewer.php?id=20/26/xua7.png)

With this configuration, when i try to ping www.google, for example, it doesn't work. Same with apt update on a linux machine in the LAN.

(https://zupimages.net/up/20/26/663x.png) (https://zupimages.net/viewer.php?id=20/26/663x.png)

What i missed?

Thanks
Title: Re: NAT one LAN to VPN, DNS problems
Post by: Ikes_72000 on June 27, 2020, 03:03:47 PM
No idea ?

Envoyé de mon ONEPLUS A6003 en utilisant Tapatalk