WireGuard Archive on lore.kernel.org
 help / color / Atom feed
* Wireguard with disabled IPv6 under FreeBSD
@ 2019-09-09 23:11 Евгений IRON
  0 siblings, 0 replies; only message in thread
From: Евгений IRON @ 2019-09-09 23:11 UTC (permalink / raw)
  To: wireguard

[-- Attachment #1.1: Type: text/plain, Size: 827 bytes --]

Hello,

I'm trying to setup wireguard server on FreeBSD which was built from ports. I have custom kernel build where I disabled IPv6 which I currently don't use at this VM. When I trying to start WIreguard I receive an error:

# service wireguard start
[#] wireguard-go wg0
INFO: (wg0) 2019/09/10 02:02:29 Starting wireguard-go version 0.0.20190805
ERROR: (wg0) 2019/09/10 02:02:29 Failed to create TUN device: address family not supported by protocol family
[#] rm -f /var/run/wireguard/wg0.sock
netstat: inet6: unknown address family

Here is my config file wg0.conf:

[Interface]
Address = 192.168.222.1/32
PrivateKey = <priv Key>
ListenPort = 51820

[Peer]
PublicKey = <pub key>
AllowedIPs = 192.168.222.2/32

Why does it try to use IPv6 on tun0 interface when I didn't specify IPv6 address in the config file.

Thank you!

[-- Attachment #1.2: Type: text/html, Size: 942 bytes --]


<HTML><BODY>Hello,<br><br>I'm trying to setup wireguard server on FreeBSD which was built from ports. I have custom kernel build where I disabled IPv6 which I currently don't use at this VM. When I trying to start WIreguard I receive an error:<br><br># service wireguard start<br>[#] wireguard-go wg0<br>INFO: (wg0) 2019/09/10 02:02:29 Starting wireguard-go version 0.0.20190805<br>ERROR: (wg0) 2019/09/10 02:02:29 Failed to create TUN device: address family not supported by protocol family<br>[#] rm -f /var/run/wireguard/wg0.sock<br>netstat: inet6: unknown address family<br><br>Here is my config file wg0.conf:<br><br>[Interface]<br>Address = 192.168.222.1/32<br>PrivateKey = &lt;priv Key&gt;<br>ListenPort = 51820<br><br>[Peer]<br>PublicKey = &lt;pub key&gt;<br>AllowedIPs = 192.168.222.2/32<br><br>Why does it try to use IPv6 on tun0 interface when I didn't specify IPv6 address in the config file.<br><br>Thank you!<br></BODY></HTML>

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-09 23:11 Wireguard with disabled IPv6 under FreeBSD Евгений IRON

WireGuard Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/wireguard/0 wireguard/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 wireguard wireguard/ https://lore.kernel.org/wireguard \
		wireguard@lists.zx2c4.com zx2c4-wireguard@archiver.kernel.org
	public-inbox-index wireguard


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/com.zx2c4.lists.wireguard


AGPL code for this site: git clone https://public-inbox.org/ public-inbox