TunSafe Forum

Welcome to the TunSafe Community Forum. This is open for discussions related to TunSafe and the WireGuard protocol.

You are not logged in.

#1 2018-03-11 15:25:10

ddvzlnz
Member
Registered: 2018-03-11
Posts: 3

The TAP driver is not compatible with Address using CIDR /31 or /32

MacOS 10.13.3

Tunnelblick installed but not running.

I ran

sudo ./tunsafe wg0-client.conf

against a know working conf file that my linux box uses to reach a Streisand server and got the above error.

Here is the redacted wg0-client.conf  file contents:

======================================================================

# "-REDACTED-" - Streisand WireGuard Client Profile
[Interface]
Address = 10.192.122.16/32
# The use of DNS below effectively expands to:
#   PostUp = echo nameserver 10.192.122.1 | resolvconf -a tun.%i -m 0 -x
#   PostDown = resolvconf -d tun.%i
# If the use of resolvconf is not desirable, simply remove the DNS line
# and use a variant of the PostUp/PostDown lines above.
# The IP address of the DNS server that is available via the encrypted
# WireGuard interface is 10.192.122.1.
DNS = 10.192.122.1
PrivateKey = -REDACTED-

[Peer]
PublicKey = -REDACTED-
AllowedIPs = 0.0.0.0/0
Endpoint = -REDACTED-:51820

======================================================================

Offline

#2 2018-03-11 16:38:56

ludde
Administrator
Registered: 2018-03-09
Posts: 124

Re: The TAP driver is not compatible with Address using CIDR /31 or /32

Try changing the Address line to end with /30 instead of /32

Offline

#3 2018-03-11 16:40:57

ludde
Administrator
Registered: 2018-03-09
Posts: 124

Re: The TAP driver is not compatible with Address using CIDR /31 or /32

I will investigate if there is a way to support /32. On Windows it doesn't work because the tun driver needs a subnet but perhaps OSX doesn't have this restriction.

Offline

#4 2018-03-14 19:07:56

ddvzlnz
Member
Registered: 2018-03-11
Posts: 3

Re: The TAP driver is not compatible with Address using CIDR /31 or /32

Made the change and got this error:

sudo ./tunsafe wg0-client.conf
Password:
Loading file: wg0-client.conf
Run: /sbin/ifconfig utun1 10.192.122.16 mtu 1420 10.192.122.16 netmask 255.255.255.252 up
Run: /sbin/route add -net 10.192.122.16 -netmask 255.255.255.252 10.192.122.16
route: writing to routing socket: Can't assign requested address
add net 10.192.122.16: gateway 10.192.122.16: Can't assign requested address
Unable to determine default interface.

Offline

#5 2018-04-17 17:43:54

ddvzlnz
Member
Registered: 2018-03-11
Posts: 3

Re: The TAP driver is not compatible with Address using CIDR /31 or /32

Just tried this again, even as root.  It does not work with /32, /31, or /30.  Will there be any update soon?

Thank you.

Offline

#6 2019-02-07 19:20:10

lsec
Member
Registered: 2019-02-07
Posts: 2

Re: The TAP driver is not compatible with Address using CIDR /31 or /32

Hello, I come also from a streisand install,
when I import the conf file tunsafe shows connection established but there is no traffic  U/L Stays at 0
Do you plan to do something on it ?
Thank you

Offline

#7 2019-02-14 18:24:54

xifei.tian
Member
Registered: 2019-02-14
Posts: 1

Re: The TAP driver is not compatible with Address using CIDR /31 or /32

connection established successfully on macOS Mojave, but chrome report HSTS connecting error, why?

Offline

Board footer

Powered by FluxBB