Skip to contentSkip to conversation

Can an iptables NAT firewall Block URL's and Attachments?

DISCUSSION Real Cucumber 3 participants 3 messages Nov 19, 2004

lore
Share & tools
lore
#0 lore raw

If using an Iptables fedora box to act as a networks internety gateway NAT server, is it possible to create rules to block specific URL's or attachments?

ie: block any URL's ending in *.exe or block any URL's containing the word "sex"

If anybody knows please reply directly to me at [email protected]

Any help is much appreciated.

Thanks!

__________________________________
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com

#1 lore raw

I think this could be done using l7-filtering, but my option would be use a proxy to do this job because its was designed for (among other things)

Quoted 32 lines

-----Mensaje original-----
De: [email protected] [mailto:[email protected]] En nombre de Real Cucumber
Enviado el: Jueves, 18 de Noviembre de 2004 21:48
Para: [email protected]
Asunto: Can an iptables NAT firewall Block URL's and Attachments?

If using an Iptables fedora box to act as a networks internety gateway NAT server, is it possible to create rules to block specific URL's or attachments?

ie: block any URL's ending in *.exe or block any URL's containing the word "sex"

If anybody knows please reply directly to me at
[email protected]

Any help is much appreciated.

Thanks!

__________________________________
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com

#2 lore raw
In reply to Real Cucumber
Quoted 7 lines · Real Cucumber

If using an Iptables fedora box to act as a networks internety gateway NAT server, is it possible to create rules to block specific URL's or attachments?

ie: block any URL's ending in *.exe or block any URL's containing the word "sex"

Quoted 6 lines

If anybody knows please reply directly to me at [email protected]

Any help is much appreciated.

Thanks!

iptables does a fantastic job of transparently redirecting port 80 requests:

http://www.tldp.org/HOWTO/TransparentProxy.html

to squid:

http://www.squid-cache.org/

which supports infinitely flexible acls:

http://squid.visolve.com/squid/squid24s1/access_controls.htm#acl

and category-based URL filtering redirectors like squidGuard:

http://www.squidguard.org/

and dansguardian:

http://dansguardian.org/

hope this helps.

-j

--
"Okay, retrace your steps. Woke up, fought with Marge, ate Guatemalan
insanity peppers, then I... Oh..."
--The Simpsons