But I am unable to get the Mac version of the `update-resolv-conf` Script found at https://github.com/andrewgdotcom/openvpn-mac-dns to work. I can connect to Proton VPN but I have a DNS leak.
I installed `openvpn2` using MacPorts into `/opt/local/sbin/`.
And I installed the `update-resolv-conf` script into `/opt/local/etc/openvpn2/` and made sure it was executable.
I also placed the following at the end of the `client.conf` file in `/opt/local/etc/openvpn2/`:
Code: Select all
script-security 2
up /opt/local/etc/openvpn2/update-resolv-conf
down /opt/local/etc/openvpn2/update-resolv-conf
Code: Select all
bash-3.2$ sudo openvpn2 /Users/rob/Downloads/us-free-41.protonvpn.net.tcp.ovpn
Password:
2023-10-02 10:51:35 OpenVPN 2.6.6 x86_64-apple-darwin11.4.2 [SSL (OpenSSL)] [LZO] [LZ4] [MH/RECVDA] [AEAD]
2023-10-02 10:51:35 library versions: OpenSSL 3.1.3 19 Sep 2023, LZO 2.10
Enter Auth Username:
Enter Auth Password:
2023-10-02 10:51:52 TCP/UDP: Preserving recently used remote address: [AF_INET]37.19.221.197:8443
2023-10-02 10:51:52 Attempting to establish TCP connection with [AF_INET]37.19.221.197:8443
2023-10-02 10:51:52 TCP connection established with [AF_INET]37.19.221.197:8443
2023-10-02 10:51:52 TCPv4_CLIENT link local: (not bound)
2023-10-02 10:51:52 TCPv4_CLIENT link remote: [AF_INET]37.19.221.197:8443
2023-10-02 10:51:52 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
2023-10-02 10:51:52 [node-us-150.protonvpn.net] Peer Connection Initiated with [AF_INET]37.19.221.197:8443
2023-10-02 10:51:53 Opened utun device utun0
2023-10-02 10:51:53 /sbin/ifconfig utun0 delete
ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address
2023-10-02 10:51:53 NOTE: Tried to delete pre-existing tun/tap instance -- No Problem if failure
2023-10-02 10:51:53 /sbin/ifconfig utun0 10.98.0.3 10.98.0.3 netmask 255.255.0.0 mtu 1500 up
add net 10.98.0.0: gateway 10.98.0.3
add net 37.19.221.197: gateway 192.168.1.1
add net 0.0.0.0: gateway 10.98.0.1
add net 128.0.0.0: gateway 10.98.0.1
2023-10-02 10:51:53 Initialization Sequence Completed
See
https://protonvpn.com/support/linux-openvpn/
and
https://raw.githubusercontent.com/Proto ... lv-conf.sh
I am probably missing something really simple to get the Mac version of `update-resolv-conf` script to run.
Any help would be greatly appreciated.