i can't find available device in wireshark?

2007-02-16 Thread lveax

hey all.

i can't find any available device in the list

i notice it depends bpf
but i already have
device  bpf # Berkeley packet filter
in my kernel config

where is wrong?

$ ifconfig
rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
   options=8VLAN_MTU
   inet 192.168.5.1 netmask 0xff00 broadcast 192.168.5.255
   ether 4c:00:10:b4:1d:d2
   media: Ethernet autoselect (100baseTX full-duplex)
   status: active
nve0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
   inet 192.168.6.1 netmask 0xff00 broadcast 192.168.6.255
   ether 00:16:e6:84:e6:3e
   media: Ethernet autoselect (100baseTX full-duplex)
   status: active
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
   inet 127.0.0.1 netmask 0xff00
tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST mtu 1492
   inet 219.13x.xxx.xxx -- 58.52x.xxx.xxx netmask 0x
   Opened by PID 874
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: i can't find available device in wireshark?

2007-02-16 Thread Bill Moran
In response to lveax [EMAIL PROTECTED]:
 
 i can't find any available device in the list
 
 i notice it depends bpf
 but i already have
 device  bpf # Berkeley packet filter
 in my kernel config
 
 where is wrong?
 
 $ ifconfig
 rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
 options=8VLAN_MTU
 inet 192.168.5.1 netmask 0xff00 broadcast 192.168.5.255
 ether 4c:00:10:b4:1d:d2
 media: Ethernet autoselect (100baseTX full-duplex)
 status: active
 nve0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
 inet 192.168.6.1 netmask 0xff00 broadcast 192.168.6.255
 ether 00:16:e6:84:e6:3e
 media: Ethernet autoselect (100baseTX full-duplex)
 status: active
 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
 inet 127.0.0.1 netmask 0xff00
 tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST mtu 1492
 inet 219.13x.xxx.xxx -- 58.52x.xxx.xxx netmask 0x
 Opened by PID 874

Did you run it as root?  What does wireshark -D say?  If I run my as
non-root:

$ wireshark -D
wireshark: There are no interfaces on which a capture can be done

But it works fine when run as root.

-- 
Bill Moran
Collaborative Fusion Inc.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: i can't find available device in wireshark?

2007-02-16 Thread Igor Robul

Bill Moran wrote:

Did you run it as root?  What does wireshark -D say?  If I run my as
non-root:

$ wireshark -D
wireshark: There are no interfaces on which a capture can be done

But it works fine when run as root.

  

just add something like this:

[bpf=100]
add path 'bpf*' mode 0660 group wheel

to your /etc/devfs.rules

and

devfs_set_rulesets=/dev=bpf

to
/etc/rc.d

Then reboot or do sudo /etc/rc.d/devfs restart

Make sure that you are in wheel group, or just change rule.
You can read more if you do
man devfs
man devfs.rules
...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]