Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - mightyi

#1
Thanks for the reply - always worth suggesting the obvious stuff sometimes as we all miss that sort of thing going down rabbit holes :)

I have performed the usual ipconfig /flushdns on the windows clients, and ensured the DNS server is the firewall itself. unfortunately it still behaves wrongly!

Running the nslookup debug switch seems to show it completely bypassing the firewall DNS and going straight out to Cloudflare DNS (what the firewall nameservers are set to):
C:\Users\Ian>nslookup -d
------------
Got answer:
    HEADER:
        opcode = QUERY, id = 1, rcode = NXDOMAIN
        header flags:  response, auth. answer, want recursion, recursion avail.
        questions = 1,  answers = 0,  authority records = 1,  additional = 0

    QUESTIONS:
        1.100.50.10.in-addr.arpa, type = PTR, class = IN
    AUTHORITY RECORDS:
    ->  10.in-addr.arpa
        ttl = 10800 (3 hours)
        primary name server = localhost
        responsible mail addr = nobody.invalid
        serial  = 1
        refresh = 3600 (1 hour)
        retry   = 1200 (20 mins)
        expire  = 604800 (7 days)
        default TTL = 10800 (3 hours)

------------
Default Server:  UnKnown
Address:  10.50.100.1

> teamviewer.com
Server:  UnKnown
Address:  10.50.100.1

------------
Got answer:
    HEADER:
        opcode = QUERY, id = 2, rcode = NOERROR
        header flags:  response, want recursion, recursion avail.
        questions = 1,  answers = 0,  authority records = 1,  additional = 0

    QUESTIONS:
        teamviewer.com.int.intlan.uk, type = A, class = IN
    AUTHORITY RECORDS:
    ->  intlan.uk
        ttl = 1800 (30 mins)
        primary name server = maria.ns.cloudflare.com
        responsible mail addr = dns.cloudflare.com
        serial  = 2401961462
        refresh = 10000 (2 hours 46 mins 40 secs)
        retry   = 2400 (40 mins)
        expire  = 604800 (7 days)
        default TTL = 1800 (30 mins)

------------
------------
Got answer:
    HEADER:
        opcode = QUERY, id = 3, rcode = NOERROR
        header flags:  response, want recursion, recursion avail.
        questions = 1,  answers = 0,  authority records = 1,  additional = 0

    QUESTIONS:
        teamviewer.com.int.intlan.uk, type = AAAA, class = IN
    AUTHORITY RECORDS:
    ->  intlan.uk
        ttl = 1800 (30 mins)
        primary name server = maria.ns.cloudflare.com
        responsible mail addr = dns.cloudflare.com
        serial  = 2401961462
        refresh = 10000 (2 hours 46 mins 40 secs)
        retry   = 2400 (40 mins)
        expire  = 604800 (7 days)
        default TTL = 1800 (30 mins)

------------
------------
Got answer:
    HEADER:
        opcode = QUERY, id = 4, rcode = NOERROR
        header flags:  response, want recursion, recursion avail.
        questions = 1,  answers = 1,  authority records = 0,  additional = 0

    QUESTIONS:
        teamviewer.com, type = A, class = IN
    ANSWERS:
    ->  teamviewer.com
        internet address = 52.223.21.92
        ttl = 86400 (1 day)

------------
Non-authoritative answer:
------------
Got answer:
    HEADER:
        opcode = QUERY, id = 5, rcode = NOERROR
        header flags:  response, want recursion, recursion avail.
        questions = 1,  answers = 1,  authority records = 0,  additional = 0

    QUESTIONS:
        teamviewer.com, type = AAAA, class = IN
    ANSWERS:
    ->  teamviewer.com
        AAAA IPv6 address = 2600:9000:a61f:6da7:367b:7826:b8c1:d0a8
        ttl = 86400 (1 day)

------------
Name:    teamviewer.com
Addresses:  2600:9000:a61f:6da7:367b:7826:b8c1:d0a8
          52.223.21.92

