Cannot connect to Wireguard with Dietpi

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
jebsjeun
Posts: 1
Joined: Wed May 13, 2020 4:20 pm

Cannot connect to Wireguard with Dietpi

Post by jebsjeun »

Hi, I'm new to both DietPi and Wireguard. I set them up but whenever I try to connect my Ubuntu OS to Wireguard through DietPi I get the following error

[#] ip link add vpn type wireguard
[#] wg setconf vpn /dev/fd/63
[#] ip -4 address add 10.x.x.x/24 dev vpn
[#] ip link set mtu 1420 up dev vpn
[#] sysctl net.ipv4.conf.vpn.forwarding=1 net.ipv4.conf.$(sed -n 3p /DietPi/dietpi/.network).forwarding=1
sed: can't read /DietPi/dietpi/.network: No such file or directory
net.ipv4.conf.vpn.forwarding = 1
sysctl: separators should not be repeated: ..forwarding
sysctl: cannot stat /proc/sys/net/ipv4/conf//forwarding: No such file or directory
[#] ip link delete dev vpn


What am i doing wrong?
User avatar
Joulinar
Posts: 2064
Joined: Sat Nov 16, 2019 12:49 am

Re: Cannot connect to Wireguard with Dietpi

Post by Joulinar »

Hi,

many thanks for your report. On which system you are going to execute the commands? Or where do you see this massages? What version of DietPi you are running?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply