This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
linux:ubuntu:openvpn [2018/02/21 13:49] – lunetikk | linux:ubuntu:openvpn [2019/01/21 12:57] – lunetikk | ||
---|---|---|---|
Line 109: | Line 109: | ||
</ | </ | ||
- | ===== Connecting | + | ===== Connecting |
Edit the file "/ | Edit the file "/ | ||
Line 134: | Line 134: | ||
< | < | ||
- | Check if your connection is up with ifconfig and ping your gateway (openvpn | + | Check if your connection is up with ifconfig and ping your gateway (OpenVPN |
< | < | ||
# ifconfig | # ifconfig | ||
Line 146: | Line 146: | ||
</ | </ | ||
+ | ===== Connecting an Ubuntu 16 as client ===== | ||
+ | Install the client | ||
+ | < | ||
+ | apt-get update | ||
+ | apt-get install openvpn | ||
+ | </ | ||
+ | |||
+ | Copy the .ovpn file from your server to your client into / | ||
+ | Rename it to .conf, for example client.conf | ||
+ | < | ||
+ | mv client.ovpn client.conf | ||
+ | </ | ||
+ | |||
+ | If you run OpenVPN with systemd you need to configure your configfiles in "/ | ||
+ | Add your filename (client) if you only want the single file to be recognized, add " | ||
+ | < | ||
+ | AUTOSTART=" | ||
+ | #or | ||
+ | AUTOSTART=" | ||
+ | |||
+ | Reload the "/ | ||
+ | systemctl daemon-reload | ||
+ | |||
+ | Restart the OpenVPN | ||
+ | < | ||
+ | |||
+ | Check if your connection is up with ifconfig and ping your gateway (OpenVPN server) | ||
+ | < | ||
+ | # ifconfig | ||
+ | tun0 Link encap: | ||
+ | inet Adresse: | ||
+ | |||
+ | # ping 10.8.0.1 | ||
+ | PING 10.8.0.1 (10.8.0.1) 56(84) bytes of data. | ||
+ | 64 bytes from 10.8.0.1: icmp_seq=1 ttl=64 time=38.6 ms | ||
+ | 64 bytes from 10.8.0.1: icmp_seq=2 ttl=64 time=37.9 ms | ||
+ | </ | ||
+ | |||
+ | ===== Raspbian 9 as client ===== | ||
+ | |||
+ | Install the client | ||
+ | < | ||
+ | apt-get update | ||
+ | apt-get install openvpn | ||
+ | </ | ||
+ | |||
+ | Copy the .ovpn file from your server to your client into / | ||
+ | Rename it to .conf, for example client.conf | ||
+ | < | ||
+ | mv client.ovpn client.conf | ||
+ | </ | ||
+ | |||
+ | If you run OpenVPN with systemd you need to configure your configfiles in "/ | ||
+ | Add your filename (client) if you only want the single file to be recognized, add " | ||
+ | < | ||
+ | AUTOSTART=" | ||
+ | #or | ||
+ | AUTOSTART=" | ||
+ | |||
+ | Reload the "/ | ||
+ | systemctl daemon-reload | ||
+ | |||
+ | Restart the OpenVPN | ||
+ | < | ||
+ | |||
+ | Check if your connection is up with ifconfig and ping your gateway (OpenVPN server) | ||
+ | < | ||
+ | # ifconfig | ||
+ | tun0 Link encap: | ||
+ | inet Adresse: | ||
+ | |||
+ | # ping 10.8.0.1 | ||
+ | PING 10.8.0.1 (10.8.0.1) 56(84) bytes of data. | ||
+ | 64 bytes from 10.8.0.1: icmp_seq=1 ttl=64 time=38.6 ms | ||
+ | 64 bytes from 10.8.0.1: icmp_seq=2 ttl=64 time=37.9 ms | ||
+ | </ |