A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Networking and the Internet with Windows XP
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to capture packets that match a particular route?



 
 
Thread Tools Display Modes
  #1  
Old June 2nd 03, 11:43 PM
Anand R
external usenet poster
 
Posts: n/a
Default How to capture packets that match a particular route?

Hi -
I need to capture data packets that match a particular
route. I know how to do this in Linux, so I've mentioned
that below. I'd appreciate if the Windows experts tell
how to do the same in Windows XP(SP1).

Thanks,
Anand

In Linux:
--------
1. Create a "tunnel" device
2. Make the tunnel device the outgoing interface of the
particular route
3. User space app. can now read the tunnel device and get
packets that match the particular route.

Example config for capturing packets that match the
default route:
#ifconfig tun
tun Link encap:Point-to-Point Protocol
inet addr:127.0.0.2 P-t-P:127.0.0.2
Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST
MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0
frame:0
TX packets:0 errors:0 dropped:0 overruns:0
carrier:0
collisions:0 txqueuelen:10
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

#route
Kernel IP routing table
Destination Gateway Genmask Flags
Metric Ref Use Iface
10.20.30.0 * 255.255.255.0 U
0 0 0 eth0
127.0.0.0 * 255.0.0.0 U
0 0 0 lo
default * 0.0.0.0 U
0 0 0 tun

Ads
  #2  
Old June 3rd 03, 01:37 AM
Gran Salseron
external usenet poster
 
Posts: n/a
Default How to capture packets that match a particular route?

in winxp that is called PPTP and you can read about it in help & support.

"Anand R" wrote in message
...
Hi -
I need to capture data packets that match a particular
route. I know how to do this in Linux, so I've mentioned
that below. I'd appreciate if the Windows experts tell
how to do the same in Windows XP(SP1).

Thanks,
Anand

In Linux:
--------
1. Create a "tunnel" device
2. Make the tunnel device the outgoing interface of the
particular route
3. User space app. can now read the tunnel device and get
packets that match the particular route.

Example config for capturing packets that match the
default route:
#ifconfig tun
tun Link encap:Point-to-Point Protocol
inet addr:127.0.0.2 P-t-P:127.0.0.2
Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST
MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0
frame:0
TX packets:0 errors:0 dropped:0 overruns:0
carrier:0
collisions:0 txqueuelen:10
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

#route
Kernel IP routing table
Destination Gateway Genmask Flags
Metric Ref Use Iface
10.20.30.0 * 255.255.255.0 U
0 0 0 eth0
127.0.0.0 * 255.0.0.0 U
0 0 0 lo
default * 0.0.0.0 U
0 0 0 tun



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.484 / Virus Database: 282 - Release Date: 05/27/2003


  #3  
Old June 3rd 03, 01:38 AM
Gran Salseron
external usenet poster
 
Posts: n/a
Default How to capture packets that match a particular route?

Oops! PPTP = Point to Point Tunneling Protocol.

"Anand R" wrote in message
...
Hi -
I need to capture data packets that match a particular
route. I know how to do this in Linux, so I've mentioned
that below. I'd appreciate if the Windows experts tell
how to do the same in Windows XP(SP1).

Thanks,
Anand

In Linux:
--------
1. Create a "tunnel" device
2. Make the tunnel device the outgoing interface of the
particular route
3. User space app. can now read the tunnel device and get
packets that match the particular route.

Example config for capturing packets that match the
default route:
#ifconfig tun
tun Link encap:Point-to-Point Protocol
inet addr:127.0.0.2 P-t-P:127.0.0.2
Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST
MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0
frame:0
TX packets:0 errors:0 dropped:0 overruns:0
carrier:0
collisions:0 txqueuelen:10
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

#route
Kernel IP routing table
Destination Gateway Genmask Flags
Metric Ref Use Iface
10.20.30.0 * 255.255.255.0 U
0 0 0 eth0
127.0.0.0 * 255.0.0.0 U
0 0 0 lo
default * 0.0.0.0 U
0 0 0 tun



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.484 / Virus Database: 282 - Release Date: 05/27/2003


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 04:28 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.