u/anditsung

[H] Games [W] tf2, games

digital ocean wireguard server split tunnel

i have digital ocean server and setup wireguard there to connect to local network on office

server configuration

```

[Interface]

Address = 10.7.0.1/24

ListenPort = 51820

PrivateKey = (hidden)

[Peer]

PublicKey = (hidden)

PresharedKey = (hidden)

AllowedIPs = 10.7.0.3/32, 192.168.70.0/24

Endpoint = client:24054

```

client configuration

```

[Interface]

Address = 10.7.0.3/32

PrivateKey = (hidden)

PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -t nat -A POSTROUTING -o wlp3s0 -j MASQUERADE

PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -t nat -D POSTROUTING -o wlp3s0 -j MASQUERADE

[Peer]

PublicKey = (hidden)

PresharedKey = (hidden)

AllowedIPs = 0.0.0.0/0

Endpoint = server:51820

PersistentKeepalive = 25

```

if i change client allowed ips other than 0.0.0.0/0 on server cannot access client local network.

what is the issue here?

client is using zorin OS 18

server is ubuntu 20-04

reddit.com
u/anditsung — 2 days ago