The filter syntax is the standard bpf (Berkeley Packet Filter) syntax, used by most libpcap programs.
host 192.168.1 is an invalid filter - or it may be interpreted as 0.192.168.1 or 192.168.0.1... (may just be a typo below) 1. Try double quotes .... -B "" not -B '' ... depending on which shell you're using, things get interpreted differently. 2. Install tcpdump - it's a packet grabber which also uses bpf. That way you can get a quick, real-time feedback on tuning the filter: $ tcpdump -c 5 will show the 1st 5 packets $ tcpdump -c 5 -i eth1 will show the 1st 5 packets on eth1 $ tcpdump -c 5 -i eth1 net 192.168.1.0/24 will show the 1st 5 packets on eth1 for the 192.168.1.x network (it's the same as your net mask syntax, just less to type) etc. ppp links are strange - you may really need to look at the traffic on the link to craft the right filter. -----Burton -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Hendrik Friedel Sent: Saturday, August 17, 2002 5:31 AM To: [EMAIL PROTECTED] Subject: [Ntop] Filtering > -B option I've tried that. But if I limit it to # ntop -i ppp0 -B 'net 192.168.1.0 mask 255.255.255.0', it has no effect # ntop -i ppp0 -B 'host 192.168.1', doesn't do the trick as well. Sorry, I'm a not very familiar with linux yet. Could you give me a hint? Hendrik _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://lists.ntop.org/mailman/listinfo/ntop _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://lists.ntop.org/mailman/listinfo/ntop
