pdjm 0 Posted October 18, 2020 Share Posted October 18, 2020 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! 0 Quote Link to post Share on other sites
martinayotte 666 Posted October 18, 2020 Share Posted October 18, 2020 12 hours ago, pdjm said: /usr/bin/wg-quick: line 295: iptables: command not found Did you troubleshooted why you got this error ? 0 Quote Link to post Share on other sites
pdjm 0 Posted October 18, 2020 Author Share Posted October 18, 2020 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 0 Quote Link to post Share on other sites
Werner 321 Posted October 18, 2020 Share Posted October 18, 2020 Tried installing iptables? Maybe it is missing: sudo apt-get install iptables 0 Quote Link to post Share on other sites
Igor 2104 Posted October 18, 2020 Share Posted October 18, 2020 29 minutes ago, pdjm said: In zeropi works just fine Probably you are using minimal image for S and normal image for ZeroPi? 0 Quote Link to post Share on other sites
pdjm 0 Posted October 18, 2020 Author Share Posted October 18, 2020 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? 0 Quote Link to post Share on other sites
Igor 2104 Posted October 18, 2020 Share Posted October 18, 2020 13 minutes ago, pdjm said: Is that the problem? Minimal image is there because its the only one that fits to 1GB NAND storage. If you ran system from SD, that's ofc not an issue. 0 Quote Link to post Share on other sites
Recommended Posts
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.