pfSense: Dual WAN Load Balancing / Fail Over DNS (and possibly more) Issues


Recommended Posts

I meant I didn't manually specify a Gateway. By default, pfSense is the Gateway for them (and all other VLAN's). Pi-holes on a seperate VLAN and 192.168.5.5 and 192.168.5.6 addresses. Gateway is automatically 192.168.5.1.

 

The thing is, if I disconnect WAN1, DNS stops, but I also can't access my Pi-holes locally.

 

Yes, I have the Pi-hole IP's specified under my primary LAN DHCP Server settings.

On 21/10/2022 at 01:36, The Dark Knight said:

let DNS be overriden by what the WAN interface gives. Not sure, can only check later today.

That is only for pfsense.. That is not something a client would use..

 

Settings in pfsense dns are only for pfsense to use, unless you setup forwarding in unbound. Normally setup would be only 127.0.0.1 for dns in pfsense - its basically asking itself (unbound) and then unbound would resolve.

 

servers.thumb.jpg.fe065e163f275bab505bd1254443a2c6.jpg

 

When you have an interface go down, unbound might have a hard time knowing since it was bound to that address.. What you might want to do, is just bind unbound to the local host for outbound connection.  This way when it wants to resolve something it will use the default routing in pfsense.

 

outbound.jpg.634216592d76d22a2698ddca637c0fcf.jpg

On 21/10/2022 at 17:49, BudMan said:

That is only for pfsense.. That is not something a client would use..

 

Settings in pfsense dns are only for pfsense to use, unless you setup forwarding in unbound. Normally setup would be only 127.0.0.1 for dns in pfsense - its basically asking itself (unbound) and then unbound would resolve.

 

When you have an interface go down, unbound might have a hard time knowing since it was bound to that address.. What you might want to do, is just bind unbound to the local host for outbound connection.  This way when it wants to resolve something it will use the default routing in pfsense.

Oh ok, didn't know that.

 

Yes! I think this along with turning on the "Allow DNS to be overridden" setting has done the trick (partly). The second ISP just doesn't work without the DNS override option being on, meaning they are forcing their DNS.

 

Anyway however this is what is happening now......

 

Failover works. When WAN1 goes down, WAN2 takes over. But when WAN1 comes back online, it is a big task. Killing states, reloading Gateways, toggling Windows network adapter on and off.....nothing works. I have to reboot pfSense for WAN1 to start working properly again. Point to note is, this is only if I specify my Pi-holes as DNS in the LAN DHCP Server settings page. If I only have the "Allow DNS to be overridden" and leave the DNS server fields in the LAN DHCP Server empty, the internet works perfectly and Failover also switches back and forth easily. But then with this way, my Pi-holes are not used. This is despite having DNS Redirect configured.

 

I've also noticed this blocked traffic in the firewall log. The source IP is my WAN1 public address.

 

 

traffic.jpg

Those are all out of state blocks. Yeah if you kill states any non syn traffic would be blocked if there is no state.  Most of those are Fin,ack (close this connection)

 

If you want for your clients to use pihole, you should set your clients to use pihole vs trying to redirect them too it.  Then have pihole forward to pfsense.

On 22/10/2022 at 17:11, BudMan said:

Those are all out of state blocks. Yeah if you kill states any non syn traffic would be blocked if there is no state.  Most of those are Fin,ack (close this connection)

 

If you want for your clients to use pihole, you should set your clients to use pihole vs trying to redirect them too it.  Then have pihole forward to pfsense.

 

Ok, so I do have static leases for all my devices and can easily specify Pi-hole for them. And that'll work perfectly as long as WAN1 is up. But when the WAN switches, won't I face the same problem like I am currently?

 

Unless it won't cause a problem if I do what you suggested, point Pi-hole to pfSense? But then how do I implement DoH? I need DoH as ISP's here censor some content because of Government orders.

You mean dot, unbound can do dot..  pihole is forwarding to unbound, unbound looks up what pihole asked for. Doh is a browser thing.

 

Again if your using localhost for outbound, you shouldn't have any issues with unbound using whatever the default route is.

 

So your saying your isp is intercepting your dns, and if you try and go to xyz.com - they don't resolve it?  Pretty lame blocking if you ask me..  That might stop billy's grandma or something.

Oh yes, my mistake. Got confused between DoT and DoH.

 

