Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I first installed Ubuntu, all networking worked perfectly. After messing with the settings every so often, it slowly became unusable. I would really like to know if there is a way to completely reset network settings without re-installing Ubuntu, DNS settings, proxy settings, everything. I'm running 12.04.

share|improve this question
up vote 1 down vote accepted

You can flush your iptables which firestarter has changed with

sudo iptables -F

Source: Post on Ubuntu forums

share|improve this answer
That fixed some of the problems I had earlier this week, but it still fails to stream video or times out when loading certain sites 19 out of 20 times (just an approximation). Any idea what could be causing these issues? It works fine on other computers on my network, or if I wire directly into the modem. Yes, I've tried resetting the router. – tyjkenn Aug 18 '12 at 4:38
Sorry, I don't know to fix this problem, but may find some help on – Zignd Aug 18 '12 at 11:37
This may fix a few problems but certainly does not answer the question. – mchid Jul 19 at 9:38

It depends what sort of connection you have and whether you have had to manually tweak some settings for it, as sometimes you need to do in the case of a wireless connection.

If you have a wired connection and have simply been altering the settings with network manager, you can unplug your ethernet cable, go into network manager and delete all the wired connections (eth0, autoethernet, etc) and then reboot. This has worked for me before. On restart, your wired network will be detected and automatically configured with dhcp to set up ip addresses and DNS settings. This assumes, however, you have a dynamic ip address: you will still have to specify some settings manually if not.

If you have manually altered any settings such as disabling DNSmasq or manually specifying nameservers by creating a fixed resolv.conf, or even changing firewall settings, then you will need to reverse these first and then remove your connections from network manager and reboot.

If none of these approaches are successful, you may need to login to your router and check the settings there.

share|improve this answer

I'm not sure that there's one magic button you can push to reset all your network settings.

You're probably going to have to go back and reset them each manually. It's hard to say without some more specific examples of the issues you're seeing.

share|improve this answer
This may be better as a comment. – hexafraction Aug 16 '12 at 12:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.