How to reset network settings on Linux?

Are you having problems with your Linux network settings? If so, you can reset them by following these simple steps.

Written By Lorenzo Vincent

Updated at August 24th, 2023

In case you are experiencing issues while connecting with PureVPN, resetting your network settings is a viable option to resolve them. In order to reset network settings on a Linux device, please follow the steps below:

  • Open Terminal and type in these commands in order to clean the firewall and DNS rules:
    • sudo iptables -F INPUT
    • sudo iptables -F OUTPUT
    • sudo iptables -P INPUT ACCEPT
    • sudo iptables -P OUTPUT ACCEPT
    • sudo systemctl restart NetworkManager
  • Reboot the device.