Linux – How to check/enable promiscuous mode

Many if not all network traffic capture utilities require that the network adapter has the promiscuous mode enabled.

To check if the promiscuous mode is on run:

netstat -i
Kernel Interface table
Iface MTU  RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
eth0  9001 9095  0      0      0      10367 0       0     0      BMRU

Look at the Flg column – if the P flag is missing the mode is not enabled.

To enable it run:

ifconfig eth0 promisc

or

ip link set eth0 promisc on

Raspberry Pi – Debian – Network tools

ifstat – InterFace STATistics Monitoring

ifstat is a tool to report network interfaces bandwith just like vmstat/iostat do for other system counters. It can monitor local interfaces by polling the kernel counters, or remote hosts interfaces using SNMP.

To install run:

apt-get install ifstat

then just issue:

ifstat

example output:

eth0
 KB/s in KB/s out
 4.22 237.91
 4.19 246.90
 4.17 248.41

to be continued….

accessing share folder on windows 7 from XP

..you need to tell Windows 7 that you want to use the machine as a file server and that it should allocate resources accordingly.
Set the following registry key to ‘1′:
HKLMSYSTEMCurrentControlSetControlSession ManagerMemory ManagementLargeSystemCache

and set the following registry key to ‘3′:
HKLMSYSTEMCurrentControlSetServicesLanmanServerParametersSize

After changing the two registry settings, I simply restarted the “Server” service in Windows 7 and now the sharing is working fine.