This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| openvpn_extra_connection [2022/09/08 10:39] – created rs232 | openvpn_extra_connection [2025/08/23 00:08] (current) – hogwild | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | There are some rare cases where you might want to add more connections (Server/client) that the GUI allows you to define. | + | ====== Additional OpenVPN |
| - | First of all hyou should question yourself if you're using the right technology as for numerous site-to-site connection you'll find tinc a better/ | + | |
| - | That said find here an example that allows | + | There are rare situations when you might want to add more OpenVPN connections (Server/ |
| + | First, consider whether you're using the right technology. For multiple site-to-site connections, | ||
| + | \\ | ||
| + | |||
| + | If you still want additional OpenVPN connections, | ||
| + | |||
| + | \\ | ||
| + | |||
| + | <code -> | ||
| mkdir / | mkdir / | ||
| cd / | cd / | ||
| Line 10: | Line 17: | ||
| cd / | cd / | ||
| echo " | echo " | ||
| - | ifconfig | + | ifconfig |
| proto udp | proto udp | ||
| port 1195 | port 1195 | ||
| Line 21: | Line 28: | ||
| status status | status status | ||
| script-security 2 | script-security 2 | ||
| - | route 1.1.1.1 255.255.255.0 | + | route 10.0.3.1 255.255.255.0 |
| fast-io | fast-io | ||
| persist-tun" | persist-tun" | ||
| chmod 777 / | chmod 777 / | ||
| - | sleep 10 | + | sleep 1 |
| cp / | cp / | ||
| / | / | ||
| + | </ | ||
| + | |||
| + | \\ \\ | ||
| + | |||
| + | |||