VPN configuration
Last updated
Was this helpful?
Last updated
Was this helpful?
is a modern VPN architecture with clients most operating systems. It is typically simpler to configure than other VPN solutions, and offers exceptional speeds and performance. This makes it the preferred choice for VPN networking on embedded devices like the Packet Squirrel.
Using a Packet Squirrel as a Wireguard client of course requires a Wireguard server on a public IP address reachable by the Packet Squirrel network.
For more information about configuring a Wireguard server, we recommend the and third-party documentation like the on Wireguard.
Some commercial VPN services may also offer Wireguard options.
Configuring the Packet Squirrel to be a Wireguard VPN client can be done via the WIREGUARD
command. This command simplifies the process and works with the uci
and NETMODE
commands.
The WIREGUARD
command is configured by several environment variables, and should be configured before NETMODE
is called.
WG_KEY
Wireguard client private key (generated by wg genkey
)
WG_ADDR
Wireguard client IPv4 address
WG_ADDR6
Wireguard client IPv6 address (optional)
WG_PUB
Wireguard server public key
WG_PSK
Wireguard server pre-shared key (optional)
WG_SERV
Wireguard server address
WG_PORT
Wireguard server port
The WIREGUARD
command should be called in a payload before the NETMODE
command, for example:
Using a Packet Squirrel as an OpenVPN client of course requires an OpenVPN server on a public IP address reachable by the Packet Squirrel network.
Some commercial VPN services may also offer OpenVPN options.
You will need an OpenVPN configuration file including the embedded certificates to configure the Packet Squirrel OpenVPN client.
OpenVPN on the Packet Squirrel is configured by placing the OpenVPN configuration in /tmp/openvpn.conf
and starting the OpenVPN service.
This should be done after the NETMODE
command; the OpenVPN client must be able to contact the server!
is another common VPN system with support for essentially all operating systems. It typically is slightly slower (about 50% the speed of Wireguard) but is well supported and documented.
For more information about configuring an OpenVPN server, we recommend the , and the configuration guide.