So you changed your FOG Project Server's IP and everything broke?

So you changed your FOG Project Server's IP and everything broke?
Photo by Annie Spratt / Unsplash

If you, like me, choose to deploy your operating systems via PXE boot using FOG Project instead of Microsoft's WDS/MDT, good for you! There are literally dozens of us!

I recently discovered, having changed the IP address of the underlying OS (Debian, of course) that FOG itself requires some reconfiguration as well...

Don't forget to update any entries in your DNS servers with the correct IP!

First let's hop into the web GUI and click Storage (the file box icon) then click DefaultMember

Go ahead and fix the IP address field here, and hit Update at the bottom.

Next, click on FOG configuration (the wrench at the top)...

Then click FOG Settings on the left...

Scroll all the way to the bottom and click Web Server. This isn't strictly necessary, but if you have changed the hostname, change it here.

Scroll up a smidge and expand the TFTP Server section. Change the IP here and click Update.

Now you'll need to hop in the terminal. Edit the file /tftpboot/default.ipxe

nano /tftpboot/default.ipxe

Update the IP here and save the changes:

Edit the file /opt/fog/.fogsettings

nano /opt/fog/.fogsettings

Look for the line near the top of the file that says ipaddress. Change it, then save your changes. Verify your hostname is correct while you're here.

Now the annoying part. If you are using a self-signed certificate, we need to re-compile FOG with SSL certs with the new IP:

First CD into the directory where the GIT files are for FOG (from when you installed)

cd /root/fogproject/bin

Now run the following to recreate the keys:

./installfog.sh –recreate-CA –recreate-keys keys

This will take a while. Like quite a while.

When it's done, give it a reboot and you should be good to go!