Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Raspberry Pi as wireguard client not working :(

Featured Replies

Hi everybody,

I'm stuck here: I can't get a wireguard client on my raspberry pi to work.
I've set up some other clients - all were straight forward: read the conf file with the wireguard client, connect, done.

Now what I've done on my raspberry pi:

 

Set up a new wireguard peer (remote access to server) in the unraid VPN settings, unzipped the zip file and copied the .conf file to my raspi.

On my raspi:
sudo apt install wireguard
copy .conf file to /etc/wireguard/wg0.conf
 

phil@audrey:~ $ sudo wg-quick up wg0
[#] ip link add wg0 type wireguard
[#] wg setconf wg0 /dev/fd/63
[#] ip -4 address add 10.253.1.7/32 dev wg0
[#] ip link set mtu 1412 up dev wg0
[#] ip -4 route add 192.168.187.16/32 dev wg0
[#] ip -4 route add 10.253.1.1/32 dev wg0


Now this looks fine to me. But then:
 

phil@audrey:~ $ ping -c 3 10.253.1.1
PING 10.253.1.1 (10.253.1.1) 56(84) bytes of data.

--- 10.253.1.1 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2040ms


Now I'm no networking whiz, so this is as far as debugging this went:

Pinging myself with the 10.* IP address works:
 

phil@audrey:~ $ ping -c 3 10.253.1.7
PING 10.253.1.7 (10.253.1.7) 56(84) bytes of data.
64 bytes from 10.253.1.7: icmp_seq=1 ttl=64 time=0.169 ms
64 bytes from 10.253.1.7: icmp_seq=2 ttl=64 time=0.159 ms
64 bytes from 10.253.1.7: icmp_seq=3 ttl=64 time=0.128 ms

--- 10.253.1.7 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2039ms
rtt min/avg/max/mdev = 0.128/0.152/0.169/0.017 ms


some more:
 

phil@audrey:~ $ ifconfig wg0
wg0: flags=209<UP,POINTOPOINT,RUNNING,NOARP>  mtu 1412
        inet 10.253.1.7  netmask 255.255.255.255  destination 10.253.1.7
        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 1000  (UNSPEC)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 26  bytes 3848 (3.7 KiB)
        TX errors 0  dropped 10 overruns 0  carrier 0  collisions 0
        
phil@audrey:~ $ sudo wg
interface: wg0
  public key: (hidden by me)
  private key: (hidden)
  listening port: 45918

peer: (hidden by me)
  preshared key: (hidden)
  endpoint: [2001:16b8:a02f:a8eb:2e3a:fdff:fec7:1d80]:51968
  allowed ips: 10.253.1.1/32, 192.168.187.16/32
  transfer: 0 B received, 3.76 KiB sent

phil@audrey:~ $ ip address show dev wg0
5: wg0: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1412 qdisc noqueue state UNKNOWN group default qlen 1000
    link/none 
    inet 10.253.1.7/32 scope global wg0
       valid_lft forever preferred_lft forever


Now I'm stuck. Any help is appreciated.



 

Edited by motophil

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.