Oh ok, great! Will try this out then. So basically I have to disable the Cloudflared service on my Pi-hole and enter pfSense as Upstream right? But do I enter 192.168.5.1 (Pi-hole VLAN) or 192.168.10.1 (Primary LAN)? LAN network is on the default untagged VLAN 1.

 

Oh yeah, DNS blocking is lame as hell and stupidly simple to bypass! And since the Government order is literally a long list of specific URL's, sometimes even DoH or DoT isn't needed, just have to change the URL to HTTPS! 🤣

 

Although interestingly, the ISP for my second connection....I have heard rumours that they do Deep Packet Inspection. Have also heard they block some VPN providers. I haven't tried, so can't say for sure. And for VPN's I have my own OpenVPN and WireGuard servers setup in multiple locations and those work perfectly.

So I decided to just go back to a single WAN setup in pfSense. The second connection is a nuisance to setup and use due to their damn restrictions!

But anyways, thanks a lot BudMan, learnt new things as always. 😎👍

On 25/10/2022 at 09:00, binaryzero said:

Sounds like it was more your configuration than a provider thing, you did mention you followed some rando guide...

You also confirmed it works as expected with a new instance.

Yes, very much possible. However even in the fresh setup it wasn't all hunky dory. Was still causing issues. This ISP is heavy handed, no question. For one, they are forcing their own custom DNS, which I don't like. My primary ISP has no such requirements. It defaults to Google DNS, but works with any other just fine.

While I don't agree with limiting users to the ISP dns, it can be common.. Think about it from a bandwidth point of view.

Lets say you have 1 million users..  If all of those users were asking say googledns for their dns - that is a lot of traffic off the network.  Sure dns queries are tiny, but if you have enough of them they can add up to some non insignificant amount of data that has to be moved.  Now with 1 million users you also have a big cache for your dns.. Because its quite likely with that many users some user has already asked for www.domainX.com, so the next user wanting to go there, the entry is cached already..

Now multiple this by how many phones a cell company might have, and these little 4G/LTE/5G router things are just to them another phone user..   it can also be helpful in higher latency connections..  DNS only going to wait so long for a response.. I think most clients max is like 2 seconds, which seems like a long time.  But If the connection is real high latency this could cause problems for a user, if the response is not fast enough, but if the item is cached on the isp dns - response should be faster and inside the timeout for dns.

Applications normally are more forgiving for higher latency on getting an answer from say a website or something.. And the isp might even be caching some of that stuff with their own proxies, etc.

if the connection your trying to use is for backup purposes only, then you might be able to live with some of these limitations when your in a scenario that your main isp is down, but at least you have internet even if you have to live with their limitations of connection abilities.

But if you want to load share across these connections, or expect to have the same full functionality as you other main ISP, these cell sort of routers and cell data connections are going to be more limited quite often.

Hmm, I didn't think of it from this angle about DNS servers getting overloaded. But I think this ISP specifically is forcing their DNS to one, comply more easily with Government orders and two, to mine data about users. This is based on what I've read online. Granted, it could very well be untrue and just scare mongering by people and other companies, but it could be true as well.

Actually this is an optical fiber based connection, not mobile network tower based.

Yes, this connection is just a backup. I mainly got it for my TV because they bundle multiple streaming subscriptions. And since I use pfSense, thought I would fiddle with Dual WAN. Oh well, just have to do things the "old fashioned way" by switching devices over to this connection manually! 😄

Oh not sure why I thought it was wireless - maybe another thread somewhere else.  Sorry about that - but yeah could be many reasons an ISP wants their users to use their dns.  I think its fine if they offer that for their users, but forcing it I am against. Control and information could for sure be a major factor in why they are doing it.  But than again from a technical standpoint there are legit reasons why they would want their users to use their dns as well. 

To be honest from the technical point of view - most of their users are just going to use what gets handed to them.  So allowing others to not use it shouldn't be all that much extra bandwidth.  And if really a latency issue then users attempting to use others, would soon end up back using the isp dns.

Here is the thing - the only thing users have to fight such shenanigans is their $, if a isp doesn't provide the services you want - then find a different one that does.  The problem is many locations are very limited to what isp they can even get.. 

If your having issues with dns through this connection, if you want to use it have some devices use connection X vs Y.. That is a simple policy route in pfsense.  And as long as pfsense is getting dns from X doesn't matter what Y does with dns.. But where you could have problems is when X goes down, and you have no way to get the dns you want, etc.

 

 

 

