Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3260

System and Network configuration • Need help in getting Wireguard to work

$
0
0
I am not understanding something correctly here.
What I want to do is set up Wireguard on a computer on my network so I can access my network when away from home.
I have read through many tutorials and various web pages trying to get this work.
All of my keys seem to be fine because I can make a wireguard connection.
What I am not understanding is what needs to be in the conf file to let me talk to the computers on my network when I am not at home.
Here is some info to try to help. Let me know if there is other things needed.
Server is a Pi400 running Debian testing. Pleas don't lecture me on using testing for this. I understand the risks. It should not affect me at this time.
Local lan is 192.168.68.0/24

Here is my current server and peer conf files.
Server:

Code:

[Interface]PrivateKey = <not shown>Address = 10.8.0.1/24, fd24:609a:6c18::1/64ListenPort = 51820SaveConfig = truePostUp = ufw route allow in on wg0 out on wlan0PostUp = iptables -t nat -I POSTROUTING -o wlan0 -j MASQUERADEPostUp = ip6tables -t nat -I POSTROUTING -o wlan0 -j MASQUERADEPreDown = ufw route delete allow in on wg0 out on wlan0PreDown = iptables -t nat -D POSTROUTING -o wlan0 -j MASQUERADEPreDown = ip6tables -t nat -D POSTROUTING -o wlan0 -j MASQUERADE
Peer:

Code:

Interface]PrivateKey = <not shown>Address = 10.8.0.0/24#Address = fd24:609a:6c18::**2**/64[Peer]PublicKey = <not shown>AllowedIPs = 192.168.68.0/24, 10.8.0.0/24, fd24:609a:6c18::/64Endpoint = 174.211.168.99:51820
I'm confused on what the Endpoint should be and the Allowed IPs .
I think that is where I am wrong.

Statistics: Posted by dcihon — 2024-07-22 13:50 — Replies 0 — Views 1



Viewing all articles
Browse latest Browse all 3260

Trending Articles