I have been trying to set up 2 raspberry Pi’s in a site-to-site split tunnel vpn configuration. I started out with PiVPN, fairly easily set up a couple of working ‘road warrior’ VPN connections, then tried to progress to a site-to-site VPN and struck out completely with PiVPN. After giving up on PiVPN and instead following the https://www.wireguard.com/quickstart/ side-by-side video however I was able to establish a basic Site-to-Site VPN. the current status I have is I can ping the 10.x.x.x IP addresses of the connected clients on each end of the tunnel, from either side via a Raspberry Pi terminal sessions - but I can’t ping remote network addresses from the same terminal session. Can someone point me at how I would do that?
Config:
Local | Remote | |
---|---|---|
Network | 192.168.0.1/24 | 192.168.1.1/24 |
Raspberry Pi w/Wireguard | 192.168.0.2 | 192.168.1.2 |
Pi wired interface | eth0 | eth0 |
Pi wireguard interface | wg0 | wg1 |
Wireguard IP | 10.0.0.1 | 10.0.0.2 |
Allowed IP’s | 10.0.0.1/32, 192.168.1.0/24 | 10.0.0.2/32, 192.168.0.0/24 |
IP-4 route | 192.168.1.0/24 dev wg0 scope link | not set up |
Forwarding | inet wg0 forwarding on rp_filter off mc_forwarding off proxy_neigh off ignore_routes_with_linkdown off | |
iptables | -A FORWARD -i wg0 -j ACCEPT |
I don’t know much about Linux (I have just about figured out that ‘sudo’ means “pretty please”, but I still keep forgetting to ask nicely). And I’m intermediate at networking skills… I might have figured some of this out in a windows context, but throw in Linux and i’m basically lost!
Both sites are behind ASUS routers, and (if I get that far) I am hoping that adding a static route on the routers to direct traffic to the remote networks via the Raspberry Pi’s like this would complete the picture…, i.e. Setup → LAN → Route ‘Enable Static Routes’ = Yes,
Local network: Network: 192.168.1.0 Netmask: 255.255.255.0 Gareway 192.168.0.2 Metric 1 Interface LAN
Remote Network: Network: 192.168.0.0 Netmask: 255.255.255.0 Gareway 192.168.1.2 Metric 1 Interface LAN
LOCAL WG OUTPUT
interface: wg0
public key: (hidden)
private key: (hidden)
listening port: 41579
peer: (hidden)
endpoint: xxx.xxx.xxx.xxx:42566
allowed ips: 10.0.0.1/32, 192.168.1.0/24
latest handshake: 50 minutes, 30 seconds ago
transfer: 2.82 KiB received, 5.04 KiB sent
REMOTE WG OUTPUT
interface: wg1
public key: (hidden)
private key: (hidden)
listening port: 42566
peer: (hidden)
endpoint: xxx.xxx.xxx.xxx:41579
allowed ips: 10.0.0.2/32, 192.168.0.0/24
latest handshake: 52 minutes, 15 seconds ago
transfer: 11.44 KiB received, 9.52 KiB sent
Any tips appreciated! Thanks