Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| vpn_client [2024/01/27 23:57] – add note in tailscale setup section to access resources behind a tailscale subnet router cs | 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 / | ||
| </ | </ | ||
- vpn_client.1706399840.txt.gz
- Last modified: 2 years ago
- by cs