OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • WAN DHCP6 VLAN Priority tagging
« previous next »
  • Print
Pages: 1 2 3 [4]

Author Topic: WAN DHCP6 VLAN Priority tagging  (Read 17299 times)

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13957
  • Karma: 1210
    • View Profile
Re: WAN DHCP6 VLAN Priority tagging
« Reply #45 on: December 30, 2017, 08:55:41 pm »
Ok, this looks reasonable now, but only reverse engineered...

https://github.com/opnsense/src/commit/c0056914
https://github.com/opnsense/src/commit/f841d1d3

Now we have 5 individual commits on top of the dhclient_77 branch which will help pin down what works and what not. :)


Happy testing,
Franco
« Last Edit: December 30, 2017, 08:57:46 pm by franco »
Logged

marjohn56

  • Hero Member
  • *****
  • Posts: 1677
  • Karma: 171
    • View Profile
Re: WAN DHCP6 VLAN Priority tagging
« Reply #46 on: January 02, 2018, 03:25:25 pm »
OK, now having recovered from NYE, I am back on the case. :)

dhcp6c is looking good, all working on the VLAN and the prio is setting correctly and doing its thing.

Now, the problem is dhclient, although the VLAN is correct, the prio will not set, it's sticking at 0.

I have cheated a little and just copied the changes made for dhcp6c and changed the ports as needed, pasted it directly beneath the dhcp6 set prioty rule in filter.lib.inc - like this:

$dhcpv4_opts = array(
            'label' => 'allow dhcpv client in ' . $intfinfo['descr'],
            'direction' => 'out',
            'interface' => $intf,
            'protocol' => 'udp',
            'from_port' => 68,
            'to_port' => 67,
            );
            if (isset($intfinfo['dhcp6vlanprio'])) {
                $dhcpv4_opts['set-prio'] = $intfinfo['dhcp6vlanprio'];
            }
            $fw->registerFilterRule(1, $dhcpv4_opts, $defaults['pass']);

rules.debug shows:

pass out log quick on em0_vlan832 proto udp from {any} port {546} to {any} port {547} set prio 6 label "allow dhcpv6 client in WAN"
pass out log quick on em0_vlan832 proto udp from {any} port {68} to {any} port {67} set prio 6 label "allow dhcpv client in WAN"

but wireshark shows priority 0.

Logged
OPNsense 21.7 - Qotom Q355G4 - ISP - Community Fibre 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

marjohn56

  • Hero Member
  • *****
  • Posts: 1677
  • Karma: 171
    • View Profile
Re: WAN DHCP6 VLAN Priority tagging
« Reply #47 on: January 02, 2018, 03:28:37 pm »
Forgot to add,  I see this in the firewall logs

WAN Dec 31 18:44:15   0.0.0.0:68   255.255.255.255:67   udp   block bogon IPv4 networks from WAN
Logged
OPNsense 21.7 - Qotom Q355G4 - ISP - Community Fibre 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

nivek1612

  • Full Member
  • ***
  • Posts: 188
  • Karma: 25
    • View Profile
Re: WAN DHCP6 VLAN Priority tagging
« Reply #48 on: January 02, 2018, 05:32:56 pm »
I confirm my tests give the same results as marjohn

The pro flag is not being set on the dhcp request despite the rule being present in rules.debug
Logged
OPNsense 23.1.* on Qotom i5-5250U with Zen FTTC 80/20
OPNsense 23.1.* on Qotom i7-4500U with Orange FR FTTP 1000/400 and SFR FTTP 200/20

Team Rebellion Member
One of Marjohns TESTERS :-)

nivek1612

  • Full Member
  • ***
  • Posts: 188
  • Karma: 25
    • View Profile
Re: WAN DHCP6 VLAN Priority tagging
« Reply #49 on: February 12, 2018, 05:25:40 pm »
Well I've been running 18.1.2_2 now for 3 days on the Orange FTTP service
Seeing max throughput of 500/250 no issues

I used the modified dhclient, dhcp6c (i shared these binaries previously) and the vlan flag in tuneables

Also used a marjohn modified interface.inc pending his pull request #2090 being merged

Getting a score of 19/20 on ipv6-test.com

So we know the theory I tested with wireshark work in the wild.
 
« Last Edit: February 12, 2018, 05:27:26 pm by nivek1612 »
Logged
OPNsense 23.1.* on Qotom i5-5250U with Zen FTTC 80/20
OPNsense 23.1.* on Qotom i7-4500U with Orange FR FTTP 1000/400 and SFR FTTP 200/20

Team Rebellion Member
One of Marjohns TESTERS :-)

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13957
  • Karma: 1210
    • View Profile
Re: WAN DHCP6 VLAN Priority tagging
« Reply #50 on: February 12, 2018, 05:58:01 pm »
Next step is 2090 then?

What's still on the TODO list? I recall:
* dhclient VLAN fix
* dhcp6c raw options

Which VLAN flag are you referring to? mtag_pcp? It should not be necessary on 18.1 anymore.


Cheers,
Franco
Logged

nivek1612

  • Full Member
  • ***
  • Posts: 188
  • Karma: 25
    • View Profile
Re: WAN DHCP6 VLAN Priority tagging
« Reply #51 on: February 12, 2018, 06:11:31 pm »
2090 - I have to wait that long, feels like I'm back on the darkside  ;D ;D

I assume you mean 20/20 result. Until Orange set up a reverse DSN entry for my IPv6 there is not much hope of that :-)

Yes setting the mtag_pcp to 1, I may get chance to try without that flag set later (heading back to UK soon)

You are correct on the to do list though
Logged
OPNsense 23.1.* on Qotom i5-5250U with Zen FTTC 80/20
OPNsense 23.1.* on Qotom i7-4500U with Orange FR FTTP 1000/400 and SFR FTTP 200/20

Team Rebellion Member
One of Marjohns TESTERS :-)

nivek1612

  • Full Member
  • ***
  • Posts: 188
  • Karma: 25
    • View Profile
Re: WAN DHCP6 VLAN Priority tagging
« Reply #52 on: February 12, 2018, 06:21:48 pm »
Confirmed removed net.link.vlan.mtag_pcp from tunables

All still working

Does that mean the I get a full solution in 2018 now :-)
Logged
OPNsense 23.1.* on Qotom i5-5250U with Zen FTTC 80/20
OPNsense 23.1.* on Qotom i7-4500U with Orange FR FTTP 1000/400 and SFR FTTP 200/20

Team Rebellion Member
One of Marjohns TESTERS :-)

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13957
  • Karma: 1210
    • View Profile
Re: WAN DHCP6 VLAN Priority tagging
« Reply #53 on: February 12, 2018, 06:28:07 pm »
Hopefully. :)

I'll work on 2090 this week... it's bigger than I liked so it had to be sidestepped for 18.1.
Logged

marjohn56

  • Hero Member
  • *****
  • Posts: 1677
  • Karma: 171
    • View Profile
Re: WAN DHCP6 VLAN Priority tagging
« Reply #54 on: February 23, 2018, 04:27:47 pm »
Quote from: franco on February 12, 2018, 05:58:01 pm
Next step is 2090 then?

What's still on the TODO list? I recall:
* dhclient VLAN fix
* dhcp6c raw options

I'll work on 2090 this week... it's bigger than I liked so it had to be sidestepped for 18.1.


It's not THAT big.. :)

 if you look at it, it just breaks down a rather cumbersome call into more logical ones. For example rather than having the existing call writing all the config files AND starting rtsold and dhcp6c, the config file creation is broken out and is a separate call(s), the starting and stopping of the clients is also separate calls.
Logged
OPNsense 21.7 - Qotom Q355G4 - ISP - Community Fibre 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13957
  • Karma: 1210
    • View Profile
Re: WAN DHCP6 VLAN Priority tagging
« Reply #55 on: February 28, 2018, 08:46:21 am »
It keeps eluding... meh... sorry!
Logged

nivek1612

  • Full Member
  • ***
  • Posts: 188
  • Karma: 25
    • View Profile
Re: WAN DHCP6 VLAN Priority tagging
« Reply #56 on: February 28, 2018, 09:11:46 pm »
If it provides any motivation I'm back in France on the 18th March and could test :-)
Logged
OPNsense 23.1.* on Qotom i5-5250U with Zen FTTC 80/20
OPNsense 23.1.* on Qotom i7-4500U with Orange FR FTTP 1000/400 and SFR FTTP 200/20

Team Rebellion Member
One of Marjohns TESTERS :-)

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13957
  • Karma: 1210
    • View Profile
Re: WAN DHCP6 VLAN Priority tagging
« Reply #57 on: February 28, 2018, 09:17:24 pm »
I've had Martin explain everything to me... again... that he is still motivated shows great character!

All help welcome, I think we'll be ready when you are back in France.


Cheers,
Franco
Logged

nivek1612

  • Full Member
  • ***
  • Posts: 188
  • Karma: 25
    • View Profile
Re: WAN DHCP6 VLAN Priority tagging
« Reply #58 on: April 02, 2018, 11:26:56 am »
@franco

I see you guys have completed dhcp6c now

Any ETA for the modified dhclient :-)
Logged
OPNsense 23.1.* on Qotom i5-5250U with Zen FTTC 80/20
OPNsense 23.1.* on Qotom i7-4500U with Orange FR FTTP 1000/400 and SFR FTTP 200/20

Team Rebellion Member
One of Marjohns TESTERS :-)

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13957
  • Karma: 1210
    • View Profile
Re: WAN DHCP6 VLAN Priority tagging
« Reply #59 on: April 04, 2018, 08:20:45 am »
Hello :)

Not yet, but at least things keep moving into the right direction. RAW isn't final yet, we decided to run our own dhcp6c client for better review and modification so that comes in rather sooner than later (18.1.8 or 18.1.9 ?)

The patch for dhclient was reviewed and superficially ready, but I'm not sure I broke it during fixing the BPF filter which had a big XXX in the original patch.

Small discussion on this condensed commit: https://github.com/opnsense/src/commit/b179b4628b


Cheers,
Franco
Logged

  • Print
Pages: 1 2 3 [4]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • WAN DHCP6 VLAN Priority tagging
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2