LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 06-03-2007, 03:12 PM   #1
jleaker
LQ Newbie
 
Registered: Apr 2007
Posts: 18

Rep: Reputation: 0
Computer will no longer access the internet


I had a kid doing things they werent supposed to be doing, so I decided to try to block access to certain websites. I followed the directions at http://software.newsforge.com/softwa.../1521209.shtml to the letter, but when I was finished all access to the net was blocked. I uninstalled squid and dansguardian, but still wont connect. I'm guessing it has something to do with the iptable commands I entered. Anyone know how to reset it back to how it was before?

The only thing I miss from winblowz (of which I havent used in months) is 'System Restore'...when you are a newb it's not hard to mess up your install, and having to do a complete reinstall every time you screw up (and cant figure out how to fix it) really sucks.
 
Old 06-03-2007, 03:20 PM   #2
camh
Member
 
Registered: Feb 2005
Distribution: Slack/Debian
Posts: 163
Blog Entries: 2

Rep: Reputation: 33
'iptables -F' will delete all rules in all chains.
 
Old 06-03-2007, 03:24 PM   #3
jleaker
LQ Newbie
 
Registered: Apr 2007
Posts: 18

Original Poster
Rep: Reputation: 0
Done...no effect.
 
Old 06-03-2007, 03:25 PM   #4
jleaker
LQ Newbie
 
Registered: Apr 2007
Posts: 18

Original Poster
Rep: Reputation: 0
oh and I did do 'service iptables restart' as well
 
Old 06-03-2007, 03:28 PM   #5
camh
Member
 
Registered: Feb 2005
Distribution: Slack/Debian
Posts: 163
Blog Entries: 2

Rep: Reputation: 33
Can you post the output of iptables (iptables -L -vn)? Or if not, do any of the iptables chains have a default policy of DROP ?
 
Old 06-03-2007, 03:31 PM   #6
jleaker
LQ Newbie
 
Registered: Apr 2007
Posts: 18

Original Poster
Rep: Reputation: 0
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 DROP all -- * * 204.15.20.25 0.0.0.0/0
0 0 DROP all -- * * 204.74.67.247 0.0.0.0/0
0 0 DROP all -- * * 204.74.66.247 0.0.0.0/0
0 0 DROP all -- * * 216.178.32.48 0.0.0.0/0
0 0 DROP all -- * * 72.36.220.239 0.0.0.0/0
0 0 DROP all -- * * 72.36.220.234 0.0.0.0/0
0 0 DROP all -- * * 72.36.220.235 0.0.0.0/0
835K 42M RH-Firewall-1-INPUT all -- * * 0.0.0.0/0 0.0.0.0/0

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 RH-Firewall-1-INPUT all -- * * 0.0.0.0/0 0.0.0.0/0

Chain OUTPUT (policy ACCEPT 837K packets, 111M bytes)
pkts bytes target prot opt in out source destination

Chain RH-Firewall-1-INPUT (2 references)
pkts bytes target prot opt in out source destination
6 300 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0 icmp type 255
0 0 ACCEPT esp -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT ah -- * * 0.0.0.0/0 0.0.0.0/0
6 1173 ACCEPT udp -- * * 0.0.0.0/0 224.0.0.251 udp dpt:5353
36 6984 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:631
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:631
835K 42M ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:21
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:25
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:2049
1 44 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
29 2550 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW udp dpt:137
0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW udp dpt:138
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:139
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:445
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:443
1 44 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:5900
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:5902
2 904 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
 
Old 06-03-2007, 03:37 PM   #7
camh
Member
 
Registered: Feb 2005
Distribution: Slack/Debian
Posts: 163
Blog Entries: 2

Rep: Reputation: 33
Everything looks ok.. Can you ping anything on the net? (google.com for example?) Did you remove the proxy setting in your browser so it doesn't point to the (nonexistant) squid server?
 
Old 06-03-2007, 03:48 PM   #8
jleaker
LQ Newbie
 
Registered: Apr 2007
Posts: 18

Original Poster
Rep: Reputation: 0
Yea...ping works..it must be something to do with Firefox then...I didnt actually do anything in FF tho, only what was listed at the URL. I checked and FF is not set up to use a proxy, it is set up to directly access the internet.
 
Old 06-03-2007, 03:52 PM   #9
jleaker
LQ Newbie
 
Registered: Apr 2007
Posts: 18

Original Poster
Rep: Reputation: 0
It also seems to have problems connecting to the software repositories. I am unable to use Yum at all (Im using FC6) to remove firefox (was going to try to reinstall it). GUI package manager says it is unable to retrieve software information due to lack of a network connection.
 
  


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
No longer have remote access. warrengf Linux - Networking 2 04-17-2006 08:37 AM
If you had a computer no longer of need DesyphER General 6 02-28-2005 04:50 PM
installing KDE on a computer without internet access. levicc00123 Debian 7 07-24-2004 12:58 PM
Restrict Access to Internet from one computer on LAN fuzzie Linux - Networking 1 06-06-2004 03:16 AM
Whenever I access the internet, my computer crashes. young1024 Linux - General 6 05-24-2004 04:41 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration