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

Reinstall pfSense+ with a custom DHCPv6 config

General pfSense Questions
5
14
876
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 Sep 21, 2022, 4:27 PM

    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

    J 1 Reply Last reply Sep 21, 2022, 5:00 PM Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator @Kevin C
      last edited by johnpoz Sep 21, 2022, 5:02 PM Sep 21, 2022, 5:00 PM

      @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 Sep 21, 2022, 6:24 PM Reply Quote 0
      • K
        Kevin C @johnpoz
        last edited by Sep 21, 2022, 6:24 PM

        @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.

        J B 2 Replies Last reply Sep 21, 2022, 6:27 PM Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator @Kevin C
          last edited by Sep 21, 2022, 6:27 PM

          @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 Sep 21, 2022, 6:49 PM Reply Quote 0
          • B
            bingo600 @Kevin C
            last edited by Sep 21, 2022, 6:28 PM

            @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 Sep 21, 2022, 6:49 PM

              @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.

              J 1 Reply Last reply Sep 21, 2022, 7:47 PM Reply Quote 0
              • J
                johnpoz LAYER 8 Global Moderator @Kevin C
                last edited by Sep 21, 2022, 7:47 PM

                @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?

                login-to-view

                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 Sep 21, 2022, 9:22 PM Reply Quote 0
                • K
                  Kevin C @johnpoz
                  last edited by Sep 21, 2022, 9:22 PM

                  @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 Sep 22, 2022, 5:05 PM Reply Quote 0
                  • J jimp moved this topic from Problems Installing or Upgrading pfSense Software on Sep 22, 2022, 12:26 PM
                  • K
                    Kevin C @Kevin C
                    last edited by Sep 22, 2022, 5:05 PM

                    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
                    • S
                      stephenw10 Netgate Administrator
                      last edited by Sep 22, 2022, 9:18 PM

                      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 Sep 23, 2022, 3:37 AM Reply Quote 0
                      • K
                        Kevin C @stephenw10
                        last edited by Sep 23, 2022, 3:37 AM

                        @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.

                        G 1 Reply Last reply Sep 23, 2022, 8:27 AM Reply Quote 0
                        • G
                          Gertjan @Kevin C
                          last edited by Sep 23, 2022, 8:27 AM

                          @kevin-c

                          You use something like :

                          login-to-view

                          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
                          • S
                            stephenw10 Netgate Administrator
                            last edited by Sep 23, 2022, 11:53 AM

                            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 Sep 23, 2022, 3:23 PM Reply Quote 0
                            • K
                              Kevin C @stephenw10
                              last edited by Sep 23, 2022, 3:23 PM

                              @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
                              4 out of 14
                              • First post
                                4/14
                                Last post
                              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.