1
19.7 Legacy Series / Re: Virtual IPs blocked, no port forward
« on: October 19, 2019, 01:42:08 am »
I've resolved the issue. I think I may have found a bug that has been persistent for several versions. My current running opnsense is version 19.1 which is still dealing with this problem (will fix when I can stop all services).
I have been testing on a fully updated 19.7 which experienced the same error.
The problem was with my Aliases
Apparently, Alias names cannot be numbers only.
I named my Aliases according to the last octet of my usable static IP leases.
So my IP 10.10.10.211 > Alias name: 211
My logs showed there was a syntax error on line 20 of /tmp/rules.debug
The syntax appeared normal when comparing two Aliases (opnsense and 211 below):
As soon as I remove the numbers-only Aliases and restart all services - the firewall loads properly and port forwarding is working as expected. No syntax errors either.
I have not found anywhere that makes this notice in naming the Alias. Likewise, the GUI has no problem accepting the name.
I have been testing on a fully updated 19.7 which experienced the same error.
The problem was with my Aliases
Apparently, Alias names cannot be numbers only.
I named my Aliases according to the last octet of my usable static IP leases.
So my IP 10.10.10.211 > Alias name: 211
My logs showed there was a syntax error on line 20 of /tmp/rules.debug
Code: [Select]
[There were error(s) loading the rules: /tmp/rules.debug:52: syntax error - The line in question reads [52]:211 =]
The syntax appeared normal when comparing two Aliases (opnsense and 211 below):
Code: [Select]
table <opnsense> persist
opnsense = "<opnsense>"
table <211> persist
211 = "<211>"
As soon as I remove the numbers-only Aliases and restart all services - the firewall loads properly and port forwarding is working as expected. No syntax errors either.
I have not found anywhere that makes this notice in naming the Alias. Likewise, the GUI has no problem accepting the name.