When I activate my local WireGuard client, I am unable to access the internet from my browser. However, I am successfully connecting to my WireGuard peer. I am using MacOs 12.6.
Here is my local WireGuard configuration file:
[Interface]
PrivateKey = <private key>
Address = 192.168.220.7/24
DNS = 192.168.100.30
[Peer]
PublicKey = <public key>
PresharedKey = <preshared key>
AllowedIPs = 192.168.100.0/24, 192.168.200.0/24, 192.168.102.0/24, 192.168.103.0/24
Endpoint = <endpoint ip>
As far as I understand, the WireGuard connection should only be used if the IP address falls within the range defined under "AllowedIPs". However, I could be wrong about that.
When I run the ifconfig command in my terminal and look for the wireguard tunnel it looks like this:
utun5: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1420
options=6463<RXCSUM,TXCSUM,TSO4,TSO6,CHANNEL_IO,PARTIAL_CSUM,ZEROINVERT_CSUM>
inet 192.168.220.7 --> 192.168.220.7 netmask 0xffffff00