Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Multiple IPv6 Prefix Delegation over AT&T Residential Gateway for pfSense 2.4.5

    IPv6
    30
    147
    60.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      ttmcmurry @JKnott
      last edited by

      @jknott

      Habit from work. :) Policy is always obscure IP Addresses. 😂

      1 Reply Last reply Reply Quote 0
      • C
        cbennett2010 @ttmcmurry
        last edited by

        @ttmcmurry Yeah when I log into my RG the only thing I see is this:
        c4462f8f-7a10-4e3b-ab41-6ce8cc65f1fd-image.png
        So nothing shows up under the ipv6 delegated prefix subnet. And I checked the other settings, and rebooted the RG.

        I spoke on chat with AT&T which I feel that their knowledge of ipv6 is probably even less than mine, not that its their fault, i'm sure its just not many people really deal with it that much. But they stated, and their manager stated that i'm only allocated a /64, and if I wanted more I needed to pay $15 dollars a month for static ip's to get a larger allocation. which seems a little crazy, but I guess i'm kinda stuck unless I go the RG bypass route and set pfsense as the primary connection to actually see what i'm getting from the AT&T side. Again thanks for the help, just not sure why ipv6 is completely down for me now after updating to 2.5.0 because before I could at least get 1 ipv6 network running with tracking the wan interface, but now I get nothing. I'll keep plugging away on my end until I figure out something.

        1 Reply Last reply Reply Quote 0
        • C
          cbennett2010 @ttmcmurry
          last edited by

          @ttmcmurry Ok so, I made a little bit of progress, there is something definitely different with pfsense. So I disabled everything IPv6 within pfsense, and ssh'd into the box and killed all dhcp6c processes, I then proceeded to manually run the dhcp6c client on my WAN interface with the following command:

          /usr/local/sbin/dhcp6c -D -c /usr/local/etc/rc.d/att-rg-dhcpv6-pd.conf  igb0
          

          when I did that, amazingly I was able to pull ipv6 addresses on all my interfaces as was originally expected. However, now that I have everything turned off, the DHCP6 servers and RA's aren't on, but still, a little bit of progress.

          Any thoughts of where to look next, i'm just poking around in the dark at this point.

          Thanks Again!

          1 Reply Last reply Reply Quote 0
          • C
            cbennett2010 @ttmcmurry
            last edited by

            @ttmcmurry Is it possible that through the chains of scripts being ran since we call this script within yours:

            /var/etc/dhcp6c_wan_dhcp6withoutra_script.sh
            

            then that script calls:

            /var/etc/rtsold_igb0_script.sh
            

            which should be starting dhcp6c client. along with setting a few other things, but after tinkering around, i've fond that I start to see this in the logs:

            XID mismatch
            

            Which makes me wonder, is it somehow calling dhcp6c client to run multiple times? Because if I comment out the dhcp6c_wan_dhcp6withoutra_script.sh from your script dhcp6c still starts and assigns addresses.

            1 Reply Last reply Reply Quote 0
            • L
              lilchancep
              last edited by

              So idk how much this will help you @ttmcmurry but on my pfsense 2.5 Installation this script worked without any changes at all.

              M 1 Reply Last reply Reply Quote 1
              • M
                mitsurugi78 @lilchancep
                last edited by

                @lilchancep Which script is that you used for 2.5? I've seen a few different posts of scripts and am a bit unsure of which to use now. Thanks

                L 1 Reply Last reply Reply Quote 0
                • L
                  lilchancep @mitsurugi78
                  last edited by

                  @mitsurugi78 Here is all the steps taken from this thread and cleaned up.

                  https://github.com/lilchancep/att-pfsense-ipv6

                  M 1 Reply Last reply Reply Quote 1
                  • M
                    mitsurugi78 @lilchancep
                    last edited by

                    @lilchancep thanks greatly appreciated!

                    T 1 Reply Last reply Reply Quote 0
                    • T
                      ttmcmurry @mitsurugi78
                      last edited by

                      @mitsurugi78

                      I think we're also highlighting some bugs - see redmine #11187 and #11454

                      @lilchancep

                      It might be time to start a 2.5 thread. :)

                      1 Reply Last reply Reply Quote 0
                      • S
                        slab_bulkhead
                        last edited by

                        @ttmcmurry thank you so much for your work on this! One of my biggest irritations with AT&T was the inability to pull more than one /64, while on Spectrum I can get a /56 PD with no issues at all. I have this working on 2.5 -- I had some issues at first and then discovered it was because things do not behave well with IPv6 enabled on multiple WAN interfaces at the same time (I still have the Spectrum modem connected until service cancels out at the end of the month).

                        I am on VDSL and therefore am unable to attempt bypassing the gateway.

                        1 Reply Last reply Reply Quote 1
                        • djdawsonD
                          djdawson @ttmcmurry
                          last edited by

                          @ttmcmurry I've got a Humax BGW320-500 with my symmetric 1G service from AT&T and its NAT State Table size is 8192. Here are my RG details, copied from the device status page:

                          Manufacturer: HUMAX
                          Model Number: BGW320-500
                          Software Version: 2.14.4
                          Hardware Version: 02001F0046005

                          1 Reply Last reply Reply Quote 0
                          • styxlS
                            styxl
                            last edited by styxl

                            I have attempted to do this on "21.05.2-RELEASE" to no avail; the script simply doesnt seem to work anymore.

                            this is the error i get:

                            Dec  2 20:40:00 Scimitar dhcp6c[58269]: /var/etc/dhcp6c_wan.conf 20: syntax error
                            Dec  2 20:40:00 Scimitar dhcp6c[58269]: /var/etc/dhcp6c_wan.conf 20: fatal parse failure: exiting (1 errors)
                            Dec  2 20:40:00 Scimitar dhcp6c[58269]: failed to parse configuration file
                            Dec  2 20:40:00 Scimitar rtsold[58345]: Starting dhcp6 client for interface wan(igb0)
                            Dec  2 20:40:01 Scimitar reboot[98400]: rebooted by root
                            Dec  2 20:40:01 Scimitar syslogd: exiting on signal 15
                            
                            1 Reply Last reply Reply Quote 0
                            • styxlS
                              styxl
                              last edited by

                              my config is as such:

                              interface igb0 {
                              	send ia-na 0;
                              	send ia-pd 0;
                              	send ia-pd 1;
                              	request domain-name-servers;
                              	request domain-name;
                              	script "/var/etc/dhcp6c_wan_script.sh";
                              };
                              id-assoc na 0 { };
                              id-assoc pd 0 {
                              	prefix-interface ix0 {
                              		sla-id 0;
                              		sla-len 0;
                              	};
                              };
                              id-assoc pd 1 { 
                              	prefix-interface ix1 {
                              		sla-id 0;
                              		sla-len 0;
                              	};
                              };
                              
                              1 Reply Last reply Reply Quote 1
                              • D
                                dmac1418
                                last edited by

                                I wanted to chime in and thank you for all your info on this thread.

                                I followed your guide via the GitHub adaptation and it worked no problem on 2.5.2-RELEASE (amd64) and the AT&T BGW320 modem/gateway.

                                interface em0 {
                                	send ia-na 0;
                                	send ia-pd 0;
                                	send ia-pd 1;
                                	send ia-pd 2;
                                	send ia-pd 3;
                                	request domain-name-servers;
                                	request domain-name;
                                	script "/var/etc/dhcp6c_wan_script.sh";
                                };
                                id-assoc na 0 { };
                                id-assoc pd 0 {
                                	prefix-interface igb0 {
                                		sla-id 0;
                                		sla-len 0;
                                	};
                                };
                                id-assoc pd 1 { 
                                	prefix-interface igb0.11 {
                                		sla-id 0;
                                		sla-len 0;
                                	};
                                };
                                id-assoc pd 2 { 
                                	prefix-interface igb0.12 {
                                		sla-id 0;
                                		sla-len 0;
                                	};
                                };
                                id-assoc pd 3 { };
                                
                                

                                Thanks & Happy New Year!

                                styxlS 1 Reply Last reply Reply Quote 1
                                • styxlS
                                  styxl @dmac1418
                                  last edited by

                                  @dmac1418 lucky you; i gave up on making it work on the SG-5100

                                  styxlS 1 Reply Last reply Reply Quote 0
                                  • T
                                    thekorn
                                    last edited by

                                    Hello!

                                    I'm running pfsense 2.6.0-release, and am trying to get ipv6 to work with multiple VLANs.

                                    I've been able to implement all steps except step 7, enabling the DHCPv6 server and testing. When I go to dhcpv6 server & ra, dhcpv6 server, enable, save it kicks back "A valid range must be specified for any mode except Stateless DHCP."

                                    I put in a range of :: to ::ffff:ffff:ffff:ffff, and that made it happy. Might want to update the... github.

                                    Note that I was able to retireve an ipv6 address without this. I assume this is because SLAAC is being passed through to the residential gateway, and it's assigning the IPv6 address instead?

                                    Thanks for all the hard work documenting this! I certainly wasn't going to figure this all out on my own!

                                    L 1 Reply Last reply Reply Quote 1
                                    • styxlS
                                      styxl @styxl
                                      last edited by

                                      @styxl i finally got mine to work, my config was wrong;

                                      interface igb0 {
                                              send ia-na 0;
                                              send ia-pd 0;
                                              send ia-pd 1;
                                              send ia-pd 2;
                                              send ia-pd 3;
                                              send ia-pd 4;
                                              send ia-pd 5;
                                              send ia-pd 6;
                                              request domain-name-servers;
                                              request domain-name;
                                              script "/var/etc/dhcp6c_wan_script.sh";
                                      };
                                      id-assoc na 0 { };
                                      id-assoc pd 0 {
                                              prefix-interface ix0 {
                                                      sla-id 0;
                                                      sla-len 0;
                                              };
                                      };
                                      id-assoc pd 1 {
                                              prefix-interface ix1.101 {
                                                      sla-id 0;
                                                      sla-len 0;
                                              };
                                      };
                                      id-assoc pd 2 { };
                                      id-assoc pd 3 { };
                                      id-assoc pd 4 { };
                                      id-assoc pd 5 { };
                                      id-assoc pd 6 { };
                                      id-assoc pd 7 { };
                                      
                                      1 Reply Last reply Reply Quote 1
                                      • L
                                        lilchancep @thekorn
                                        last edited by

                                        @thekorn Updated the repo, let me know if you have anything else you think I should add.

                                        T 1 Reply Last reply Reply Quote 1
                                        • T
                                          thekorn @lilchancep
                                          last edited by thekorn

                                          @lilchancep Now that you mention it, I suppose now is a good a time as any to add that it works with a Nokia BGW320-505 (fw 3.15.7).

                                          (States are same as before, 8k, set pf to 7.5k)

                                          1 Reply Last reply Reply Quote 0
                                          • L
                                            lolipoplo
                                            last edited by

                                            I see discussions on ATT's state table limit.

                                            I tested it using nmap and it doesn't seem to be a concern really

                                            I have once blown the states to almost 100 k on pfsense and the network still seemed working fine browsing the web, while the entries on BGW320 stayed at 8k.

                                            since the RG is set to FW/NAT passthru (maybe has only one rule that's similar to allow from any to any), any packet can effective create a state, removing an old one.

                                            I think it's a bad idea to limit the state table on pfsense, because if you are maxing out on RG's state table and pf removes your state, your mid-flight connections all have to reset

                                            T 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.