killswitch: Don't work on MacOS 14.0 Sonoma - PEER IP address:

When I run sudo killswitch -e command it don’t resolve PEER IP address:

Interface  MAC address         IP
en0        c8:89:f3:c2:d4:3c   192.168.1.105/24
ipsec0                         xx.20.8.5

Public IP address: yy.143.217.112
PEER IP address:   <nil>

# --------------------------------------------------------------
# Loading rules
# --------------------------------------------------------------
No ALTQ support in kernel
ALTQ related functions disabled
block drop all
block drop out quick inet6 all
pass inet proto udp from any to 224.0.0.0/4 keep state
pass inet proto udp from 224.0.0.0/4 to any keep state
pass inet from any to 255.255.255.255 flags S/SA keep state
pass inet from 255.255.255.255 to any flags S/SA keep state
pass on en0 proto udp from any port 67:68 to any port 67:68 keep state
pass on en0 proto tcp from any to <nil> flags S/SA keep state
pass on en0 proto udp from any to <nil> keep state
pass on ipsec0 all flags S/SA keep state

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 5
  • Comments: 17 (5 by maintainers)

Most upvoted comments

Thank you, this is a really working workaround. I didn’t realize there was an -ip parameter where you can specify the VPN server IP.

@vadim-miroshnik if you are using IKE try for now scutil --nwi that will return the VPN server and then you can pass it as the peer IP

hi @vadim-miroshnik thanks for trying it out, I will re-implement and use traceroute to try to find the peer, I tested so far with IKE/Wireguard and indeed using netstat USGx is not returning the peer IP, any ideas more than welcome

it’s showing peer IP address for me, but connection stops working after sudo killswitch -e called in the MacOs 14.0 Sonoma

Same problem here. Intel MacBook Pro running Sequoia 15.2 Proton VPN works on IKE only

@nbari No, it’s the same error again. I build it from the source on my mac. v0.7.3 photo_2023-11-05 18 22 46

Same here even if I tried to pass the ip option using sudo killswitch -e -ip 123.12.....