[USG Flex H] - Remote Access VPN & Custom DNS

Options
Maverick87
Maverick87 Posts: 313 image  Master Member
Zyxel Certified Network Administrator - WLAN Zyxel Certified Network Administrator - Nebula Zyxel Certified Network Administrator - Security Zyxel Certified Sales Associate
edited August 12 in USG FLEX H Series

I have a dynamic WAN IP address and use DDNS to resolve the IP address. For HTTPS certificate requirements from within the network, I need to resolve my DDNS to a local IP address.

So, under the DNS settings, I've set this A Record policy:

DDNS hostname → 192.168.0.1

In this way, from internally, when i try to resolve my DDNS hostname, the firewall reply with 192.168.0.1.
The problem is that I need to use a Remote Access VPN and can't base it on the WAN interface (because is dynamic). So, I created a VPN with my DDNS domain name.

image.png

I downloaded the configuration for Windows and applied it, but when I try to use the VPN, my PC responds with "Policy match error"

Checking the logs, seems that the firewall receive correctly the VPN proposals but not respond to it.

So, I've tried to unconfigure my custom DNS and everything worked fine. Probabily when I use the A Record DNS policy internally, the proposals request, is then forwarded to the wrong IP address (192.168.0.1), instead resolve it directly from the firewall itself.

How can I configure a DDNS-based VPN while leaving the DNS rule set?
Can be possible to "disable" or don't check the custom DNS entry for the VPN?

Accepted Solution

  • PeterUK
    PeterUK Posts: 4,671 image  Guru Member
    250 Answers 2500 Comments Friend Collector Eighth Anniversary
    Answer ✓
    Options

    It is working correctly with them settings to make it work the way you want change VPN Server Address
    Type IP address
    IP Address 0.0.0.0
    NAT Traversal custom IP or domain name
    then you domain name

All Replies

  • PeterUK
    PeterUK Posts: 4,671 image  Guru Member
    250 Answers 2500 Comments Friend Collector Eighth Anniversary
    Answer ✓
    Options

    It is working correctly with them settings to make it work the way you want change VPN Server Address
    Type IP address
    IP Address 0.0.0.0
    NAT Traversal custom IP or domain name
    then you domain name

  • Maverick87
    Maverick87 Posts: 313 image  Master Member
    Zyxel Certified Network Administrator - WLAN Zyxel Certified Network Administrator - Nebula Zyxel Certified Network Administrator - Security Zyxel Certified Sales Associate
    edited August 13
    Options

    Hi @PeterUK,

    Thank you for your suggestion, I've tried with:

    IP Address: 0.0.0.0
    NAT Traversal enabled with my DDNS hostname

    The generate certificate use the NATT as CN so is valid, and in this way I can use my DDNS to reach the firewall.

    Thank you