this post was submitted on 30 Dec 2023
1 points (100.0% liked)

WireGuard

3 readers
1 users here now

WireGuard - a fast, modern, secure VPN Tunnel.

founded 1 year ago
MODERATORS
 
This is an automated archive.

The original was posted on /r/wireguard by /u/kiciner on 2023-12-30 17:16:26+00:00.


I asked this on r/ubuntu but this might be a better spot My VPN provider is limiting WireGuard connections to 1, any IP is allowed but you only get single config

so I got VPS for boxing day (ubuntu server) and been messing with this for a bit

I am trying to connect to VPN from my VPS server, but at the same time have VPS act as a wireguard server and re-share my VPN connection

So I have /etc/wireguard/wg0.conf acting as my server

[Interface]
Address = 10.7.0.1/24
PrivateKey = 
ListenPort = 51820

# BEGIN_PEER JD
[Peer]
PublicKey = 
PresharedKey = 
AllowedIPs = 10.7.0.2/32
# END_PEER JD

and /etc/wireguard/wg-client.conf as my client where I entered information provided by VPN

PrivateKey = 
Address = 10.2.72.50/32
DNS = 1.1.1.1
MTU = 1384

[Peer]
PublicKey = 
Endpoint = server:port
AllowedIPs = 0.0.0.0/0
PersistentKeepalive = 25

if I bring wg0 up, I can connect fine I'm assigned IP address of the server

but as soon as I bring up wg-client, I can no longer access server via SSH, wireguard or any other service ..ping stops working as well

net.ipv4.ip_forward is set to 1 in /etc/sysctl.conf

can this be done, what am I missing?

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here