This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Can Wireshark sniff a network interface in a Solaris Zone?

0

Need to sniff packets in a Solaris Zone.

Thanks in advance.

asked 05 Aug '12, 12:16

Joe98765432s1's gravatar image

Joe98765432s1
1111
accept rate: 0%


2 Answers:

0

I haven't tried it (and I don't have a zone'd system to try it on), but I don't see why it would not work. I'd suggest giving it a try. (If it doesn't work, try Solaris' snoop command.)

answered 06 Aug '12, 06:05

JeffMorriss's gravatar image

JeffMorriss ♦
6.2k572
accept rate: 27%

0

Within a non-global zone, you cannot switch interfaces in promiscuous mode (per default). Thus you cannot capture all packets in a non-global zone. To be able to capture, the zone needs the privilege net_rawaccess.

Example:

https://blogs.oracle.com/gbrunett/entry/i_see_you_snoop_1m

However, if you sniff the interface (shared or exclusive) of non-global zones within the global zone, you should be able to see traffic of all zones that use this interface (use == have it mapped).

It does not matter if you sniff with Wireshark or snoop. If you want to sniff within a zone, you must install Wireshark in that zone. If you want to sniff in the global zone, you must install Wireshark there.

Regards
Kurt

answered 06 Aug '12, 14:49

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%