If you want to route all traffic over the VPN. You need to configure
your default gateway to correctly.
On 2024-05-09 14:16, Sadeep Madurange wrote:
Hello,
I am trying to use the openvpn client. I have a .ovpn file I got from
my
vpn provider. I installed the openvpn package and ran the openvpn
client
using the following command:
$ doas openvpn --config client.ovpn --auth-user-pass auth.txt
Above command appears to succeed. ifconfig shows:
lo0: flags=2008049<UP,LOOPBACK,RUNNING,MULTICAST,LRO> mtu 32768
index 4 priority 0 llprio 3
groups: lo
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet 127.0.0.1 netmask 0xff000000
iwx0: flags=808843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,AUTOCONF4>
mtu 1500
lladdr d8:3b:bf:b5:ea:b9
index 1 priority 4 llprio 3
groups: wlan egress
media: IEEE802.11 autoselect (VHT-MCS1 mode 11ac)
status: active
ieee80211: join gcat chan 44 bssid 9c:53:22:fc:16:22 98% wpakey
wpaprotos wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher ccmp
inet 192.168.0.14 netmask 0xffffff00 broadcast 192.168.0.255
em0: flags=808843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,AUTOCONF4> mtu
1500
lladdr 00:2b:67:60:ff:6d
index 2 priority 0 llprio 3
media: Ethernet autoselect (none)
status: no carrier
enc0: flags=0<>
index 3 priority 0 llprio 3
groups: enc
status: active
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33136
index 5 priority 0 llprio 3
groups: pflog
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
index 9 priority 0 llprio 3
groups: tun
status: active
inet 10.73.0.30 --> 10.73.0.29 netmask 0xffffffff
However, it doesn't look like my internet traffic is going through the
vpn. Following is the output of 'netstat -nr -f inet':
Routing tables
Internet:
Destination Gateway Flags Refs Use Mtu Prio
Iface
default 192.168.0.1 UGS 5 1075 - 12
iwx0
224/4 127.0.0.1 URS 0 1175 32768 8
lo0
127/8 127.0.0.1 UGRS 0 0 32768 8
lo0
127.0.0.1 127.0.0.1 UHhl 1 2 32768 1
lo0
192.168.0/24 192.168.0.14 UCn 1 536 - 8
iwx0
192.168.0.1 9c:53:22:fc:16:20 UHLch 2 771 - 7
iwx0
192.168.0.14 d8:3b:bf:b5:ea:b9 UHLl 0 19244 - 1
iwx0
192.168.0.255 192.168.0.14 UHb 0 32 - 1
iwx0
--
Kind Regards
James B Colderwood
M0ZAH