Multi WAN and ipv6

Started by Perun, September 11, 2018, 07:17:41 AM

Previous topic - Next topic
May 30, 2020, 05:39:01 PM #30 Last Edit: May 30, 2020, 06:49:58 PM by wget
Quote from: marjohn56 on May 27, 2020, 08:52:19 AM
Work has not yet been done on a single LAN with multiple WAN dhcp6, however dhcp6c should still do its thing. Can you post your /var/etc/dhcp6c.conf and /var/dhcpd/etc/dhcpdv6.conf files.

Yes, I know work on single LAN for multi WAN has not been done yet. The problem I have been describing was related to have several dhcp6c :)

Here are the files requested. Some sensible content has been redacted with X.

/var/etc/dhcp6c.conf:

Quite normal this is not working, the file doesn't have config for ibg2. :/ I don't understand why the config is missing though.

interface igb1 {
  send ia-na 2; # request stateful address
  send ia-pd 2; # request prefix delegation
  request domain-name-servers;
  request domain-name;
  script "/var/etc/dhcp6c_opt1_script.sh"; # we'd like some nameservers please
};
id-assoc na 2 { };
id-assoc pd 2 {
  prefix-interface igb0 {
    sla-id 0;
    sla-len 0;
  };
};


/var/dhcpd/etc/dhcpdv6.conf:

option dhcp6.domain-search "home.XXXX.XX";

default-lease-time 7200;
max-lease-time 86400;
log-facility local7;
one-lease-per-client true;
deny duplicates;
ping-check true;
update-conflict-detection false;
authoritative;

subnet6 2a02:2788:XXX:XXX::/64 {
  range6 2a02:2788:XXX:XXX::1000 2a02:2788:XXX:XXX::2000;
  option dhcp6.name-servers 2a02:2788:XXX:XXX:XXX:XXX:XXXX:XXXX;
  prefix6 2a02:2788:XXX:8000:: 2a02:2788:XXX:ff00::/60;
}

ddns-update-style none;
PC Engines apu2c4 (3 i210AT + 4GB RAM) - multi WAN: VOO (DOCSIS based) + Proximus (xDSL based) both native dual stack IPv4/IPv6 - Belgium 🇧🇪 
OPNsense 20.1.x release version

OK, the files look fine. Can you reboot, and then do a ps -auxw | grep dhcp6c and post the result... ta
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

Ah.. a closer look shows all is not as it should be. The script name 'script "/var/etc/dhcp6c_opt1_script.sh"; # we'd like some nameservers please' us wrong, that would suggest not everything is in place.



OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

Quotethat would suggest not everything is in place.

What do you suggest to do then? The procedure I followed and adapted from yours is described here.

Would you mind checking whether the steps I followed are correct?
PC Engines apu2c4 (3 i210AT + 4GB RAM) - multi WAN: VOO (DOCSIS based) + Proximus (xDSL based) both native dual stack IPv4/IPv6 - Belgium 🇧🇪 
OPNsense 20.1.x release version

what does your version info say, 20.?


I'll try and recreate what you did, but I need to know where to start.

OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

June 02, 2020, 12:53:35 PM #35 Last Edit: June 02, 2020, 04:08:55 PM by wget
Quote from: marjohn56 on June 01, 2020, 10:31:53 PM
what does your version info say, 20.?

It says: OPNsense 20.7.b_178-amd64


Quote from: marjohn56 on June 01, 2020, 10:31:53 PM
I'll try and recreate what you did, but I need to know where to start.

Where to start? Simply follow what I did from there.

opnsense-update -t opnsense-devel
cd /usr
opnsense-code core
make upgrade

cd /usr
git clone https://github.com/opnsense/dhcp6c.git
cd dhcp6c
./configure
make
killall -TERM dhcp6c
make install

opnsense-patch c76a729
opnsense-patch 88bb423
opnsense-patch fa8b4c7

reboot
PC Engines apu2c4 (3 i210AT + 4GB RAM) - multi WAN: VOO (DOCSIS based) + Proximus (xDSL based) both native dual stack IPv4/IPv6 - Belgium 🇧🇪 
OPNsense 20.1.x release version

Also, if you know what is the procedure to go back to stock, let me now. That way, I can restart from scratch. :)
PC Engines apu2c4 (3 i210AT + 4GB RAM) - multi WAN: VOO (DOCSIS based) + Proximus (xDSL based) both native dual stack IPv4/IPv6 - Belgium 🇧🇪 
OPNsense 20.1.x release version

I meant what revision you were on, I assume 20.1.7?
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

Nah... looking again the files are OK. So you are seeing multiple dhcp6c instances?


Can you do a ps -auxw | grep dhcp6c and post results please.
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

Quote from: marjohn56 on June 02, 2020, 04:07:15 PM
I meant what revision you were on, I assume 20.1.7?

I was indeed on 20.1.7, but followed the procedure I described above, and then it showed OPNsense 20.7.b_178-amd64
PC Engines apu2c4 (3 i210AT + 4GB RAM) - multi WAN: VOO (DOCSIS based) + Proximus (xDSL based) both native dual stack IPv4/IPv6 - Belgium 🇧🇪 
OPNsense 20.1.x release version

OK. I'm going to install 20.1.7 and do what you did, see where it takes me.
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

Quote from: marjohn56 on June 02, 2020, 04:15:26 PM
OK. I'm going to install 20.1.7 and do what you did, see where it takes me.


Thanks. I have just run

opnsense-update -t opnsense


and am now back on 20.1.7.

I'll also remove the files /var/etc/dhcp6c.conf, /var/dhcpd/etc/dhcpdv6.conf and related to start fresh and redo the procedure.

Indeed, something triggered my attention from the man pages of opnsense-patch:
opnsense-patch - OPNsense patch utility
[...]
Patches can also be reversed by reapplying them
[...]


which means since I tried several times, the patches may have been reverted.
PC Engines apu2c4 (3 i210AT + 4GB RAM) - multi WAN: VOO (DOCSIS based) + Proximus (xDSL based) both native dual stack IPv4/IPv6 - Belgium 🇧🇪 
OPNsense 20.1.x release version

Quote from: marjohn56 on June 02, 2020, 04:09:37 PM
Nah... looking again the files are OK. So you are seeing multiple dhcp6c instances?


Can you do a ps -auxw | grep dhcp6c and post results please.

So I wasn't seeing multiple instances. and ps aux was always reporting one.
PC Engines apu2c4 (3 i210AT + 4GB RAM) - multi WAN: VOO (DOCSIS based) + Proximus (xDSL based) both native dual stack IPv4/IPv6 - Belgium 🇧🇪 
OPNsense 20.1.x release version

Yup... I see. It would appear it's something to do with FreeBSD 11. I reported an issue a week or so ago and although dhcp6c is working the kernel is reporting issues. You have a choice, you can install the 20.7 beta that's available and carry out the same steps or wait for the new beta, should be with us any day now.
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

Just re-installed the beta again, updated and installed the new dhcp6c and all is sweet. I did not even install the patches and its working.
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member