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

    Reinstall pfSense+ with a custom DHCPv6 config

    General pfSense Questions
    5
    14
    878
    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.
    • K
      Kevin C
      last edited by

      I have a 6100 with pfSense+ 22.05 but it has UFS still. I would like to get ZFS on it. I believe my setup is fairly straightforward except I have AT&T Fiber and had to do a custom DHCPv6 config to get IPv6 addresses for each interface.

      I don't see that the custom DHCP config is backed up. I assume it will not be restored when I reinstall. Is there a way to get it into the restore? I was concerned it may cause some issues if it were missing when the router starts back up.

      Would it be better to wait for 22.09/22.11 to do a full re-install? Does it have any changes that are best dealt with via a reinstall?

      Thanks,
      Kevin

      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @Kevin C
        last edited by johnpoz

        @kevin-c said in Reinstall pfSense+ with a custom DHCPv6 config:

        I don't see that the custom DHCP config is backed up.

        Why would you say that - that doesn't make a lot of sense. Because you don't see it as as specific option in the back? The whole config xml is backed up, if you pick all. I would find it hard to believe it would leave out custom dhcpv6 config.

        If your concerned, I would backup the full config, then look in the xml file for your settings. Do you see them?

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.7.2, 24.11

        K 1 Reply Last reply Reply Quote 0
        • K
          Kevin C @johnpoz
          last edited by

          @johnpoz I was not clear before. I had to create a custom DHCPv6 config file in /usr/local/etc. I did create a full XML backup and while I see the reference to the file I do not see the file contents in the backup. Everything else such as normal config and certificates are in the backup.

          johnpozJ bingo600B 2 Replies Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @Kevin C
            last edited by

            @kevin-c said in Reinstall pfSense+ with a custom DHCPv6 config:

            custom DHCPv6 config file in /usr/local/etc

            Why did you have to do that? But yeah if you edit some file directly or create a file on your own. Those would have to be backed up and restored manually.

            Can you not put these settings in the gui? There are specific advanced options you can set in the gui, your doing something that is not there?

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.7.2, 24.11

            K 1 Reply Last reply Reply Quote 0
            • bingo600B
              bingo600 @Kevin C
              last edited by

              @kevin-c said in Reinstall pfSense+ with a custom DHCPv6 config:

              /usr/local/etc.

              Why don't you just backup that file manually, and restore it on the new 22.05 OS ?

              /Bingo

              If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

              pfSense+ 23.05.1 (ZFS)

              QOTOM-Q355G4 Quad Lan.
              CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
              LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

              1 Reply Last reply Reply Quote 0
              • K
                Kevin C @johnpoz
                last edited by

                @johnpoz AT&T requires you to use their Residential Gateway so to use pfSense you have to put that into passthrough mode. In order to get multiple prefix delegations I had to use the custom config. I found the help to do that in an older thread here:

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

                Unfortunately I don't think anything has changed. I would prefer to do it in the GUI but I don't think it is possible.

                @bingo600 I was concerned that restoring without that file would cause issues before I had a chance to restore the file. I am worried it might change the configuration or mess up the DHCP reservations. Just trying to avoid any complicated fixes so I can get the router back up quickly once I start the reinstall.

                I may just need to reinstall and fix any resulting issues.

                johnpozJ 1 Reply Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator @Kevin C
                  last edited by

                  @kevin-c not exactly sure what your putting in this config file.

                  But from this link showing what he used for his pfsense
                  https://forum.netgate.com/post/1061762

                  Does that all line up with the advanced stuff you can setup in the gui?

                  here.jpg

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                  K 1 Reply Last reply Reply Quote 0
                  • K
                    Kevin C @johnpoz
                    last edited by

                    @johnpoz Here is what I put into that config file. I'll take a look at the advanced options but for each interface I setup a PD. If possible, it would be better to do it in the GUI.

                    interface ix3 {
                    	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;
                    	send ia-pd 7;
                    	script "/var/etc/dhcp6c_wan_script.sh";
                    };
                    id-assoc na 0 { };
                    id-assoc pd 0 {
                    	prefix-interface igc0 {
                    		sla-id 0;
                    		sla-len 0;
                    	};
                    };
                    id-assoc pd 1 {
                    	prefix-interface igc0.20 {
                    		sla-id 0;
                    		sla-len 0;
                    	};
                    };
                    id-assoc pd 2 {
                      	prefix-interface igc0.30 {
                    		sla-id 0;
                    		sla-len 0;
                    	};
                    };
                    id-assoc pd 3 {
                      	prefix-interface igc0.40 {
                    		sla-id 0;
                    		sla-len 0;
                    	};
                    };
                    id-assoc pd 4 {
                      	prefix-interface igc0.50 {
                    		sla-id 0;
                    		sla-len 0;
                    	};
                    };
                    id-assoc pd 5 { };
                    id-assoc pd 6 { };
                    id-assoc pd 7 { };
                    
                    K 1 Reply Last reply Reply Quote 0
                    • jimpJ jimp moved this topic from Problems Installing or Upgrading pfSense Software on
                    • K
                      Kevin C @Kevin C
                      last edited by

                      If there is a way to do this in the GUI, please let me know. I looked at it again and I'm not sure how to request the PDs and assign multiple to different interfaces. Without this custom config file, I only had one PD and could not give a different PD per interface.

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        There is no way to do that I'm aware of.

                        It's an odd setup. You have to request multiple /64 PDs instead of them just passing you a /56?

                        K 1 Reply Last reply Reply Quote 0
                        • K
                          Kevin C @stephenw10
                          last edited by

                          @stephenw10 Yes. It could have changed but when I first setup pfSense I had this issue. Here is the relevant information from a post here that explained it.

                          @ttmcmurry said in Multiple IPv6 Prefix Delegation over AT&T Residential Gateway for pfSense 2.4.5:

                          Why do this? In short, AT&T U-Verse & Fiber customer equipment is assigned a /60 and can only hand out eight /64 prefix delegations. It is not possible to request a larger PD, however it is possible to request multiple /64 PDs from pfSense's WAN interface. Since the pfSense UI does not expose this functionality directly, it is possible to take advantage of it by supplying a dhcp.conf to override pfSense DHCP6 behavior available from the UI.

                          GertjanG 1 Reply Last reply Reply Quote 0
                          • GertjanG
                            Gertjan @Kevin C
                            last edited by

                            @kevin-c

                            You use something like :

                            ad0b02c5-d641-4344-b7ff-7ecbc3b5cac4-image.png

                            Right ?

                            This setting will get backed up in the config.xml
                            The file itself, I'm less sure.

                            I wouldn't place that file in /usr/local/etc/ but in /root/
                            And everything that I placed in root, is a copy of what I created on my PC, before uploading/pasting it in /root/
                            Or I could use a pfSense packages likes Files or Backup that can backup my own stuff that isn't part of the standard config.xml

                            No "help me" PM's please. Use the forum, the community will thank you.
                            Edit : and where are the logs ??

                            1 Reply Last reply Reply Quote 0
                            • stephenw10S
                              stephenw10 Netgate Administrator
                              last edited by

                              Yes, if you are using a separate custom file, rather than modifying a system file, you can use the Filer package to store that in the config file. Obviously you would only want to do that for small text files but this looks like one of those.
                              Note that when you restore that config the system would have to reinstall the package at first boot so you may not get back the functionality relying on that file until the second boot.

                              Steve

                              K 1 Reply Last reply Reply Quote 0
                              • K
                                Kevin C @stephenw10
                                last edited by

                                @Gertjan @stephenw10 Thanks for the pointer. Filer does seem to at least backup the file. It's Base64 encoded but it is in the backup file. I will try it and see what happens.

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