Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

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.

Trying to set up a wireguard server on rock pi S

Featured Replies

Hi

 

Trying to use a rock pi S board as a wireguard server I get this problem:

 

pedro@rockpi-s:~$ sudo wg-quick up wg0
[sudo] password for pedro:
[#] ip link add wg0 type wireguard
[#] wg setconf wg0 /dev/fd/63
[#] ip -4 address add 10.9.0.1/24 dev wg0
[#] ip link set mtu 1420 up dev wg0
[#] resolvconf -a tun.wg0 -m 0 -x
/etc/resolvconf/update.d/libc: Warning: /etc/resolv.conf is not a symbolic link to /run/resolvconf/resolv.conf
[#] iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
/usr/bin/wg-quick: line 295: iptables: command not found
[#] resolvconf -d tun.wg0 -f
/etc/resolvconf/update.d/libc: Warning: /etc/resolv.conf is not a symbolic link to /run/resolvconf/resolv.conf
[#] ip link delete dev wg0
pedro@rockpi-s:~$

 

The config file I use:

 

[Interface]
Address = 10.9.0.1/24
ListenPort = 51820
DNS = 1.1.1.1
PrivateKey = xxxxxxxxxxxxx

PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE

[Peer]
#Peer-1
PublicKey = xxxxxxxxxxxxxxxx
AllowedIPs = 10.9.0.2/32
#PersistentkeepAlive = 60

 

and this is my armbianmonitor log:

 

https://cl1p.net/uqzugurbasvlt

 

With my other board, a zeropi board, wireguard is working ok, but not with the rock pi, is this related to download page saying it´s a minimal legacy kernel?

 

Thanks!

 

 

  • Author
1 hour ago, martinayotte said:

Did you troubleshooted why you got this error ?

No, I don't know how, only happens on the rock pi, in a fresh image, no changes made in the system. In zeropi works just fine

Tried installing iptables? Maybe it is missing: sudo apt-get install iptables

  • Author
1 hour ago, Igor said:


Probably you are using minimal image for S and normal image for ZeroPi?

Yes that's right, but i think there is no normal image for rock pi S. Is that the problem?

Guest
This topic is now closed to further replies.

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.