Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find PC sending spam

Status
Not open for further replies.

fortage

MIS
Joined
Jun 15, 2000
Messages
329
Location
US
Cisco 1720
There is a rouge PC sending spam and I'd like to determine the ip of the PC. I've already created an access list denying port 25 on all IPs except the mail server. What are the commands to find which pc is sendning on port 25?

Thanks
 
best thing to do is use a sniffer attached before the firewall..


or depending on your firewall, put a capture filter on the firewall itself..
 
This is a remote facility and would prefer to log from the router. Is it possible?
 
just add logging to your access list. that should show all IP addreses trying to connect to port 25
 
I enabled logging "ip accounting output-packets" on the F0 int but it does not show the port. Can you provide the commands to do this?
 
just add "log" at the end of that acl

something like

access-list 101 deny tcp x.x.x. y.y.y.y any eq 25 log
 
do I then enable ip accounting acces-violations on F0?
 
you don't need an accounting enabled. all you need is ACL applyed to the interface.

like

ip access-group 101 in (or out depending on interface)


after that just watch the log
 
Or, you could turn on NetFlow switching on that interface, then do a "show ip cache flow" and look for traffic on port 25. Actually, it will show as port 19 because the port numbers in that display are in hexadecimal.
 
or if your running NAT, just do a sh ip nat tran* and this will show inside pc IP's and the port they are sending.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top