Wireguard vpn install zero4k

Hacked

Member
I have installed wireguard vpn on a zero4k with openbh 5.1
What are commands for start, stop, autostart, status in telnet?
wg0.conf is located in /etc/wireguard/

login as: root
root@192.168.0.106's password:
root@vuzero4k:~# opkg install wireguard-tools
kernel-module-wireguard: unsatisfied recommendation for kernel-module-xt-hashlimit
Installing kernel-module-ip6-udp-tunnel-4.1.20-1.9 (4.1.20-oea4.1) on root.
Downloading http://feeds2.openbh.net/openbh/5.1...nnel-4.1.20-1.9_4.1.20-oea4.1-r7_vuzero4k.ipk.
Installing kernel-module-udp-tunnel-4.1.20-1.9 (4.1.20-oea4.1) on root.
Downloading http://feeds2.openbh.net/openbh/5.1...nnel-4.1.20-1.9_4.1.20-oea4.1-r7_vuzero4k.ipk.
Installing kernel-module-wireguard-4.1.20-1.9 (1.0.20211208) on root.
Downloading http://feeds2.openbh.net/openbh/5.1...guard-4.1.20-1.9_1.0.20211208-r0_vuzero4k.ipk.
Installing wireguard-tools (1.0.20210914) on root.
Downloading http://feeds2.openbh.net/openbh/5.1/vuzero4k/vuzero4k/wireguard-tools_1.0.20210914-r0_vuzero4k.ipk.
Configuring kernel-module-ip6-udp-tunnel-4.1.20-1.9.
Configuring kernel-module-udp-tunnel-4.1.20-1.9.
Configuring kernel-module-wireguard-4.1.20-1.9.
Configuring wireguard-tools.
root@vuzero4k:~# opkg install resolvconf
Package openresolv (3.5.2-r0) installed in root is up to date.

root@vuzero4k:~# opkg list |grep wireguard
kernel-module-wireguard - 1.0.20211208-r0 - WireGuard is an extremely simple yet fast and modern VPN
kernel-module-wireguard-4.1.20-1.9 - 1.0.20211208-r0 - wireguard kernel module
wireguard-module-dbg - 1.0.20211208-r0 - WireGuard is an extremely simple yet fast and modern VPN - Debugging files
wireguard-module-dev - 1.0.20211208-r0 - WireGuard is an extremely simple yet fast and modern VPN - Development files
wireguard-tools - 1.0.20210914-r0 - WireGuard is an extremely simple yet fast and modern VPN
wireguard-tools-bash-completion - 1.0.20210914-r0 - WireGuard is an extremely simple yet fast and modern VPN
wireguard-tools-dbg - 1.0.20210914-r0 - WireGuard is an extremely simple yet fast and modern VPN - Debugging files
wireguard-tools-dev - 1.0.20210914-r0 - WireGuard is an extremely simple yet fast and modern VPN - Development files
wireguard-tools-doc - 1.0.20210914-r0 - WireGuard is an extremely simple yet fast and modern VPN - Documentation files
root@vuzero4k:~#
 

Hacked

Member
See here if you help....
Does not help me much, this you link to is intended for ubuntu and dreambox, with these it is plug and play.
Must be other commands for vu +.
This works but helps me little, can not start vpn:
root@vuzero4k:~# wg-quick up wg0
[#] ip link add wg0 type wireguard
[#] wg setconf wg0 /dev/fd/63
[#] ip -6 address add fd03:1337::237/64 dev wg0
[#] ip -4 address add 10.13.37.237/24 dev wg0
[#] ip link set mtu 1280 up dev wg0
[#] resolvconf -a wg0 -m 0 -x
/sbin/resolvconf: illegal option -- x
[#] wg set wg0 fwmark 51820
[#] ip -6 route add ::/0 dev wg0 table 51820
ip: invalid argument '51820' to 'table'
[#] resolvconf -d wg0 -f
[#] ip link delete dev wg0
root@vuzero4k:~#
 

zeberil

Active member
I think you have to start VPN in the plugin itself, that's if you have everything well configured...

Automatic Start: On (Green key), so that VPN connects to the box.

Start VPN on the blue key, the right -type logo that is in red will be green...
 

Hacked

Member
I think you have to start VPN in the plugin itself, that's if you have everything well configured...

Automatic Start: On (Green key), so that VPN connects to the box.

Start VPN on the blue key, the right -type logo that is in red will be green...
You are probably right about that but what you are talking about is openvpn (Openvpn.manager)
I have installed wireguard from openbh server and does not appear as a separate plugin, can only control this with telnet.
On Dreambox I can choose between openvpn and wireguard in the same plugin but do not think it is made as an ipk.file for vu+,
ipk.fil is for openvpn only.
 

zeberil

Active member
This plugin is not available on OBH Server, at least in the last image (5.1). Maybe you find him in Py2 images... and it will be for being at OBH Py3 not to work, I don't know...

In a certain image where the plugin can be obtained, but it will be Py2.

2MUHuuZ.png
 

Hacked

Member
When performing an opkg install,
This is from openbh or not?
You see in post # 2 that is loaded from openbh 5.1 feeds.
 

zeberil

Active member
It's not from OBH's feeds... I opened the feeds at OBH here and I didn't find it, it may be to discharge by command line.

But is it a compatible plugin for Py3?
 
Top