Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| vpn_client [2023/07/16 03:00] – Added guide for Tailscale VPN configuration. markfeuer | vpn_client [2024/08/27 10:28] (current) – added under construction note atari | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | <WRAP center round todo> | ||
| + | Double-check for functionality. custom.sh has been depreciated. https:// | ||
| + | </ | ||
| + | |||
| ====== OpenVPN client ====== | ====== OpenVPN client ====== | ||
| You can easily connect your Batocera to a VPN, as we ship OpenVPN with the distribution. However, it requires some manual configuration, | You can easily connect your Batocera to a VPN, as we ship OpenVPN with the distribution. However, it requires some manual configuration, | ||
| - | In this example here, I will be connecting a Batocera 5.27 client to a [[https:// | + | In this example here, I will be connecting a Batocera 5.27+ client to a [[https:// |
| ===== OpenVPN configuration ===== | ===== OpenVPN configuration ===== | ||
| Line 49: | Line 53: | ||
| #!/bin/bash | #!/bin/bash | ||
| - | if test " | + | if test " |
| then | then | ||
| - | | + | |
| + | elif test " | ||
| + | then | ||
| + | killall -9 openvpn | ||
| + | else | ||
| + | curl ipinfo.io 2>/ | ||
| fi | fi | ||
| - | openvpn / | + | |
| </ | </ | ||
| where ''< | where ''< | ||
| - | ===== Tips and tricks ===== | + | This '' |
| - | + | ||
| - | * You can verify that you are correctly connected to the VPN by checking your public IP address before and after '' | + | |
| - | * If you want to start up your VPN connection every time Batocera boots, you can add the command '' | + | |
| ===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
| Line 82: | Line 88: | ||
| #!/bin/bash | #!/bin/bash | ||
| - | if test " | + | if test " |
| then | then | ||
| - | | + | |
| + | elif test " | ||
| + | then | ||
| + | killall -9 openvpn | ||
| + | else | ||
| + | curl ipinfo.io 2>/ | ||
| fi | fi | ||
| - | (openvpn / | ||
| </ | </ | ||
| Line 99: | Line 109: | ||
| #!/bin/bash | #!/bin/bash | ||
| - | if test " | + | if test " |
| then | then | ||
| - | | + | if [ ! -d /dev/net ]; then |
| - | fi | + | mkdir -p /dev/net |
| - | + | mknod / | |
| - | if [ ! -d /dev/net ]; then | + | chmod 600 / |
| - | mkdir -p /dev/net | + | fi |
| - | mknod / | + | openvpn / |
| - | chmod 600 / | + | elif test " |
| + | then | ||
| + | killall -9 openvpn | ||
| + | else | ||
| + | curl ipinfo.io 2>/ | ||
| fi | fi | ||
| - | openvpn / | ||
| </ | </ | ||
| Line 117: | Line 130: | ||
| ====== Tailscale VPN configuration ====== | ====== Tailscale VPN configuration ====== | ||
| - | While not packaged with Batocera by default, the Tailscale VPN service (which is essentially a fancy wrapper for Wireguard and has a free tier) can be added and functions on both the x86 and ARM-based versions of Batocera. This can provide you with benefits including [[netplay|Netplay with Retroarch cores]] and multiplayer on PPSSPP standalone without needing port forwarding, as well as the ability to SSH or SCP into your device from another network. There are some extra steps if you are on an ARM-based single-board computer, but it is confirmed working on Batocera versions as early as V31 and tested with both 32-bit and 64-bit boards (the Odroid | + | While not packaged with Batocera by default, the Tailscale VPN service (which is essentially a fancy wrapper for Wireguard and has a free tier) can be added and functions on both the x86 and ARM-based versions of Batocera. This can provide you with benefits including [[netplay|Netplay with Retroarch cores]] and multiplayer on PPSSPP standalone without needing port forwarding, as well as the ability to SSH or SCP into your device from another network. There are some extra steps if you are on an ARM-based single-board computer, but it is confirmed working on Batocera versions as early as V31 and tested with both 32-bit and 64-bit boards (the Odroid |
| * Download a Tailscale build from the static binaries section (if using an SBC, grab the one that matches your CPU architecture. ARM for the tested XU4 and ARM64 for the N2L): https:// | * Download a Tailscale build from the static binaries section (if using an SBC, grab the one that matches your CPU architecture. ARM for the tested XU4 and ARM64 for the N2L): https:// | ||
| Line 132: | Line 145: | ||
| / | / | ||
| </ | </ | ||
| + | |||
| + | * **IF YOU ARE ACCESSING RESOURCES BEHIND A TAILSCALE SUBNET ROUTER:** By default, Tailscale clients specifically for Linux do not accept routes advertised by subnet routers. If you wish to access resources in the subnet router' | ||
| + | * Using the above script block as a reference, the last line will look like this if you want to enable this feature: | ||
| + | |||
| + | < | ||
| + | / | ||
| + | </ | ||
| * **IF YOU ARE USING AN ARM SBC:** You need to use WinSCP or another program with this function to check that the tailscale and tailscaled files in / | * **IF YOU ARE USING AN ARM SBC:** You need to use WinSCP or another program with this function to check that the tailscale and tailscaled files in / | ||
- vpn_client.1689476438.txt.gz
- Last modified: 3 years ago
- by markfeuer