Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
20.7 Legacy Series
»
Re: Multi WAN (was DoT in combo) - allow dpinger in firewall?
« previous
next »
Print
Pages: [
1
]
2
3
Author
Topic: Re: Multi WAN (was DoT in combo) - allow dpinger in firewall? (Read 8471 times)
lar.hed
Sr. Member
Posts: 323
Karma: 10
Re: Multi WAN (was DoT in combo) - allow dpinger in firewall?
«
on:
November 27, 2020, 07:26:40 am »
So I read the web page documentation about Multi-WAN:
https://docs.opnsense.org/manual/how-tos/multiwan.html
And then I started to think about DNS settings and DoT (DNS over TLS within Unbound), and I just got into that it is not possible from my point of view to enter the correct information either on the DNS settings on " System %u2023 Settings %u2023 General " (does not allow @853 after IP address so no way to enter correct info about DoT servers) and in the web settings for Unbound " Services: Unbound DNS: Miscellaneous " there is no way to set the gateway as described in MultiWAN page above.
So how am I supposed to set up: Multi-WAN (failover from fiber to LTE in my case) and DoT - or is this combo not possible?
«
Last Edit: November 29, 2020, 01:05:49 pm by lar.hed
»
Logged
mimugmail
Hero Member
Posts: 6767
Karma: 494
Re: Multi WAN in combination with DNS-over-TLS (Unbound)?
«
Reply #1 on:
November 27, 2020, 08:52:30 am »
You need also gateway switching active where system default gateway always points to primary, when this goes down it swithes to second. Its only failover and not balancing, but DNS traffic so small, should be fine though
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
lar.hed
Sr. Member
Posts: 323
Karma: 10
Re: Multi WAN in combination with DNS-over-TLS (Unbound)?
«
Reply #2 on:
November 27, 2020, 04:46:48 pm »
Not sure I follow, or rather if I do the "gateway switching active where system default gateway always points to primary" I will lose DNS. And I have not even tried DoT yet. Turning gateway switching on, fail DNS requests - turning off, DNS requests works. However if I play around, back forth and back again or something, DNS simply never works again. And everytime I make a change Unbound takes 53 second to restart before anything can happen (if it will happen that is).
I simply do not get this to work - and I am just trying to get this working with everything in default settings. Just followed the how-to multiwan (which also mentions Default Gateway Switching) - and I still fail....
Logged
lar.hed
Sr. Member
Posts: 323
Karma: 10
Re: Multi WAN in combination with DNS-over-TLS (Unbound)?
«
Reply #3 on:
November 27, 2020, 05:11:41 pm »
Okay - I think I got what is not working for some reasone:
WAN_FTTH (Primary) - Fiber To The Home
WAN_LTE (Secondary) - LTE mobile modem as backup
Default Gateway Switching IS active for this test.
Starting from reboot, WAN_FTTH marked as active (under System -> Gateway -> Settings) - everything works.
Pulling the ethernet cable for the interface for WAN_FTTH, failover to WAN_LTE is marked as active - everything works.
Attaching the ethernet cable I just pulled, WAN-FTTH is marked as active - DNS resolution does not work.
Pulling the ethernet cable for WAN_LTE - NOW everything works on WAN_FTTH.
I could also reboot the firewall to get it working - but that seems a bit wrong in my book.
So yes it fails over, but it can not recover - what am I doing wrong? And I am sure everything is as the how-to describes it. I can take screendumps if requested, just tell me what?
Oh and NO I have not gotten to DoT yet...
Logged
mimugmail
Hero Member
Posts: 6767
Karma: 494
Re: Multi WAN (was DoT in combo) - can not recover from fail
«
Reply #4 on:
November 27, 2020, 07:10:03 pm »
Screenshot of System : Gateways : Single
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
lar.hed
Sr. Member
Posts: 323
Karma: 10
Re: Multi WAN (was DoT in combo) - can not recover from fail
«
Reply #5 on:
November 27, 2020, 09:23:00 pm »
A few screenshots then :-)
Logged
lar.hed
Sr. Member
Posts: 323
Karma: 10
Re: Multi WAN (was DoT in combo) - can not recover from fail
«
Reply #6 on:
November 27, 2020, 09:23:33 pm »
And one final screenshot...
Logged
mimugmail
Hero Member
Posts: 6767
Karma: 494
Re: Multi WAN (was DoT in combo) - can not recover from fail
«
Reply #7 on:
November 27, 2020, 11:34:27 pm »
Both Gateways have the same IP??? This cant work
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
lar.hed
Sr. Member
Posts: 323
Karma: 10
Re: Multi WAN (was DoT in combo) - can not recover from fail
«
Reply #8 on:
November 28, 2020, 07:51:24 am »
Quote from: mimugmail on November 27, 2020, 11:34:27 pm
Both Gateways have the same IP??? This cant work
Correct - it does not. My fault, I grabbed my LTE router (I have only one) from my current firewall (I lost my previous OPNsense firewall due to hardware error = it just died one day, so had to go back to my trusty old Asus AX88 router...) and connected it. Works directly! Perfect, on less problem.
That being said: The LTE router is ALSO on 10.x.x.x network - so there is of course a risk in that I could get the same 10.x.x.x IP from both at the same time......
I will now move onto DoT - however I am not entirely sure how to validate DoT, since NAT will let anything out...
«
Last Edit: November 28, 2020, 07:53:41 am by lar.hed
»
Logged
mimugmail
Hero Member
Posts: 6767
Karma: 494
Re: Multi WAN (was DoT in combo) - can not recover from fail
«
Reply #9 on:
November 28, 2020, 08:47:45 am »
DoT via Unbound or your browser?
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
lar.hed
Sr. Member
Posts: 323
Karma: 10
Re: Multi WAN (was DoT in combo) - can not recover from fail
«
Reply #10 on:
November 28, 2020, 09:06:43 am »
My plan is to close port 53 on OPNsense out, and only allow 853.
So forward all port 53 to 127.0.0.1 internal.
In Unbound custom option:
server:
local-zone: "use-application-dns.net." always_nxdomain
This should, in theory, stop my firefox from DoT out, and only use OPNsense for DNS requests.
And any DNS requests should be handled by Unbound, which should use DoT, no matter what gateway is used.
Or am I doing some sort of error in my thinking?
Logged
mimugmail
Hero Member
Posts: 6767
Karma: 494
Re: Multi WAN (was DoT in combo) - can not recover from fail
«
Reply #11 on:
November 28, 2020, 09:39:13 am »
Then there is no outbound nat involved, it will work
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
lar.hed
Sr. Member
Posts: 323
Karma: 10
Re: Multi WAN (was DoT in combo) - 192.168.1.1 or 127.0.0.1?
«
Reply #12 on:
November 28, 2020, 03:20:57 pm »
Okay - new challenge or question:
The Multi WAN guide says rule on DNS port to destination 192.168.1.1/32
The rule I seem to need for handling all DNS by OPNsense and Unbound on DNS port to destination 127.0.0.1/32
Not sure it is any difference in the real world so to speak?
Logged
mimugmail
Hero Member
Posts: 6767
Karma: 494
Re: Multi WAN (was DoT in combo) - 192.168.1.1 or 127.0.0.1?
«
Reply #13 on:
November 28, 2020, 03:45:45 pm »
This is only for traffic going through the firewall, local intiiated packets are not controlled by pf
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
lar.hed
Sr. Member
Posts: 323
Karma: 10
Re: Multi WAN (was DoT in combo) - allow dpinger in firewall?
«
Reply #14 on:
November 28, 2020, 07:06:28 pm »
Hmmm I am not 100% sure, since well I did a test (sorry
) and well I added a few rules to both my WAN interfaces, to control whats goes out... It killed both.
I think it is about dpinger not being able to connect since both gateways goes offline, and I have added rules for ICMP <any>, no difference...
However, if I disable all rules - and that is ALL rules - on one of my WAN interfaces, it starts to work again. So if Unbound is considered "local", why is not dpinger? And what is dpinger using so I could open a rule for it?
Logged
Print
Pages: [
1
]
2
3
« previous
next »
OPNsense Forum
»
Archive
»
20.7 Legacy Series
»
Re: Multi WAN (was DoT in combo) - allow dpinger in firewall?