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

    Move firewall to different hardware

    Scheduled Pinned Locked Moved Hardware
    6 Posts 3 Posters 914 Views
    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.
    • L
      lrgamage
      last edited by stephenw10

      I want to move my firewall to different hardware, these are my current interfaces

      <interfaces>
      		<wan>
      			<if>igb0</if>
      			<blockpriv></blockpriv>
      			<blockbogons></blockbogons>
      			<descr><![CDATA[Lankabell_Lease_Line]]></descr>
      			<alias-address></alias-address>
      			<alias-subnet>32</alias-subnet>
      			<spoofmac></spoofmac>
      			<mtu>9000</mtu>
      			<ipaddr>119.235.6.26</ipaddr>
      			<subnet>24</subnet>
      		</wan>
      		<lan>
      			<enable></enable>
      			<if>bce0</if>
      			<descr><![CDATA[LAN]]></descr>
      			<spoofmac></spoofmac>
      			<ipaddr>172.16.1.1</ipaddr>
      			<subnet>16</subnet>
      			<mtu>9000</mtu>
      		</lan>
      		<opt3>
      			<descr><![CDATA[Dialog_ILL_15M]]></descr>
      			<if>bce1</if>
      			<enable></enable>
      			<blockpriv></blockpriv>
      			<blockbogons></blockbogons>
      			<spoofmac></spoofmac>
      			<ipaddr>122.255.29.186</ipaddr>
      			<subnet>29</subnet>
      			<gateway>Dialog_ILL_30M</gateway>
      		</opt3>
      		<opt4>
      			<descr><![CDATA[Airtel_10Mbps_Nelly]]></descr>
      			<if>igb1</if>
      			<enable></enable>
      			<spoofmac></spoofmac>
      			<ipaddr>103.227.245.86</ipaddr>
      			<subnet>30</subnet>
      			<gateway>Airtel_10Mbps_Nelly_Gateway</gateway>
      			<blockpriv></blockpriv>
      			<blockbogons></blockbogons>
      		</opt4>
      		<opt5>
      			<descr><![CDATA[Airtel_78Mbps]]></descr>
      			<if>igb4</if>
      			<spoofmac></spoofmac>
      			<blockpriv></blockpriv>
      			<blockbogons></blockbogons>
      			<enable></enable>
      			<ipaddr>103.227.245.74</ipaddr>
      			<subnet>29</subnet>
      			<gateway>Airtel_78Mbps_gateway</gateway>
      		</opt5>
      		<opt6>
      			<descr><![CDATA[OPT6]]></descr>
      			<if>igb3</if>
      			<spoofmac></spoofmac>
      		</opt6>
      		<opt7>
      			<descr><![CDATA[OPT7]]></descr>
      			<if>igb2</if>
      			<spoofmac></spoofmac>
      		</opt7>
      		<opt8>
      			<descr><![CDATA[OPT8]]></descr>
      			<if>igb5</if>
      			<spoofmac></spoofmac>
      		</opt8>
      		<opt9>
      			<descr><![CDATA[OPT9]]></descr>
      			<if>igb6</if>
      			<spoofmac></spoofmac>
      		</opt9>
      		<opt10>
      			<descr><![CDATA[OPT10]]></descr>
      			<if>igb7</if>
      			<spoofmac></spoofmac>
      		</opt10>
      		<opt11>
      			<descr><![CDATA[VPNtoBattaramulla]]></descr>
      			<if>ovpns2</if>
      			<enable></enable>
      			<spoofmac></spoofmac>
      		</opt11>
      		<opt12>
      			<descr><![CDATA[Openvpntest]]></descr>
      			<if>ovpns1</if>
      			<enable></enable>
      			<spoofmac></spoofmac>
      		</opt12>
      	</interfaces>
      

      My new hardware is consist with 4 interfaces bce0, bce1, bce2, bce3

      I have tried to change the interface names and restore but no luck yet what I have done wrong. Please help?

      1 Reply Last reply Reply Quote 0
      • bmeeksB
        bmeeks
        last edited by

        You install with a fresh image on your new hardware and put your old config on a USB stick. During the installation process, when it sees the old config, it will prompt you to reassign the interfaces.

        Go check out the Netgate documenation here: https://docs.netgate.com/pfsense/en/latest/backup/automatically-restore-during-install.html.

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

          You only have 4 interfaces enabled so you should be good.

          Yes, it should ask you to reassign the interfaces when you import the config. However you should be able to edit the config also. How did it fail when you tried? What config did you import?

          Steve

          L 1 Reply Last reply Reply Quote 0
          • L
            lrgamage @bmeeks
            last edited by lrgamage

            do I need to mount the usb to run from recover conf.xml

            1 Reply Last reply Reply Quote 0
            • L
              lrgamage @stephenw10
              last edited by

              @stephenw10 it comes back to the initial page. I'm trying to install this on virtualbox

              e1b03b2d-0196-405c-b0e3-98eb13cb8ee9-image.png
              705966df-840b-405c-8a03-eaadb5874c48-image.png

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

                No. You need to complete the install as normal and then setup enough so you can access the webgui. Then import the old config from Diag > Backup/Restore.

                It is possible to import a confug during the install but you need to have it on a USB drive passed through VBox as you suggested:
                https://docs.netgate.com/pfsense/en/latest/backup/automatically-restore-during-install.html#configuration-from-usb-during-install

                The recover config option you are using there in the installer is for recovering a config from the drive you are installing to. If you needed to re-install an existing firewall for example.

                Steve

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