Question

FreeBSD Droplet Cannot Connect to the Internet

I am running FreeBSD 10.2. I spun the Droplet, accessed it via ssh, and did the following:

1) cd /usr/ports/ports-mgmt/portmaster/ ; sudo make install clean
2) sudo portmaster -a
3) cd /usr/ports/net/svnup ; sudo make install clean
4) sudo svnup release
5) sudo freebsd-update fetch install
6) sudo reboot

Then, it was not responding to pings, and I could not access it via ssh (additionally, it had no ip address.)

Next, support said I needed to run the following due to a DigitalOcean FreeBSD Provisioning Bug (in Single User Mode):

ln -s /etc/rc.digitalocean.d/[dropletNumber].conf /etc/rc.digitalocean.d/droplet.conf

Now vtnet0 has an ip address, but I have no Internet access, as shown by:

ping 8.8.8.8
no route to host

At this point support said to ask the community.

Any help would be much appreciated.

Regards, Brandon


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

my droplet is Ubuntu

Not sure what went wrong with you. This is what I did to set-up my FreeBSD droplet. Please notice it was done for a 10.1:

sudo portsnap fetch update
cd /usr/ports/ports­mgmt/portmaster
sudo make config­recursive install distclean
rehash

Reboot in single user to disable journaling due to a bug in FreeBSD 10.1 with SSD (I suggest you to check if this still apply to 10.2, in fact I’m going to check myself):

sudo nextboot ­-o "-s" -­k kernel
sudo reboot

In single mode:

tunefs -­j disable /
reboot

Now we are back in normal mode and we can finish the installation process:

sudo freebsd­-update fetch install
sudo reboot
cd /usr/ports/net/svnup
sudo make config-­recursive install clean
sudo vim /usr/local/etc/svnup.conf   (select the best mirror based on your droplet's location)
rehash
sudo svnup release
sudo portmaster ­-L
sudo portmaster ­-a
rehash
sudo reboot

Maybe at this point is better to start over with a fresh new droplet.

Anyway, I suggest to use pkg to manage your packages. Building everything may take a very long down time if this is a production machine.

Regards,

Nicholas