WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Got "Socket type not supported!" Error, when start snort in WSL kali

Open Mithrilwoodrat opened this issue 8 years ago • 39 comments

  • Windows build number : 10.0.16299.431

  • WSL version: Kali Linux Linux DESKTOP-SDPSKB6 4.4.0-43-Microsoft #1-Microsoft Wed Dec 31 14:42:53 PST 2014 x86_64 GNU/Linux

  • Trying to start snort in command line, Got Socket type not supported! error.

  • Command Output

root:snort-2.9.11.1# snort -ilo
Running in packet dump mode

        --== Initializing Snort ==--
Initializing Output Plugins!
pcap DAQ configured to passive.
Acquiring network traffic from "lo".
ERROR: Can't start DAQ (-1) - socket for SIOCETHTOOL(ETHTOOL_GET_TS_INFO): Socket type not supported!
Fatal Error, Quitting..

according to socket(AF_UNIX, SOCK_RAW, 0) = -1 ESOCKTNOSUPPORT (Socket type not supported) , it seemss this problem related to AF_UNIX support in WSL.

I found an Issue about this https://github.com/Microsoft/WSL/issues/134. And there is also a blog saying it's supported in Insider Build 17063. Can I fixed this if I update my windows system to newer vesion?

Mithrilwoodrat avatar May 19 '18 11:05 Mithrilwoodrat

SOCK_RAW is #717 #1383 and friends. #134 is AF_UNIX with SOCK_DGRAM and SOCK_STREAM.

therealkenc avatar May 19 '18 17:05 therealkenc

MS PEOPLE PLZ SOLVE THE FUCKING AF_UNIX PROPLAM ON WSL.

MA24th avatar Feb 07 '19 18:02 MA24th

hitting this issue with latest Windows 10 updates (2019 Feb), please fixed it instead of muting the complaining voice

moralrebuild avatar Feb 13 '19 03:02 moralrebuild

Still a problem on win 10 build 17763.316.. back to a VM.. nice try M$

ghost avatar Feb 20 '19 04:02 ghost

Yep, issue is still present and makes tcpdump et. al useless as of build 18363.535.

Qrbaker avatar Dec 15 '19 19:12 Qrbaker

Humm, I'm, seeing this Issue and I think would be better use Kali as Virtual environment in VMBOX.

moises-gonzalez avatar Apr 13 '20 18:04 moises-gonzalez

Same issue with ubuntu Win 10 v.1909 (Build 18363.778) WSL - Ubuntu 18.04.2 LTS: netdiscover -r 192.168.0.0/24 Couldn't find default device: socket: Socket type not supported

Djoraan avatar Apr 30 '20 12:04 Djoraan

the same error arrives on Linux distros running on android: can you please look into the matter, or give me hint so i could solve it myself

k1941996 avatar May 01 '20 13:05 k1941996

same issue

sundxu avatar May 05 '20 17:05 sundxu

same issue here. Windows version: 10.0.18363.836 WSL: Ubuntu 18.04.4 LTS

koifans avatar May 31 '20 00:05 koifans

Same issue here

Eriobis avatar Jun 16 '20 17:06 Eriobis

#Help Same issue with Kali-linux image Please solve this issue as soon as possible

Ahnaf702 avatar Jun 27 '20 12:06 Ahnaf702

Same issus here. Windows10 version: 19041.329 WSL Ubuntu 20.04 LTS

yudengc avatar Jul 01 '20 07:07 yudengc

got same issue,why closed?

suchb avatar Jul 01 '20 14:07 suchb

Why this issue is closed still have same problem.

logi14 avatar Jul 19 '20 12:07 logi14

Same here....

vonmoraes avatar Jul 20 '20 13:07 vonmoraes

Why this issue is closed still have same problem.

Because it is duplicative #717, #1930, others. But you know that because of the tag at the top of the page.

image

image

therealkenc avatar Jul 20 '20 17:07 therealkenc

same issue occurs for me, while trying to use EtherApe, a packet sniffer:

siyengar@DESKTOP-SDU1C6C:~/Downloads/etherape-0.9.18$` etherape

(etherape:12795): GVFS-RemoteVolumeMonitor-WARNING **: 01:14:23.023: remote volume monitor with dbus name org.gtk.vfs.UDisks2VolumeMonitor is not supported
EtherApe-INFO: 01:14:23.461: sctp protocol not supported
EtherApe-INFO: 01:14:23.462: ddp protocol not supported
EtherApe-INFO: 01:14:23.462: ddp protocol not supported
EtherApe-INFO: 01:14:23.462: ddp protocol not supported
EtherApe-INFO: 01:14:23.462: ddp protocol not supported
EtherApe-INFO: 01:14:23.474: get_interface result: 'socket: Socket type not supported'
EtherApe-INFO: 01:14:23.474: No suitables interfaces for capture have been found
(etherape:12795): Gtk-DEBUG: 01:14:23.528: Failed to create D-Bus proxy: Could not connect: No such file or directory
(etherape:12795): dconf-DEBUG: 01:14:23.550: watch_fast: "/org/appmenu/gtk-module/" (establishing: 0, active: 0)
(etherape:12795): dconf-DEBUG: 01:14:23.550: unwatch_fast: "/org/appmenu/gtk-module/" (active: 0, establishing: 1)
(etherape:12795): dconf-DEBUG: 01:14:23.551: watch_established: "/org/appmenu/gtk-module/" (establishing: 0)

siyengar04 avatar Jul 26 '20 08:07 siyengar04

Hello.. i know its old issue, but was anyone finally able to find a solution for this. if anyone has solution for this please please let me know.

i have installed Bettercap on Kali on WINDOWS 10 os.. Bettercap version 2.28 is still giving issue...

socket for SIOCETHTOOL(ETHTOOL_GET_TS_INFO): Socket type not supported

GoodspeedAmar avatar Oct 31 '20 07:10 GoodspeedAmar

Hi,

Just got this issue on the latest version of Windows 10 with Kali Linux.

Will we have a fix for the issue? For what I can see it has been around for a long time and it is closed for some reason.

diegofelipe01 avatar Nov 06 '20 16:11 diegofelipe01