LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-11-2014, 10:51 AM   #1
sniper8752
Member
 
Registered: Oct 2012
Posts: 342

Rep: Reputation: Disabled
no longer able to connect to internet


I am no longer able to connect via the internet. I added these lines to my interfaces file:
pre-up iptables-restore < /etc/iptables.rules
post-down iptables-restore < /etc/iptables.downrules

Any ideas on why this change would have caused this? I am trying to restore iptables here.
 
Old 08-11-2014, 03:31 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,686

Rep: Reputation: 725Reputation: 725Reputation: 725Reputation: 725Reputation: 725Reputation: 725Reputation: 725
Do your rules start off by flushing the old rules?
 
Old 08-11-2014, 04:18 PM   #3
sniper8752
Member
 
Registered: Oct 2012
Posts: 342

Original Poster
Rep: Reputation: Disabled
no. how do I do that?
 
Old 08-12-2014, 01:31 PM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,686

Rep: Reputation: 725Reputation: 725Reputation: 725Reputation: 725Reputation: 725Reputation: 725Reputation: 725
To remove all added rules and chains, put these two lines at the beginning of your scripts:

Code:
iptables -F
iptables -X
If you added rules or chains in other tables besides FILTER, you need to explicitly flush them also using the '-t table' option.

Last edited by smallpond; 08-12-2014 at 01:37 PM.
 
Old 08-18-2014, 08:18 PM   #5
sniper8752
Member
 
Registered: Oct 2012
Posts: 342

Original Poster
Rep: Reputation: Disabled
Sorry - new to this. What script do I add it to?
 
  


Reply


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
[SOLVED] No longer able to connect to my apache server from the internet. nyahuma Linux - Newbie 10 08-30-2012 08:34 AM
rtl8187 chipset can no longer connect to the internet fakie_flip Linux - Laptop and Netbook 2 10-19-2009 10:03 PM
No longer able to connect to internet wirelessly miclav Linux - Newbie 4 09-29-2009 01:46 PM
"No longer able to connect to internet" cpman256 Linux - Newbie 6 03-27-2008 09:11 AM
oops. No longer able to connect to the internet through my DSL mbreith Linux - Newbie 10 02-17-2006 03:57 PM


All times are GMT -5. The time now is 08:16 PM.

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