Important note about SSL VPN compatibility for 20.0 MR1 with EoL SFOS versions and UTM9 OS. Learn more in the release notes.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DNS NAT Rule slowing down browsing and load-times from websites

Hello all,

I have a specific NAT question and problem, the reason would be, that am not a native or excellent networking guy... so learning by doing and reading specific when needed. Maybe someone could help me.

In my home network I use a XG as firewall with 2 different physical subnets for LAN and switching, some WLAN ssids in separated zones and some kids and a wife here. To protect them I have a pihole dns virtualized for all dns requests in our home.

Because some smartphones and browsers trying so use a "secured dns resolver" automatically on its own choice, I tried some tricks to prevent such overrides.

For that I have added a NAT rule for each network which looks like the following:

So every directly try on another externally dns should be affected.

Further there are policies which denying "dns over https" and some app filters for dns and proxy etc.

Global dns settings:

dns settings on LAN1 / dhcp:

dns settings on other networks / dhcp:

According to several tests it looks great and I think all dns requests for external will be handled by the pihole.

BUT: The browsing speed and load times for websites is incredible slow (3-10 sec) for me directly in LAN1, which seems to be caused by the NAT rule.

When disabling, the speed is normally like attached directly to the router behind. In LAN2 or WLANs there is no problem with browsing.

So can anyone explain me that and maybe tell me a solution or different way so solve my wish for the pihole-dns-only network?

Thanks a lot and regards,

Andy. :)



This thread was automatically locked due to age.
Parents
  • A couple of suggestions.

    1/. create a firewall at the top of your firewall list that blocks dns over https rather than use the web proxy.

    2/. change the default DNS setting to point at your pi-hole.

    3/. create a firewall rule that allows DNS traffic between your various LAN/s and the pi-hole

    The following screenshot is the NAT rule for my NTP server.

    Ian

    XG115W - v20.0.3 MR-3 - Home

    XG on VM 8 - v21 GA

    If a post solves your question please use the 'Verify Answer' button.

  • thanks for your suggestions and effort.

    1. good idea, will try this...but solves not the problem for nat. Slight smile

    2. you mean the nat rule to point on pihole? i was thinking about that, but it would be a problem, when pihole would be down suddenly. So the thought was for LAN1 to point on the interface which normally should be default. But here I think that creates some kind of looping.

    3. will not be needed, because the nat rules etc works perfectly for all others - only LAN1 is affected and the pihole is in the same subnet.

    for ntp I have also a rule like that. only difference there despite of the service and networks is the MASQ, which has no effect and need there. tried that also. or what was your thought for that screenshot?

    Thank you again, Ian.

  • The mASQ is required because the devices do no/ always send NTP (123) or DNS (53) and causes delays while the device shifts DNS destinations which will accept its DNS request if that makes sense?

    Ian

    XG115W - v20.0.3 MR-3 - Home

    XG on VM 8 - v21 GA

    If a post solves your question please use the 'Verify Answer' button.

  • Thx for explanation.

    Tried that also, but it doesnt make any difference if MASQ or not... browsing keeps slow.

    Same NAT rules on other LAN2 and WLANs working as expected and browsing is fast.

  • Hi,

    have you reviewed logviewer when the issue is happening refined to either service 53 or your test pc IP address?

    Ian

    XG115W - v20.0.3 MR-3 - Home

    XG on VM 8 - v21 GA

    If a post solves your question please use the 'Verify Answer' button.

Reply
  • Hi,

    have you reviewed logviewer when the issue is happening refined to either service 53 or your test pc IP address?

    Ian

    XG115W - v20.0.3 MR-3 - Home

    XG on VM 8 - v21 GA

    If a post solves your question please use the 'Verify Answer' button.

Children
No Data