>
#2
26.1, 26,4 Series / Issues with Unbound overrides
May 02, 2026, 01:03:48 PM
I have been a happy user of Opnsense for many years on my home network, having migrated from Sophos.
I recently upgraded to 26.1 and was trying to add an alias for a pod container on my management VLAN so it was accessible on my default internal VLAN, but it refused to work no matter what. It was then I noticed another issue - none of my wilcard overrides worked either!
After a breach a number of years ago where someone used an anydesk hack I have locked down any remote control domains by redirecting them to 127.0.0.1 and blocking/redirecting DNS to anything other than the firewall to stop manual intervention. This has always worked great, but in recent months I've had issues with a couple of my aliases not working as they should - and finally got round to fixing this week.
No matter what I do I cannot get the overrides to work properly, they work on the firewall locally, but trying lookup from a client machine always results in the apex and www for the domains directing to the actual ip addresses. Initially, it appeared that blacklisting was causing client to ignore the overrides because they were completely ignored; I manually deleted all the unbound xonfig, deleted from the template and reinstalled it. This cured a lot of the issues, but still www and apex refuse to resolve to 127.0.0.1 from a client.
Working with Claude it had me try a lot of things and could only conclude that it couldn't really be done in 26.1.x - which I can't believe!  I even tried adding manual blocklists config files, which resulted in exactly the same problem.


Can anyone offer any advice of the workaround for this? It appears since the revamp of Unbound, functionality is broken for overrides; I'm using ISC DHCP and it integrates well with Unbound, so don't really want to start moving to Kea dhcp as it doesn't have the same integrations.
#3
25.1, 25.4 Legacy Series / random blocked packets
July 07, 2025, 08:04:54 PM
I recently rebuilt my Opnsense firewall and split the network into multiple VLANs to isolate the security cameras/alarm, iot, streaming, management and internal traffic.  Because of the number of IoT devices and streaming devices, it's been a nightmare process, but finally have multicast and firewall rules in a good place.
BUT I keep seeing randomly blocked groups of traffic to open ports; these are mainly from the Ring alarm base unit (outbound, 443/tcp), plex servers (443/tcp) and Apple mobile devices (5223/tcp). These are all showing flags of RA/FPS/FA; they happen between 5 and 25 times at once, then stop again for a random time.
I've read these can be ignored, but i'd like to try and stop them if i can!
I've set the firewall to "conservative" mode, configured adaptive timeouts, increased the state table size, and even changed the individual rules to "sloppy State" and extended the timeout to 24 hours; but it still keeps randomly happening, and frankly driving me nuts!

i've got a single WAN/ISP port; and a single internal interface hosting the VLANs; these are both on an intel x550-T2 card with the WAN running at 2.5GB and the internal connected vias SFP to a unifi switch at 10GB.

Is there anything else I can tweak to avoid thid rtepeeated red traffic in my log!
#4
After some poor network performance, I decided to rebuild my network to try and optimise and secure it better.  I was also sick of having to turn off (R)STP because the Sky Q box would disable ports due to it's network mesh catastrophe!

I have (I think!) quite a robust setup - 6 Unifi Access Points, Unifi Enterprise 24 port multi-gig PoE+ switch, with a trunk port to a Unifi 8 port flex PoE switch.
The Opnsense Firewall is an i3-7100 with 8gb RAM and a 500GB SSD. I have an intel x550-T2 PCIe network card installed, with one port set at 2.5gbps and connected to a VM Superhub 5 @ 1150Mbps, and the other port connected at 10GBps via an SFP+ adapter into the Unifi main switch.

