Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
internet navigation users
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Tiro
l33t
l33t


Joined: 14 Feb 2003
Posts: 752
Location: italy

PostPosted: Sat Oct 01, 2005 4:00 pm    Post subject: internet navigation users Reply with quote

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
View user's profile Send private message
VStrider
Apprentice
Apprentice


Joined: 27 Jun 2005
Posts: 244
Location: 1 to Rule All way, Moria Gate, Middle Earth, SAU 70N

PostPosted: Sat Oct 01, 2005 4:23 pm    Post subject: Reply with quote

You need to set up a web proxy, like squid.
Back to top
View user's profile Send private message
Tiro
l33t
l33t


Joined: 14 Feb 2003
Posts: 752
Location: italy

PostPosted: Sat Oct 01, 2005 4:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
VStrider
Apprentice
Apprentice


Joined: 27 Jun 2005
Posts: 244
Location: 1 to Rule All way, Moria Gate, Middle Earth, SAU 70N

PostPosted: Sat Oct 01, 2005 6:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum