OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Multi WAN and ipv6
« previous next »
  • Print
Pages: 1 2 [3] 4 5 6

Author Topic: Multi WAN and ipv6  (Read 16829 times)

wget

  • Newbie
  • *
  • Posts: 43
  • Karma: 1
    • View Profile
Re: Multi WAN and ipv6
« Reply #30 on: May 30, 2020, 05:39:01 pm »
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.

Code: [Select]
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:

Code: [Select]
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;
« Last Edit: May 30, 2020, 06:49:58 pm by wget »
Logged
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

marjohn56

  • Hero Member
  • *****
  • Posts: 1676
  • Karma: 168
    • View Profile
Re: Multi WAN and ipv6
« Reply #31 on: May 30, 2020, 10:55:42 pm »
OK, the files look fine. Can you reboot, and then do a ps -auxw | grep dhcp6c and post the result... ta
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: 1676
  • Karma: 168
    • View Profile
Re: Multi WAN and ipv6
« Reply #32 on: June 01, 2020, 10:29:43 am »
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.



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

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

wget

  • Newbie
  • *
  • Posts: 43
  • Karma: 1
    • View Profile
Re: Multi WAN and ipv6
« Reply #33 on: June 01, 2020, 07:46:23 pm »
Quote
that 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?
Logged
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

marjohn56

  • Hero Member
  • *****
  • Posts: 1676
  • Karma: 168
    • View Profile
Re: Multi WAN and ipv6
« Reply #34 on: June 01, 2020, 10:31:53 pm »
what does your version info say, 20.?


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

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

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

wget

  • Newbie
  • *
  • Posts: 43
  • Karma: 1
    • View Profile
Re: Multi WAN and ipv6
« Reply #35 on: June 02, 2020, 12:53:35 pm »
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.

Code: [Select]
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
« Last Edit: June 02, 2020, 04:08:55 pm by wget »
Logged
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

wget

  • Newbie
  • *
  • Posts: 43
  • Karma: 1
    • View Profile
Re: Multi WAN and ipv6
« Reply #36 on: June 02, 2020, 12:54:24 pm »
Also, if you know what is the procedure to go back to stock, let me now. That way, I can restart from scratch. :)
Logged
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

marjohn56

  • Hero Member
  • *****
  • Posts: 1676
  • Karma: 168
    • View Profile
Re: Multi WAN and ipv6
« Reply #37 on: June 02, 2020, 04:07:15 pm »
I meant what revision you were on, I assume 20.1.7?
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: 1676
  • Karma: 168
    • View Profile
Re: Multi WAN and ipv6
« Reply #38 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.
Logged
OPNsense 21.7 - Qotom Q355G4 - ISP - Community Fibre 1Gbps.

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

wget

  • Newbie
  • *
  • Posts: 43
  • Karma: 1
    • View Profile
Re: Multi WAN and ipv6
« Reply #39 on: June 02, 2020, 04:11:01 pm »
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
Logged
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

marjohn56

  • Hero Member
  • *****
  • Posts: 1676
  • Karma: 168
    • View Profile
Re: Multi WAN and ipv6
« Reply #40 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.
Logged
OPNsense 21.7 - Qotom Q355G4 - ISP - Community Fibre 1Gbps.

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

wget

  • Newbie
  • *
  • Posts: 43
  • Karma: 1
    • View Profile
Re: Multi WAN and ipv6
« Reply #41 on: June 02, 2020, 04:19:34 pm »
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
Code: [Select]
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:
Code: [Select]
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.
Logged
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

wget

  • Newbie
  • *
  • Posts: 43
  • Karma: 1
    • View Profile
Re: Multi WAN and ipv6
« Reply #42 on: June 02, 2020, 04:20:28 pm »
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.
Logged
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

marjohn56

  • Hero Member
  • *****
  • Posts: 1676
  • Karma: 168
    • View Profile
Re: Multi WAN and ipv6
« Reply #43 on: June 02, 2020, 05:14:19 pm »
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.
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: 1676
  • Karma: 168
    • View Profile
Re: Multi WAN and ipv6
« Reply #44 on: June 02, 2020, 05:35:43 pm »
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.
Logged
OPNsense 21.7 - Qotom Q355G4 - ISP - Community Fibre 1Gbps.

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

  • Print
Pages: 1 2 [3] 4 5 6
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Multi WAN and ipv6
 

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