I have split the network into 6 different VLANs (Plus WAN); Internal, Management, Streaming, IoT, Security and Garage.  iPhones, iPads, Laptops, Desktops (Including two Plex/Emby Server) and Macs are all on the internal VLAN, Management VLAN holds the switches, Unifi APs and the server running Homebridge and the Unifi Controller. Streaming VLAN contains the "trusted" devices, SkyQ boxes, nvidia Shield, Amazon Fire TV, Network Audio Players, AV Amps and Sonos Speakers.  The IoT VLAN contains all the other "Smart" devices - Meross smart plugs/extensions/energy meters/radiator valves/smoke alarms, Twinkly(tm) Lights, smart washer/dryer, smart fridge smart kettle etc; plus Apple Homepods to make it easier to control them.  The Garage VLAN is for using diagnostic software and tools that i don't want attached to the internal networks in any way; and the security VLAN houses all my Ring internal and external cameras, alarm, doorbell etc.  This is also isolate from the main VLANs.

Trunk ports and uplink ports are all working great, RSTP is enabled with tweaked switch priorities to make the Sky Q behave, and the ring cameras aren't dropping off the network like they were due to lost packets.  All seems good....except some REALLY annoying glitches!

At the moment, I have set up individual rules for each device group (amazon Echo, Amazon Fire, Plex servers etc) and have been assigning rules between the VLANS as they've popped up blocked and ensured they are a locked down as possible.  I have configure IGMP Proxy, mDNS Repeater for mDNS traffic, and UDP Broadcast Relay to handle all other multicast (SSDP etc).  that brought A LOT of multicast traffic which clearly means things are talking!  Everything seems to works fine, i can even control my Twinkly lights through the app on the internal network which has never worked properly before.  I've had to all ephermeral ports between amazon and streaming devices as expected as well as Specific Smartthings ports and Apple specific APN ports etc to make things behave.

The problem I'm seeing a lot more blocked packets than i was before; Desktop (Plex/Emby) with a lot of SYN flags to port 8883, RST/ACK, FIN/ACK to 443/t; with amazon devices and Ring Alarm base unit seeing lots of PSH/ACK, FIN/ACK and FIN/PSH/ACK to 443/t - all to the internet. They all get stopped by the default "Block All" rule on each VLAN ruletable, completely ignoring the specific rules allowing the traffic before it.  I have even enabled the "options" checkbox under advanced to see if that helps as a lot of traffic is likely multicast around the network; but no dice.

I've also seen a lot of people saying "Oh ignore it, normal traffic" - but i never saw this sort of traffic before.  Can anyone offer any suggestions of pointers - or tell me i'm being stupid and ignore it!?

Thanks!
#5
General Discussion / Re: UDP Broadcast Relay
June 30, 2025, 01:29:17 PM
Quote from: marjohn56 on May 21, 2025, 11:10:28 AMSky Q is why I originally put this package together. 😊

I suspect you need to add a firewall entry on your PC. Windows will block the responses from the Q box as it's coming from an address on a different VLAN.

Open windows firewall, Select Advanced Settings

Select Inbound Rules
New Rule

Name: Sky Q Pass
Enabled: Ticked

Protocol and Ports Tab
Proto Type: Any

Ports: Local and Remote: Any

Scope Tab
Local IP address: Any
Remote IP: YOUR Q BOX IP - In my case 10.4.15.91

Advanced Tab:
Specify profiles to which this rule apples
Tick all of them

That should do you.



Sir you are indeed correct - Thank You!  As a chance, i looked at the eset firewall on my pc, and it was blocking SSDP traffic and traffic from the SkyGo executable.  unblocking this immediately fixed the issue with Sky Q connecting on my PC.  I've now added the streaming and IoT Subnets to trusted zones on the basis that if i've allowed the traffic through the firewall, then it's safe!

Of course I'm now left with other issues, but that's another thread..... :)
#6
General Discussion / Re: UDP Broadcast Relay
May 19, 2025, 02:37:59 AM
A Small update; i have managed to get Plex and Emby working via an Amazon Fire Stick over the VLANs, which is great.
for reference, you need to open up 32400/udp from the fire tv to the media server for plex, and 8096/8920 TCP for Emby (7359/U) for server discovery.

But i've just run into a weird problem!  whilst the i-apps work perfectly for Sky Q, when i try to connect to the Sky Q box from the windows app on an internal LAN PC, it hangs, before telling me it needs to be connected to a sky Q box for recordings.  No rejects in the firewall when this happens, lost of 1900 and multiple requests back from each sky Q/mini box - but it fails.

Can't see why they would be different!
#7
General Discussion / Re: UDP Broadcast Relay
May 18, 2025, 10:39:44 PM
I'm been fighting with getting my Sky devices to behave properly on the separate VLAN for a few weeks; finally after reading this thread i've got it working using UDPBR. Have to say great work on the application, it's the only one i've found to successfully work so far!

I've also got a few other devices going into the Streaming VLAN: Sonos speakers, nVidia Shield, Yamaha AV Amp, couple of LG TVs, Amazon Fire TVs and a couple of Apple Pods. This means I'll be running a near full complement of stuff, including Airplay/Bonjour, mDNS, DLNA SSDP etc.  I've also got a separate IoT VLAN which will soon be housing Meross smart plugs, sockets, twinkly lights etc - I've seen nothing so far about what protocols are needed for the Twinkly app to work correctly - that's picky at the best of times!

I've got my firewall rules pretty restrictive with multiple VLANS (Security/Streaming/IoT/Management/Internal LAN); although internal LAN is configured to allow all traffic to other VLANs. To make things even more complex, i'm using a Unifi PoE 2.5GBe switch and multiple Unifi APs on the network. 

I added the default rule to allow anything from the Sky Q boxes to the LAN, and added several relay rules in UDPBR:
239.255.255.20:1900; 239.255.255.250:9131; 239.255.255.250:51200; and 224.0.0.51/224.0.0.251:5353 (source 1.1.1.1).  I had to add the extra options as the Sky Q box was failing on requests (even though it appeared to be working ok on the app). I also found that putting 1.1.1.1 instead of blank resulted in the connection failing - but what i've now got is a weird problem, where the media servers (running Plex and Emby) are staying on the internal network, but need to talk to the shield and the firesticks (and later the TVs and a hifi network streamer). It seems the media servers are getting a bit confused because they are getting bounced requests to the broadcast address of the Streaming device VLAN - the only way i can remove that is to add a specific rule in the Streaming FW rules to allow it.  is this expected behaviour?  As I have a default allow any rule to the streaming VLAN I expected that to also encompass the broadcast IP - but i would not have expected to have to allow the traffic specifically for broadcast IPs?
I also seem to be seeing some multicast traffic from the shield to 255.255.255.250: 51200, 1901 and 9131 which i don't recognise? Has anyone setup like this with Emby/PLEX and come across this issue and a workaround?

On a final point; i've found i've had to add specific floating rules in to allow multicast traffic to come through in order for it to be processed by UDPBR - while i expected it not to handle the outbound client request, I didn't think i needed to add specific rules to allow the traffic into the interface in the first place? 

Any tips on what i need to configure for my IoT and Media Servers would really be appreciated!
#8
Sir you are a legend! Exactly the thing I'd forgotten! Had to enable hybrid NAT rules, but as soon as I create one for TCP and one for ICMP everything worked. 

Knew it would be something stupid I'd forgotten....  ;D
#9
I've seen a couple of Apple devices showing ipv6 addresses as well as ipv4, but any ipv6 is disabled - although saying that I think there's an ipv6 default allow rule that Opnsense has set up...
#10
Both the Ubuntu server and the firewall were rebuilt at the same time as I used new hardware, so no rogue routes etc left to cause issues.

Will look into the dev tools - thanks for the suggestion. The only tuning on dnsmasq is to redirect Remote Desktop services (teamviewer etc) to null and to redirect legacy music streaming services to the Ubuntu box.

With re Garda to IPv6 - the firewall was set to handle ipv6 but dhcpv6 was disabled. If disabled on fw settings as well now; is there anywhere else to look?
#11
General Discussion / Really silly question - routing
August 24, 2023, 12:03:00 PM
I think I'm having one of those weeks where nothing works right!
I am playing around with Docker at the moment to see if there is viable reason to put Plex/Emby into isolated containers. Currently experimenting with networking.

I configured a macvlan network and managed to get it almost working (didn't enable promiscuous mode on firewall) and I've been playing with IPVlan v3 networking now.  No matter what I do, I can't get internet traffic routing back to the subnet and it's driving me nuts - I'm sure it's something simple but I can't figure it out...I'm hoping someone can help me feel silly!

I have a route setup on the firewall to push any traffic for the docker subnet to the host Ubuntu vm (vm it set as a gateway). I have also added a lan rule on the firewall to allow all traffic from the docker subnet to the internet from the lan interface. I can see in the logs that traffic is being allowed since I added this rule, and I can ping the firewall and all other devices on the lan from the container in the v3 ipvlan network. But if I ping a web address (Google for example), it resolves the name, I see the traffic being allowed in the fw logs....but no I no response back.  From the ubuntu host it works fine.

Am I missing something obvious here?
#12
I have always used Opnsense as the firewall with a Ubuntu box acting as the network router and dnsmasq for dhcp/dns, which has worked great.

At last firewall build I installed an Intel x550 lan card so decided to use the fw for routing/dhcp/unbound dns too to make use of the enhanced 2.5gbe bandwidth. Unfortunately since I've done this, I've had issues.  When trying to browse websites on any device, it sometimes takes an age before the site comes up, sometimes it times out and a refresh works.  Other times I'll be using a site then all of a sudden the connection will drop and I'll have to reload (normally when entering info into a page).

I've checked the config and everything seems fine - the only oddity I've setup is that only the firewall is allowed to contact wan dns, all other devices on the network use the fw for dns and are blocked from external services. I had this setup previously, with only the Ubuntu box being allowed external dns and it worked fine.

I know on hardware firewalls in the past we've been advised not to use it as the default router for the network (eg Sonicwall) as they had some unexpected behavior, I was wondering if anyone had similar experiences with Opnsense?
#13
I am hoping someone can help me solve a really frustrating problem!

I am using a Lenovo branded intel x550-t2 card in a custom build pc using an i3-7th gen cpu and ssd.

I have been using a cheapo Realtek based dual 2.5gbps network card and this has been connecting to a 2.5gb switch and the 2.5gb port on my virgin router - both auto negotiate to 2.5gbps and when testing using another windows machine connected to a 2.5gbps nic (intel i219) I get around 1150mbps from my 1gig virgin service.
But when I swap out for the x550, it negotiates to a 10gbps port fine but otherwise only connects at 1gbps. If o force to 2.5, they connect at this speed for the most I can get using the same pc as earlier is 6-700mbps.

I do not have any ids running and only have a basic config on the firewall. I've tried the offloading settings but no change.

Can anyone offer any advice how to get this card to negotiate properly and more to the point provide comparable
Speed to the cheap card?

FYI I have just done a completely clean install to confirm it's not that and it isn't.
#14
22.1 Legacy Series / Re: os-ddclient
July 17, 2022, 04:08:02 PM
Can someone direct me to a guide to configure GoDaddy in the new ddclient?  I've been looking everywhere, but so far found nothing helpful!
#15
I have moved my Let's Encrypt and Dynamic DNS duties to Opnsense; and have both of these working fine.

I have set an automation task up to upload the certificate to my Ubuntu server via SFTP task; this then rebuilds the certificate into a full chain and makes it available via a network share to other machines to access for SSL services.

this used to work, but i've since replaced my Ubuntu server and installed Ubuntu 20.  no matter what i try to do, I cannot get them to talk.  I have set up an sftp user on the ubuntu server and have connected rom the opnsense shell and accepted the encryption key; but when trying to connect through the GUI process, it always fails to connect with an access denied issue due to the encryption key.

I've gone through loads of different guides, all saying something different, but no definitive guide on connecting Opnsense Acme task with ubuntu.

Please can someone point me in the right direction before i tear my last few hairs out..?!