Skip to contentSkip to conversation

logging

DISCUSSION John T. Williams 3 participants 3 messages Dec 29, 2003 – Dec 30, 2003

lore
Share & tools
lore
#0 lore raw

I was wondering if there is a good method for logging all attempts to connect to a port on my computer. Basically, I was looking for something that logged the port and ip and the destination port of attempted connections.

I'm running Mandrake 9.1

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#1 lore raw
Quoted 7 lines · John T. Williams

I was wondering if there is a good method for logging all attempts to connect to a port on my computer. Basically, I was looking for something that logged the port and ip and the destination port of attempted connections.

I'm running Mandrake 9.1

iptables has a logging option but I can't tell you more.
http://lartc.org and look for HOWTO on that page

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#2 lore raw
In reply to John T. Williams
Quoted 6 lines · John T. Williams

I was wondering if there is a good method for logging all attempts to connect to a port on my computer. Basically, I was looking for something that logged the port and ip and the destination port of attempted connections.

I'm running Mandrake 9.1

Presumably a 2.4.x kernel then.

iptables itself (the kernel's built-in firewalling) will do this; LOG is a predefined target that does not terminate (in the way that ACCEPT, REJECT, and DENY do) but does log each matching packet before passing it on to the next rule in the chain.

The man page for iptables will at least get you started. If you need help with specifics after reading it, don't hesitate to ask here.

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs