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 - Burthouse4563

#1
26.1, 26,4 Series / Re: NAT Migration Tool
July 06, 2026, 03:16:38 PM
Quote from: dseven on July 05, 2026, 09:20:20 AM
Quote from: Burthouse4563 on July 05, 2026, 12:59:23 AMIt's almost like the importer isn't recognizing the delimiting character and is attempting to parse the full line as the UUID

Yes, and the code (if I'm looking in the right place) looks at the header line and chooses the delimiter based on which appears first (comma or semicolon), which is why I asked.

I took your header line and the example line from your earlier post, and it imports fine for me ...

I picked just that line and the header as shown below and still get the same error. That's weird it worked for you.

@uuid;enabled;nonat;nosync;sequence;interface;ipprotocol;protocol;source_net;source_not;source_port;destination_net;destination_not;destination_port;target;target_port;staticnatport;log;categories;tag;tagged;description
;1;0;0;101;wan;inet;any;lan;0;;any;0;;;;0;0;;;;"LAN to WAN"

Edit

So realizing it was a parsing issue I went ahead and removed the spaces from my description thinking that might be throwing it off. After replacing all the spaces and qutation marks it successfully imported without issue. So to further troubleshoot I created a test rule in the new source nat with spaces and exported it. It exported and imported flawlessly with spaces. So there's something going on with the formatting for the export it seems.
#2
26.1, 26,4 Series / Re: NAT Migration Tool
July 05, 2026, 12:59:23 AM
Quote from: dseven on July 04, 2026, 11:27:08 PM
Quote from: Burthouse4563 on July 04, 2026, 06:46:16 PMHere's an example rule directly from the export tool from the migration assistant, which throws the same error.

;1;0;0;101;wan;inet;any;lan;0;;any;0;;;;0;0;;;;"LAN to WAN"

What does the first line (the header line) of the CSV file look like? The only way I can see the failure occurring is if the header line is comma separated but the actual data is semicolon-separated, but I can't imagine how that would happen....

Here's the header line.

@uuid;enabled;nonat;nosync;sequence;interface;ipprotocol;protocol;source_net;source_not;source_port;destination_net;destination_not;destination_port;target;target_port;staticnatport;log;categories;tag;tagged;description

It's semicolon. It's almost like the importer isn't recognizing the delimiting character and is attempting to parse the full line as the UUID instead of creating a new one since it isn't present.
#3
26.1, 26,4 Series / Re: NAT Migration Tool
July 04, 2026, 06:49:55 PM
Quote from: mschaeffler on July 04, 2026, 03:54:52 PMHi,

Is this only for the Outbound NAT?
What is with Destination NAT?

Thank you

Outbound is the old "legacy" style and is going to be changing to source / destination / one to one.
#4
26.1, 26,4 Series / Re: NAT Migration Tool
July 04, 2026, 06:48:56 PM
Quote from: meyergru on July 04, 2026, 04:06:42 PMWhere do you want to migrate the destination NAT rules to?

The only reason to migrate "Outbound NAT" to "SNAT" (aka "source NAT") was that this is the more common term. "Destination NAT" is already called correctly.

In the latests update the current NAT structure is changing based on the patch notes and eventually we'll have to migrate them like the old firewall rules. I'm attempting to use the migration to change from "legacy outbound NAT rules to the new Source NAT rules interface". But the original error is thrown when using the migration tool on all of my current NAT rules.
#5
26.1, 26,4 Series / Re: NAT Migration Tool
July 04, 2026, 06:46:16 PM
Quote from: dseven on July 04, 2026, 09:55:49 AMThe UUID can be empty (otherwise it must be a properly formatted one):

https://github.com/opnsense/core/blob/20070de6fca7fc83605c856bd0b84753a86fa7c2/src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/ArrayField.php#L334-L348

I wonder if your CSV file somehow got corrupted with unprintable characters, or something. Did you do anything with the file other than let your browser save it during export, then open it for import? Try a different browser maybe?

Edit: ... actually, looking at your error message again, it looks like it's considering the whole line to be the UUID, so parsing the CSV seems to have failed somehow. I still wonder if something happened to corrupt the file...

Edit 2: Oooh, I have a theory - do any of your rules have a comma (,) or semicolon (;) in their description?

Here's an example rule directly from the export tool from the migration assistant, which throws the same error.

;1;0;0;101;wan;inet;any;lan;0;;any;0;;;;0;0;;;;"LAN to WAN"

No commas or semicolons in descriptions. It all looks correct to me, though.
#6
26.1, 26,4 Series / NAT Migration Tool
July 03, 2026, 04:40:25 PM
I just upgraded to 26.1.11_5 and performed firewall rule migration without issues. I went ahead and started looking at the NAT migration. I'm using manual NAT outbound rule currently. I exported my rules without issue. When I attempt to import, though, I get validation failed for every rule with the following error.

@uuid;"Invalid UUID offered (;1;0;0;1;wan...

I added a single manual rule to see what it was expecting and upon export got

1bdd4169-e821-40ba-98b0-83fdc10c8378;1;0;0;100;lan...

So clearly the new NAT rules are expecting more than what the old ones are exporting with regard to UUID.

Is this a known error, or will it be fixed in an upcoming release? I'd prefer not to manually input all rules; I will if I have to, but if this is going to get fixed, I'll wait.

Thanks to the team for what you do.
#7
Quote from: franco on September 11, 2025, 07:14:58 AMNobody?


Cheers,
Franco

Franco,

Sorry wasn't able to break the network again before calling it a night. People get upset during TV time. Anyways, I updated to _7, changed the alias back to URL vice Host, flushed the alias via diagnostics and it refreshed correctly pulling the information. I'll watch the logs on it and let you know if it doesn't hold.

Thanks for correcting the problem.
#8
I had a similar issue. But also had an alias issue I fixed the alias issue and multi gateways with manual nat started working right away. This only impacted vlans using the broken aliases.
#9
Fixing the alias issue corrected both problems. Hopefully this gets addressed.
#10
Quote from: nbca2 on September 10, 2025, 04:54:13 PM
Quote from: Burthouse4563 on September 10, 2025, 04:43:38 PM
Quote from: nbca2 on September 10, 2025, 04:01:48 PM
Quote from: Burthouse4563 on September 10, 2025, 03:59:13 PMFranco I applied the hot fix and rebooted and still have empty alias tables.
same problem

I think I found part of the problem. I had an alias with URLs in it that were failing to resolve because they didn't have https in front of them. This previously didn't cause an issue on older versions. But disalbing that alias allowed other aliases to populate. So there's an issue if an alias can't populate that it stops updating ones further down the list.

Example error message.

error fetching alias url us.archive.ubuntu.com (Invalid URL 'us.archive.ubuntu.com': No scheme supplied. Perhaps you meant https://us.archive.ubuntu.com?)

you're right, i resolved modifing the type from "url" to "Host/s" in the alias that in Content has "archive.ubuntu.com"

now the command /usr/local/opnsense/scripts/filter/update_tables.py --> {"status": "ok"}
aliases are populated now

I made that change as well and it also fixed the alias problem.
#11
Quote from: nbca2 on September 10, 2025, 04:01:48 PM
Quote from: Burthouse4563 on September 10, 2025, 03:59:13 PMFranco I applied the hot fix and rebooted and still have empty alias tables.
same problem

I think I found part of the problem. I had an alias with URLs in it that were failing to resolve because they didn't have https in front of them. This previously didn't cause an issue on older versions. But disalbing that alias allowed other aliases to populate. So there's an issue if an alias can't populate that it stops updating ones further down the list.

Example error message.

error fetching alias url us.archive.ubuntu.com (Invalid URL 'us.archive.ubuntu.com': No scheme supplied. Perhaps you meant https://us.archive.ubuntu.com?)
#12
Franco I applied the hot fix and rebooted and still have empty alias tables.
#14
Since upgrading to 25.7.3 and _3 I've had nothing but issues with aliases and policy based routing. Also haivng my OPNVPN clients turned on acting as gateways kills external routing on my two vlans that potentially use them. If I turn off the OPNVPN clients routing returns. I've confirmed alsiases aren't working by plugging in the IP address of a machine I want VPN routed and the rule works.
#15
So it's always DNS, but I don't know what setting I'm missing that would allow it to work on the default gateway and not the WAN.