LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 01-29-2009, 11:55 AM   #1
exactiv
Member
 
Registered: Nov 2008
Location: Ireland
Distribution: *nix
Posts: 47

Rep: Reputation: 15
Question Is there an internet activity log in Fedora 6?


Hi,

I need to check if one of my Fedora 6 servers is connecting to the internet of its own accord. Is there some kind of log file somewhere?

Basically, the server is on a premises without ADSL or other fixed rate broadband connection, and seems to have been using an ISDN gateway to go online. The most recent phone bill was around 450 euro for one month...

One of my own scripts connects at around 1am to check for an update, and that's fine. But I need to know if anything else is connecting for any reason. Like package updates etc...

Any help would be greatly appreciated.

Thanks,

Ex.
 
Old 01-29-2009, 11:23 PM   #2
rossonieri#1
Member
 
Registered: Jun 2007
Posts: 359

Rep: Reputation: 34
hi,

sure you can do that using iptables by inverse logging to the internal or LAN ip/subnet.
example using 1 interface :
iptables -A OUTPUT -s <your_IP> ! -d <LAN_ip_subnet> -j LOG --log-level 5 --log-prefix <description>

more specific - you can LOG matching process owner etc.
$man iptables

HTH.

Last edited by rossonieri#1; 01-30-2009 at 04:43 AM. Reason: forgot to put your_IP :)
 
Old 01-30-2009, 04:07 AM   #3
exactiv
Member
 
Registered: Nov 2008
Location: Ireland
Distribution: *nix
Posts: 47

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by rossonieri#1 View Post
hi,

sure you can do that using iptables by inverse logging to the internal or LAN ip/subnet.
example using 1 interface :
iptables -A OUTPUT -s ! -d <LAN_ip_subnet> -j LOG --log-level 5 --log-prefix <description>

more specific - you can LOG matching process owner etc.
$man iptables

HTH.
Thanks for that. I'll give it a shot
 
  


Reply

Tags
internet, log


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
log activity in samba packets Linux - Software 1 11-05-2008 05:24 AM
Do I want a linux router/firewall to log internet DNS activity? RayMetz100 Linux - Networking 1 03-07-2006 01:14 PM
activity log linuxhippy Slackware 5 11-16-2005 07:55 PM
which log gives me info about internet activity? dr_zayus69 Linux - Newbie 7 12-03-2004 06:14 PM
suspicious log activity hoedad Linux - Newbie 3 07-26-2004 08:33 AM


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