LinuxQuestions.org
Visit Jeremy's Blog.
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 12-11-2005, 10:46 AM   #1
tmillard
Member
 
Registered: Sep 2003
Distribution: Gentoo
Posts: 74

Rep: Reputation: 15
DansGuardian: filter for others on LAN


I'm getting broadband in a few months. My family wants Internet access filterd. I have DansGuardian set up and working with Squid according to A parent's guide to Linux Web filtering. Right now I am testing with dialup and my old laptop with a serial connection (PPP).

Problem is, the laptop does not get filtered. If the laptop on PPP does not get filterd, (when I order the equipment tomarrow) the ethernet lan would probaly not get filtered.

Code:
# Generated by iptables-save v1.2.11 on Sun Dec 11 09:21:56 2005
*nat
:PREROUTING ACCEPT [37:10321]
:POSTROUTING ACCEPT [1158:71338]
:OUTPUT ACCEPT [275:19325]
-A POSTROUTING -o ppp0 -j MASQUERADE
-A OUTPUT -p tcp -m tcp --dport 80 -m owner --uid-owner squid -j ACCEPT
-A OUTPUT -p tcp -m tcp --dport 3128 -m owner --uid-owner squid -j ACCEPT
-A OUTPUT -p tcp -m tcp --dport 80 -m owner --uid-owner root -j ACCEPT
-A OUTPUT -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080
-A OUTPUT -p tcp -m tcp --dport 3128 -j REDIRECT --to-ports 8080
COMMIT
# Completed on Sun Dec 11 09:21:56 2005
# Generated by iptables-save v1.2.11 on Sun Dec 11 09:21:56 2005
*mangle
:PREROUTING ACCEPT [21515:8724068]
:INPUT ACCEPT [21515:8724068]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [22041:6879131]
:POSTROUTING ACCEPT [22044:6880007]
COMMIT
# Completed on Sun Dec 11 09:21:56 2005
# Generated by iptables-save v1.2.11 on Sun Dec 11 09:21:56 2005
*filter
:INPUT ACCEPT [21515:8724068]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [22041:6879131]
COMMIT
# Completed on Sun Dec 11 09:21:56 2005
Part of /etc/dansguardian/dansguardian.conf
Code:
filterip =
filterport = 8080
 
Old 12-12-2005, 04:08 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 47
Change your nat table rules from OUTPUT to PREROUTING and add -i lo as the interface.
 
  


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
using DansGuardian Trio3b Linux - Security 4 12-02-2005 04:18 AM
Dansguardian jomy Linux - Networking 2 11-27-2005 10:56 AM
Could not filter the request of LAN razan Linux - Security 1 04-09-2005 11:17 AM
Dansguardian mahmoudkhn Linux - Networking 4 12-20-2004 07:15 AM
Spam filter to external mail filter deadlock Linux - Software 1 06-16-2004 03:28 AM


All times are GMT -5. The time now is 05:32 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration