Aliases dosen't work(?)

Started by mais_um, December 08, 2017, 01:29:54 AM

Previous topic - Next topic
Well I've just had a severe hour or two, going round in ever decreasing circles...

I had trouble with getting my system to work everytime I pulled in the config from 17.7.11, running a ping against google failed after every reboot. The only way to get it back was to disable all the rules except the default ones, apply it and back would come the ping, re-apply, all works.... reboot, lost pings again. :(

looked at rules debug, ahah... the gateway is different on a reboot... it was, it jumps between different gateways on boot, but that was not the issue...

No, it was the rules, namely the IPV6 ICMP rule, which now needs to be IPv6 ICMP.v6

I'm going for a pint.... or several!
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

This doesn't sound so good, something in the code to fix or add compat for in the rules generation?


Cheers,
Franco

I see you snuck out 17.7.12 when I was testing 18.1r2

thought my eyes where going for a minute when I looked in the System:Firmware 
OPNsense 24.7.* on Qotom i5-5250U with AAISP FTTP 900/120
OPNsense 24.7.* on Qotom i7-4500U with Orange FR FTTP 1000/400

Team Rebellion Member
One of Marjohns TESTERS :-)

Quote from: franco on January 18, 2018, 05:58:39 PM
This doesn't sound so good, something in the code to fix or add compat for in the rules generation?


Cheers,
Franco

If you make  it compatible the you dont need the option in the drop down list, it is a bit misleading, you. Select ipv6 then ICMP,  that's what gets you, you type Ic and up comes ICMP, and it is, but for v4. I wonder how many that will catch.  ;)
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

@nivek1612: keeping the 17.7.x folk happy hopefully. :)

@marjohn56: Ah so a user-config error? It's true that ICMP and ICMP6 are different IANA numbers. I thought it was something transcending the worlds between 17.7 and 18.1 causing an incompatibility. Discussing ways forward, the ICMP could be appended with 4 or v4 to make it more clear and cleanly sidestep the issue of ambiguity?

January 18, 2018, 07:56:33 PM #50 Last Edit: January 18, 2018, 08:08:44 PM by marjohn56
Or just select ICMP and let the backend work out which, v4 or V6 has already been selected or the drop down list should be empty. Failing that, start both labels with ICMP and add V6 v4 to the end of the label. At present if you enter 'Ic' you only get ICMP for v4.
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

Enter the guy who reported this and said he would have a CVE assigned:

https://github.com/opnsense/core/commit/ae677059d

The story behind it was that although pf accepts these values, it cannot filter them. The CVE was never assigned in the end, though.

Moral of the story: don't try to outsmart 99% of the users for their own benefit, the 1% will try assign a CVE for when a security-related option does not do what it says it should. Since we can't be sure, we should simply make the choices less ambiguous.


Cheers,
Franco

After running the two patch my alias still doesn't work.



root@OPNsense:~ # df
Filesystem      1K-blocks    Used    Avail Capacity  Mounted on
/dev/gpt/rootfs  92421240 4125852 80901692     5%    /
devfs                   1       1        0   100%    /dev
devfs                   1       1        0   100%    /var/dhcpd/dev
root@OPNsense:~ #

Was this with a clean install of 18.1.rc1?
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

yes - clean install and restored configurations.

are the aliases showing in rules.debug?
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

Quote from: cardins2u on January 20, 2018, 12:38:02 PM
yes - clean install and restored configurations.

Did you do just the two patches mentioned here or three patches? There is one more that MIGHT affect you.

653651046fda533983bfc818d087fee5f073c7f6

That was one to make sure the aliastables folder is there and behaving.
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member