0

I was trying things with the routing table, wanted to delete a rule I just added and thought it was easy like with iptables and flushed the table.

Now I no longer have a connection. When I ping something I get

connect: network is unreachable

How do I repair it? Running:

service NetworkManager restart

Doesn’t help.

Edit : Reboot helps but as soon as I connect to a VPN server with OpenVPN it destroys my connection for good and I have to reboot again.

1
  • You should probably open a new question of the actual problem: Why does your OpenVPN connection disrupt internet connectivity? For that, please include all OpenVPN configuration files (excluding any certificates and keys, of course).
    – Daniel B
    Commented Jul 17, 2016 at 21:22

2 Answers 2

0

Try /etc/init.d/networking restart; /etc/init.d/iptables restart - This will restart your network and restart IPTables as well.

Note that IPTables handles firewalling but not generally routing (routing can usually be handled with "ip route" commands or the older "route" commands)

0

Reboot helps but as soon as I connect to a VPN server with OpenVPN it destroys my connection for good and I have to reboot again.

It sounds to me that you are using the VPN server as your default gateway. If yes, please remove the default gateway pointed to the VPN server. Then your internet should be recovered. To access the subnets behind the VPN server, you need to add some static route entries for them.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .