Open heeyeol72 opened 7 years ago
Esxi has its own implementation of ping to work with the vmkernel nics, as well as its own implementation of tcpdump to sniff traffic. If it is a production esxi server I would not install 3rd party packages, and if you are doing security work, you should use the already supported vmware cli commands. I know it isn't a fix, mostly advise from a virtualization person.
I know there is vmkping/tcpdump-uw in ESXi, but I need some packet manipulation tool for testing purpose.
I installed scapy3k for vmware ESX with python 3.5. There is architecture dependent macros like SIOCGIFCOUNT in scapy-python3-0.20/scapy/arch/linux.py
I verify all macros are same as ESX system(vmkernel) except SIOCGSTAMP But still scapy won't work with ESX's vmk I/F which is a special I/F for ESX management purpose like vmotion/VSAN. Note that scapy3k works in vnic of guest VM.
/vmfs/volumes/datastore1 (1)/scapy-python3-0.20/scapy/arch/linux.py(446)init() -> sa_ll = self.outs.getsockname() (Pdb) (Pdb) n OSError: [Errno 95] Operation not supported
There are several warning of tcpdump and /proc/net/dev, router since ESX has tcpdump-uw and doesn't have /proc/net folder. But this simple operation (self.outs.getsockname) complains failure.
setsockopt failed to run, but once I change the third argument to 2*20, it sometime worked or didn’t I know this error means OS(i.e. vmware vmkernel) expresses this setsockopt function is not supported. But setsockopt is general function and it's from original package (arch/linux.py)
Can anyone help me fix these issue on vmware ESX vmk?
Thx