LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 05-08-2006, 12:03 AM   #1
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 272Reputation: 272Reputation: 272
Linksys WRT54G Access Restrictions


I've got a WRT54G wireless router (v1.1 w/ Sveasoft Alchemy Firmware) at home. I don't have an internet proxy setup, but yesterday my wife asked me to block a single site that she can't seem to keep herself from visiting (myspace.com).

Anyway, there's an admin page on the Sveasoft firmware that supposedly lets you do some filtering by website name and apply that filter by IP address or MAC address. I gave it a whirl and put all the settings in and it seemed to take okay, but the site is not being blocked...

Anyone have any success using the built in access restrictions? Or does anyone know where/what such a restriction would look like on the router (I can ssh in)?

Anyway, just looking for some guidance before I just go ahead and make a squid proxy, which seemed like a lot of effort for just blocking one site...
 
Old 05-08-2006, 01:31 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
There is a quick and dirty method that works whether you are using windows or linux.
Add "127.0.0.1 www.myspace.com" to her '/etc/hosts' and/or 'c:\windows\system32\drivers\etc\hosts' file.

Then www.myspace.com will resolve to localhost. Of course if she knows about this she could reverse it herself, but it may be enough to resist the temptation.

If she is using linux, you can also set up the firewall to block that address.

Last edited by jschiwal; 05-08-2006 at 01:32 AM.
 
Old 05-08-2006, 02:09 AM   #3
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo (all servers at work are openSUSE)
Posts: 6,937

Rep: Reputation: 128Reputation: 128
First, what IP address is www.myspace.com?

Code:
mingdao@silas:~$ host www.myspace.com
www.myspace.com has address 63.208.226.40
www.myspace.com has address 63.208.226.41
www.myspace.com has address 63.208.226.42
www.myspace.com has address 63.208.226.43
I got a WRT54G and went into the web interface, then chose Access Restrictions and put those
four IP addresses into "Website Blocking by URL Address" and now I can't get there.

NB: I did have to shutdown and restart Firefox before it worked.
 
Old 05-08-2006, 12:39 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Original Poster
Rep: Reputation: 272Reputation: 272Reputation: 272
Thanks guys, I'll try it out when I get home tonight...
 
Old 05-09-2006, 11:42 PM   #5
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Original Poster
Rep: Reputation: 272Reputation: 272Reputation: 272
Thanks. I messed up the firewall ruleset created with fwbuilder to begin with (had a rule that denied anything originating from myspace.com but a conflicting rule that allowed anything originating in my network to be allowed), but once I blocked outgoing requests from my network to myspace.com, it worked like a champ. I appreciate all your help.

Also, thanks for the hosts file tip, I may be able to use that at my parents house (they have dialup and windows firewall only) to help blacklist sites from my little brother. I did some googling to find some lists and just need to disable DNS caching in XP before copying the file to the hosts file.

Thanks again!

Last edited by pljvaldez; 05-09-2006 at 11:44 PM.
 
Old 06-21-2006, 09:47 AM   #6
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
What DNS server is your router using?

If by any chance it's dnsmasq rather than Bind/named, then you can do a hosts-like block if the config file. The big difference is you get wildcarding.

If, say, vonna.com has 256 servers:
ad.vonna.com, ad1.vonna.com, ... , ad255vonna.com, then blocking requires 256 individual lines in a hosts file, but only one in a dnsmasq config file.
 
Old 11-13-2006, 03:56 AM   #7
br0k2e
LQ Newbie
 
Registered: Nov 2006
Posts: 2

Rep: Reputation: 0
Linksys wrt54g ( alchemy )

Hey i was looking up the same thing... saw this post and i figured id tell you what worked for me.

Website Blocking
by URL Address


.myspace.com <--- in box 1
*.myspace.com <--- in box 2

hope it works for ya
 
Old 11-13-2006, 04:02 AM   #8
br0k2e
LQ Newbie
 
Registered: Nov 2006
Posts: 2

Rep: Reputation: 0
by the way

.. by the way make sure that you have edited your pc list.
"Edit List of PCs" button. click that and make sure to enter in an IP range i.e. 192.168.1.100~200

again good luck
 
  


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
Linksys WRT54G and CUPS/Samba Malibyte Linux - Wireless Networking 6 10-09-2009 03:07 PM
problem with linksys wrt54g and adsl2mue duffboygrim Linux - Networking 0 04-29-2005 03:08 PM
WRT54G linksys router reefa Linux - Networking 2 03-16-2005 04:56 PM
Linksys WRT54G + GPL code... Ateo Linux - Networking 2 02-02-2005 01:27 PM
Linksys wireless-g router (WRT54G V2) help R4ndy Linux - Wireless Networking 2 10-28-2004 09:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:56 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