View previous topic :: View next topic |
Author |
Message |
Tiro l33t
Joined: 14 Feb 2003 Posts: 752 Location: italy
|
Posted: Sat Oct 01, 2005 4:00 pm Post subject: internet navigation users |
|
|
hi,
i have to make a gateway that can log the internet navigation of the users. something like:
macaddr:192.168.0.4:www.somewhere.com
note that it doesn't have to resolve the address. Does exist a iptables rule for that? |
|
Back to top |
|
|
VStrider Apprentice
Joined: 27 Jun 2005 Posts: 244 Location: 1 to Rule All way, Moria Gate, Middle Earth, SAU 70N
|
Posted: Sat Oct 01, 2005 4:23 pm Post subject: |
|
|
You need to set up a web proxy, like squid. |
|
Back to top |
|
|
Tiro l33t
Joined: 14 Feb 2003 Posts: 752 Location: italy
|
Posted: Sat Oct 01, 2005 4:40 pm Post subject: |
|
|
yes...i know the possibility of setting up squid+sarg but i'm searching a simpler solution based on iptables. If it is possible... |
|
Back to top |
|
|
VStrider Apprentice
Joined: 27 Jun 2005 Posts: 244 Location: 1 to Rule All way, Moria Gate, Middle Earth, SAU 70N
|
Posted: Sat Oct 01, 2005 6:43 pm Post subject: |
|
|
Maybe something like...
Code: | iptables -A OUTPUT -m tcp --dport 80 -j LOG |
this will log all outgoing packages to a remote port 80 (web traffic)
or
Code: | iptables -A OUTPUT -m owner --cmd-owner /usr/lib/mozilla-firefox/firefox-bin -j LOG |
this will log all outgoing packages created by firefox.
don't forget to put a limit, if you don't want to clog your logs. |
|
Back to top |
|
|
|