No worries! I'm pretty confident that control of information is the reason they are forcing their DNS. For instance, they outright also block some VPN connections! Even the Android box they provide...bloody HELL...crazy locks on it!

True. Most users either don't know or don't care, as long as the internet is accessible. Many don't even keep an eye on speeds to see if they are getting what they are paying for. Average Joe will have one TV, one laptop / desktop and one phone and using the ISP provided hardware. They wouldn't even bother using another off-the-shelf router, let alone setup pfSense. 😂

Yes, true. There are actually 3 high speed ISP's in my area. I tried one of the other two providers for my second connection recently....beyond pathetic service! So this one was the only remaining option.

Yeah, DNS is the main problem with this ISP. It's ok anyway, I will just use pfSense with one WAN. My primary connection rarely goes down. And when it does, it is usually fixed within a couple of hours. Perhaps if in the future another ISP starts service here, I can try Dual WAN again. Or maybe take a 3rd connection! 🤣

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Posts

    • The 2TB Samsung 990 PRO NVMe SSD hits lowest price in over three months by Sayan Sen Yesterday, we covered a really good deal wherein you can get a 4TB TeamGroup T-FORCE G50 NVMe PCIe Gen4 SSD for a low price of just $400 with a special discount coupon. That's just $100 per TB, making it a very good offer during these hard times. The deal is still live, so you can check it out in its dedicated article here if you do not want to miss out. Meanwhile, if you don't have that kind of budget but still wish to buy an SSD for a good price, the 2TB variant of the TeamGroup SSD at $280 its lowest price in over three months. Meanwhile, those seeking 2TB but faster performance can check out Samsung's 990 PRO, which has hit the lowest price also in the last quarter or so, as it's on sale for $370 (purchase links under the specs table down below). Thus, you want a faster drive, get the 990 Pro, or you want more capacity, grab the TeamGroup 4TB linked in the first para. The 990 PRO is a PCIe Gen4 NVMe SSD and still one of the fastest drives available today for under $500. Speaking of fast, sequential reads and writes are rated at 7450 MB/s and 6900 MB/s, respectively. The random throughputs for reads and writes are 1400K IOPS and 1550K IOPS, respectively. The 990 PRO is based on Samsung's 7th Gen V-NAND flash, and it too is TLC. It packs 2 gigs of LPDDR4 DRAM cache, which helps the random performance. The endurance rating for this is 1200 TBW (terabytes written), which should be sufficient for most users. The Samsung 990 PRO is compatible with the PlayStation 5, but if you are going to use the 990 PRO on a PC, check out the Samsung Magician app that lets you track your drive's health, update its firmware, customize various settings, and more. The tech specs are given below: Specification TeamGroup T-FORCE G50 2TB Samsung 990 PRO 2TB Interface PCIe 4.0 x4, NVMe 1.4 PCIe Gen 4.0 x4, NVMe 2.0 Form Factor M.2 2280 M.2 2280 Controller InnoGrit Controller Samsung In-house Controller NAND Flash 3D TLC 3D TLC DRAM Cache None (HMB supported) 2GB LPDDR4 Sequential Read (Max) 5,000 MB/s 7,450 MB/s Sequential Write (Max) 4,500 MB/s 6,900 MB/s Random Read (4K) Up to 600,000 IOPS Up to 1,400,000 IOPS Random Write (4K) Up to 700,000 IOPS Up to 1,550,000 IOPS TBW (Endurance) 1,300 TBW 1,200 TBW MTBF 3,000,000 hours 1,500,000 hours Operating Temperature 0°C to 70°C 0°C to 70°C Storage Temperature -40°C to 85°C -40°C to 85°C Shock Resistance 1,500G / 0.5ms 1,500G / 0.5ms Heatsink Patented Graphene Heat Spreader No Get them at the links below: Samsung 990 PRO SSD 2TB (MZ-V9P2T0B/AM): $369.99 (Sold and Shipped by Amazon US) TEAMGROUP T-Force G50 2TB SSD (TM8FFE002T0C129): $279.99 (Sold by TeamGroup, Shipped by Amazon US) Good to know This Amazon deal is U.S. specific, and not available in other regions unless specified. We only use first-party seller links (at the time of article publishing); ensure that you purchase from a first-party seller link only. Check out Today's Deals on Amazon | or our recent tech deals. Become a Prime member (for Students or SNAP) via Neowin Get Prime Access - Prime for half price (for qualifying Medicaid, EBT, SNAP) Subscribe to Prime Video, Audible Plus, Music Unlimited or Kindle Unlimited via Neowin As an Amazon Associate, we earn from qualifying purchases.
    • If you can't spell a simple word that 2nd graders learn, your entire argument is suspect.
    • And here goes the "Won't someone think of the children" brigade. Get stuffed mate. This has NOTHING to do with making the internet safe. It's about tracking adults, spying on your online activity, and sending the boys around when they don't like something you post. Also, again, parliament have voted TWICE against this, and Starmer is going ahead anyway. THAT is anti-democratic bullsh**. They will use this law to track you, they will use this law to control you, and they will use this law to punish you if they don't like what you do, even if it's legal. And your data? Say bye bye to that. It'll be on the darkweb in weeks. I'm not some rando online. I've been an IT professional for 40 years, many of it in security. I know exactly what this means and what will happen to your data. I do not consent and I will not comply.
    • "...but it may not be Microsoft's fault" seems like a reasonable way to tease what is going on without leaving the user with a false impression that an update is the problem. A title isn't a summery, it is meant to entice the user to read the article. It should not contain a misleading premise; which this title does not. You could maybe complain that the first paragraph should have included that detail. The writing style popularized over 100 years ago in newspapers will cover the most important information as soon as possible with details and nuance added later; the idea being that with each new paragraph you have less of the reader's focus.
    • Samsung Galaxy XR arrives in the UK with new AI and enterprise features by Fiza Ali Samsung is bringing its Galaxy XR headset to the UK several months after the device made its debut as the first headset built on Google's Android XR platform. The headset was first teased in late 2024 alongside Google's introduction of Android XR before making its commercial debut in 2025. Developed in collaboration with Google and Qualcomm, Galaxy XR combines mixed reality experiences with Gemini-powered AI features, allowing users to interact with digital content using voice, gestures, and visual inputs. While the hardware itself remains largely unchanged from the version Samsung unveiled last year, the company is using the UK launch to spotlight several software enhancements that have arrived through recent updates. Among the most notable additions is deeper integration with Google's ecosystem. Galaxy XR users can explore destinations through Google Maps' Immersive View, receiving AI-powered recommendations and contextual information from Gemini while navigating virtual environments. Furthermore, entertainment experiences have also expanded; users can watch 180-degree and 360-degree videos on YouTube, browse spatial content converted into 3D, and ask Gemini questions about on-screen content without interrupting playback. Samsung is also highlighting mixed-reality features such as Circle to Search, which allows users to identify real-world objects through hand gestures while using the headset's video pass-through mode. Another feature automatically converts photos and videos into spatial 3D experiences. Moreover, the headset now also supports Android Enterprise, allowing organisations to manage deployments using existing Android management tools. Annika Bizon, Vice President, Product and Marketing, Mobile Experience, Samsung UK & Ireland, talked about the device, stating: The headset is powered by Qualcomm's Snapdragon XR2+ Gen 2 platform and features dual 4K Micro-OLED displays. The tech giant says that users can expect up to 2.5 hours of battery life. Samsung also confirmed that Galaxy XR will continue receiving software and security updates as the company works alongside Google and Qualcomm to expand the Android XR ecosystem. Galaxy XR is now available for pre-order and will go on sale on 8 July. Customers interested in trying the headset before launch can visit Samsung KX in London and selected Samsung Experience Stores from 17 June. Finally, the company will also host a livestream on 19 June showcasing the headset's capabilities and answering questions from prospective customers.
  • Recent Achievements

    • First Post
      Jocimo earned a badge
      First Post
    • Week One Done
      suprememobiles48 earned a badge
      Week One Done
    • One Month Later
      Windows Guy earned a badge
      One Month Later
    • One Month Later
      Prasann earned a badge
      One Month Later
    • Week One Done
      Prasann earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      519
    2. 2
      +Edouard
      174
    3. 3
      PsYcHoKiLLa
      91
    4. 4
      Steven P.
      81
    5. 5
      ATLien_0
      70
  • Tell a friend

    Love Neowin? Tell a friend!