Wireguard RTNETLINK
by unInstance from LinuxQuestions.org on (#4XACJ)
My setup:
Code:Module Size Used by
wireguard 185940 0
ip6_udp_tunnel 2345 1 wireguard
udp_tunnel 3121 1 wireguard
vboxdrv 416223 1
ipv6 321856 221 wireguard
fuse 85222 1
joydev 10496 0
snd_hda_codec_hdmi 39523 1
i2c_dev 6291 0
snd_hda_codec_realtek 73699 1
snd_hda_codec_generic 61252 1 snd_hda_codec_realtek
rtsx_pci_sdmmc 10996 0
rtsx_pci_ms 5668 0
mmc_core 107104 1 rtsx_pci_sdmmc
memstick 9317 1 rtsx_pci_ms
coretemp 6780 0
intel_rapl 11044 0
iosf_mbi 3821 1 intel_rapl
x86_pkg_temp_thermal 5665 0
intel_powerclamp 9010 0
kvm_intel 162135 0
kvm 509181 1 kvm_intel
irqbypass 3583 1 kvm
crct10dif_pclmul 5461 0
crc32_pclmul 3238 0
ghash_clmulni_intel 4701 0
iwlmvm 194294 0
mac80211 613918 1 iwlmvm
iwlwifi 119870 1 iwlmvm
evdev 12463 20
psmouse 115114 0
intel_pch_thermal 3355 0
i2c_i801 16974 0
serio_raw 5146 0
cfg80211 527818 3 iwlwifi,mac80211,iwlmvm
lpc_ich 14738 0
rtsx_pci 36476 2 rtsx_pci_ms,rtsx_pci_sdmmc
thermal 11441 0
wmi 9259 0
i915 1200377 4
thinkpad_acpi 73591 1
battery 14760 0
drm_kms_helper 119954 1 i915
nvram 6934 1 thinkpad_acpi
rfkill 18649 4 cfg80211,thinkpad_acpi
hwmon 4199 2 coretemp,thinkpad_acpi
ac 5440 0
drm 326102 5 i915,drm_kms_helper
fjes 21479 0
snd_hda_intel 30347 5
intel_gtt 14002 1 i915
snd_hda_codec 109304 4 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel
e1000e 178380 0
agpgart 31989 2 drm,intel_gtt
i2c_algo_bit 6154 1 i915
snd_hda_core 53305 5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
fb_sys_fops 1730 1 drm_kms_helper
syscopyarea 3458 1 drm_kms_helper
snd_hwdep 6656 1 snd_hda_codec
sysfillrect 3950 1 drm_kms_helper
sysimgblt 2608 1 drm_kms_helper
video 30072 2 i915,thinkpad_acpi
snd_pcm 93314 4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_core
i2c_core 48117 6 drm,i915,i2c_i801,i2c_dev,drm_kms_helper,i2c_algo_bit
mei_me 19075 0
snd_timer 22518 1 snd_pcm
ehci_pci 4285 0
xhci_pci 5065 0
ptp 12228 1 e1000e
button 5943 1 i915
ehci_hcd 44178 1 ehci_pci
xhci_hcd 118457 1 xhci_pci
tpm_tis 11588 0
snd 69793 18 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,thinkpad_acpi
pps_core 7902 1 ptp
tpm 36644 1 tpm_tis
soundcore 6812 1 snd
shpchp 26680 0
mei 62863 1 mei_me
processor 29285 0
loop 21505 0
ext4 581370 3
mbcache 8563 1 ext4
jbd2 93010 1 ext4Problem:
Code:~ % sudo wg-quick up Documents/darkn17.conf
Password:
Warning: `/home/uninstance/Documents/darkn17.conf' is world accessible
[#] ip link add darkn17 type wireguard
[#] wg setconf darkn17 /dev/fd/63
[#] ip address add 10.0.0.17/32 dev darkn17
[#] ip address add fd86:ea04:1115::17/128 dev darkn17
[#] ip link set mtu 1420 dev darkn17
[#] ip link set darkn17 up
[#] wg set darkn17 fwmark 51820
[#] ip -6 route add ::/0 dev darkn17 table 51820
[#] ip -6 rule add not fwmark 51820 table 51820
RTNETLINK answers: Address family not supported by protocol
[#] ip link delete dev darkn17Trying to duck the problem, I found out this may be caused by unloaded wg kernel module but as you can see in lsmod output the module is up and running.


- Slackware 14.2 (generic kernel)
- WireGuard 0.0.20181119
Code:Module Size Used by
wireguard 185940 0
ip6_udp_tunnel 2345 1 wireguard
udp_tunnel 3121 1 wireguard
vboxdrv 416223 1
ipv6 321856 221 wireguard
fuse 85222 1
joydev 10496 0
snd_hda_codec_hdmi 39523 1
i2c_dev 6291 0
snd_hda_codec_realtek 73699 1
snd_hda_codec_generic 61252 1 snd_hda_codec_realtek
rtsx_pci_sdmmc 10996 0
rtsx_pci_ms 5668 0
mmc_core 107104 1 rtsx_pci_sdmmc
memstick 9317 1 rtsx_pci_ms
coretemp 6780 0
intel_rapl 11044 0
iosf_mbi 3821 1 intel_rapl
x86_pkg_temp_thermal 5665 0
intel_powerclamp 9010 0
kvm_intel 162135 0
kvm 509181 1 kvm_intel
irqbypass 3583 1 kvm
crct10dif_pclmul 5461 0
crc32_pclmul 3238 0
ghash_clmulni_intel 4701 0
iwlmvm 194294 0
mac80211 613918 1 iwlmvm
iwlwifi 119870 1 iwlmvm
evdev 12463 20
psmouse 115114 0
intel_pch_thermal 3355 0
i2c_i801 16974 0
serio_raw 5146 0
cfg80211 527818 3 iwlwifi,mac80211,iwlmvm
lpc_ich 14738 0
rtsx_pci 36476 2 rtsx_pci_ms,rtsx_pci_sdmmc
thermal 11441 0
wmi 9259 0
i915 1200377 4
thinkpad_acpi 73591 1
battery 14760 0
drm_kms_helper 119954 1 i915
nvram 6934 1 thinkpad_acpi
rfkill 18649 4 cfg80211,thinkpad_acpi
hwmon 4199 2 coretemp,thinkpad_acpi
ac 5440 0
drm 326102 5 i915,drm_kms_helper
fjes 21479 0
snd_hda_intel 30347 5
intel_gtt 14002 1 i915
snd_hda_codec 109304 4 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel
e1000e 178380 0
agpgart 31989 2 drm,intel_gtt
i2c_algo_bit 6154 1 i915
snd_hda_core 53305 5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
fb_sys_fops 1730 1 drm_kms_helper
syscopyarea 3458 1 drm_kms_helper
snd_hwdep 6656 1 snd_hda_codec
sysfillrect 3950 1 drm_kms_helper
sysimgblt 2608 1 drm_kms_helper
video 30072 2 i915,thinkpad_acpi
snd_pcm 93314 4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_core
i2c_core 48117 6 drm,i915,i2c_i801,i2c_dev,drm_kms_helper,i2c_algo_bit
mei_me 19075 0
snd_timer 22518 1 snd_pcm
ehci_pci 4285 0
xhci_pci 5065 0
ptp 12228 1 e1000e
button 5943 1 i915
ehci_hcd 44178 1 ehci_pci
xhci_hcd 118457 1 xhci_pci
tpm_tis 11588 0
snd 69793 18 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,thinkpad_acpi
pps_core 7902 1 ptp
tpm 36644 1 tpm_tis
soundcore 6812 1 snd
shpchp 26680 0
mei 62863 1 mei_me
processor 29285 0
loop 21505 0
ext4 581370 3
mbcache 8563 1 ext4
jbd2 93010 1 ext4Problem:
Code:~ % sudo wg-quick up Documents/darkn17.conf
Password:
Warning: `/home/uninstance/Documents/darkn17.conf' is world accessible
[#] ip link add darkn17 type wireguard
[#] wg setconf darkn17 /dev/fd/63
[#] ip address add 10.0.0.17/32 dev darkn17
[#] ip address add fd86:ea04:1115::17/128 dev darkn17
[#] ip link set mtu 1420 dev darkn17
[#] ip link set darkn17 up
[#] wg set darkn17 fwmark 51820
[#] ip -6 route add ::/0 dev darkn17 table 51820
[#] ip -6 rule add not fwmark 51820 table 51820
RTNETLINK answers: Address family not supported by protocol
[#] ip link delete dev darkn17Trying to duck the problem, I found out this may be caused by unloaded wg kernel module but as you can see in lsmod output the module is up and running.