Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-14-2017, 07:19 AM   #1
LQ Newbie
Registered: Dec 2015
Posts: 28

Rep: Reputation: Disabled
messed up with iptables now my internet not working

Hi guys. I tried to configure a NAT on my PC, so I used iptables to configured some IP translations.
After reboot my internet is completely gone. The interesting facets are:

1. I have IP from the router.
2. I can ping the router.
3. I can ping other PCs connected with the router.

But when I ping or it shows "network is unreachable"

Then I tried to clean all the iptables configurations, reboot, still not working.

How can I fix this? I thought even I made huge mistakes on iptables configuration if I cleared all the settings it should back to normal?
Old 10-14-2017, 08:51 AM   #2
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,071

Rep: Reputation: 1245Reputation: 1245Reputation: 1245Reputation: 1245Reputation: 1245Reputation: 1245Reputation: 1245Reputation: 1245Reputation: 1245
Your problem is not iptables, which you should restore to a good set of firewall rules. You have lost your default route. Issue the command "route -n" to be sure.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
block a networks internet but keep lan working using iptables nitinm Ubuntu 2 02-07-2017 02:59 AM
Internet (wireless) quits working after stopping iptables lancelyons Linux - Networking 1 11-22-2012 06:39 AM
iptables messed up? Help! JavaNinja Linux - Newbie 3 01-26-2009 05:09 PM
Messed up my internet settings (NO internet connection) :( Almazick Linux - Networking 2 09-08-2004 01:05 PM
Messed up my Internet Settings (can't connect to the internet) Almazick Linux - Wireless Networking 0 09-07-2004 07:23 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration