LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 02-02-2006, 03:24 PM   #1
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Rep: Reputation: 43
TCPDUMP or what ?


Is there any way to use TCPDUMP from host in LAN to watch what is going on on GATEWAY ( Cisco router with NAT ).

If TCPDUMP cant do that then what should be good to do that ?
 
Old 02-02-2006, 03:30 PM   #2
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
can't you just use the debug commands on the cisco router?
 
Old 02-02-2006, 04:18 PM   #3
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Original Poster
Rep: Reputation: 43
how should it looks like ? Its CISCO 2503 with IOS (tm) 2500 Software (C2500-I-L), Version 11.3(8), RELEASE SOFTWARE (fc1)

I should focus on WWW traffic (especially port 80)
 
Old 02-04-2006, 09:52 AM   #4
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Original Poster
Rep: Reputation: 43
I tryed this:
PHP Code:
debug ip http url 
but it has shown nothing (no traffic).

Had a little more success with NAT option
PHP Code:
debug ip nat 
when I ping eg. www.google.com from LAN i was able to see that traffic.

Any more suggestions ?
I need to watch connections on dport 23 and 80 ( telnet and http )
 
Old 02-04-2006, 12:32 PM   #5
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
debug ip http url

I think the above debugs http requests to the http server that can be enabled/disabled on the router itself. i.e. Cisco SDM

I don't know if 11.3 IOS supports "debug ip packet", but if it does - Consider using something like...:
Code:
(config)#access-list 103 permit udp any any eq domain
(config)#access-list 103 permit tcp any any eq smtp
#debug ip packet 103 detail
#term mon
Note 1: ACL 103 is not applied to any interface as an access-group. It is simply used to specify which packets you want to view using debug ip packet. In this case, udp/domain and tcp/smtp packets from anywhere to anywhere. You can get more granular by changing the ACL's to meet your requirements.

Note 2: YMMV: But I find it easier to debug cisco routers using my linux box as a syslog server. Debug statements can generate alot of output. Try debugging a VoIP call someday!

The following is an example of how I use my linux box to capture debug output from cisco routers:
Code:
logging trap debugging
logging facility local2
logging source-interface FastEthernet1
logging 192.168.8.2
Note: 192.168.8.2 is the IP address of my linux box. I also configure syslogd to output facility local2 to a separate file.

Good Luck!
 
Old 02-05-2006, 10:39 AM   #6
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
Don't know what it is that you are trying to see exactly but maybe you should enable ip accounting on that router.
 
  


Reply



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
tcpdump telestudent Linux - Software 1 03-03-2005 10:07 PM
help tcpdump blackzone Linux - Networking 1 10-08-2004 07:07 AM
tcpdump dlm4444 Linux - Networking 1 02-15-2004 03:03 PM
tcpdump gbell72 Linux - Security 5 09-18-2003 02:08 PM
tcpdump isbrower Linux - Networking 2 06-11-2001 03:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:48 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
Open Source Consulting | Domain Registration