Editing OpenVPN
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
This page describes setting up openVPN | This page describes setting up openVPN | ||
- | |||
- | + | = on an [[Nokia N900|N900]] = | |
- | + | ||
- | = | + | |
== Server Setup == | == Server Setup == | ||
Line 33: | Line 30: | ||
The applet will pickup any .conf files in that directory. | The applet will pickup any .conf files in that directory. | ||
- | |||
= N9 HARMATTAN = | = N9 HARMATTAN = | ||
Line 39: | Line 35: | ||
Install it from N9Qt | Install it from N9Qt | ||
- | + | domain="www.$USER.org" # adapt | |
- | + | server_inet="0.0.0.0" # adapt | |
- | + | dev="tun2" | |
- | + | port="80" | |
- | + | key="/etc/openvpn/$domain.key" | |
- | + | server="10.9.8.254" | |
- | + | client="10.9.8.1" | |
- | domain="www.$USER. | + | |
- | server_inet="0.0.0.0" # | + | |
- | port="80" | + | |
- | + | ||
- | server="10.9.8.254" | + | |
- | client="10.9.8.1" | + | |
conf="/etc/openvpn/$domain.conf" | conf="/etc/openvpn/$domain.conf" | ||
- | |||
- | + | Server Side : | |
sudo mkdir -p /etc/openvpn | sudo mkdir -p /etc/openvpn | ||
Line 66: | Line 55: | ||
secret $key | secret $key | ||
EOF | EOF | ||
- | |||
- | |||
- | |||
sudo openvpn --config "$conf" --verb 6 | sudo openvpn --config "$conf" --verb 6 | ||
+ | Client Side : | ||
- | + | sudo mkdir -p /etc/openvpn | |
- | + | ssh -t $domain \ | |
- | + | ||
- | + | ||
- | + | ||
'sudo cat /etc/openvpn/$domain.key' \ | 'sudo cat /etc/openvpn/$domain.key' \ | ||
| sudo dd of="/etc/openvpn/$domain.key" | | sudo dd of="/etc/openvpn/$domain.key" | ||
Line 91: | Line 75: | ||
EOF | EOF | ||
- | |||
$sudo /usr/sbin/openvpn --script-security 2 --config $conf --verb 6 | $sudo /usr/sbin/openvpn --script-security 2 --config $conf --verb 6 | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
[[Category:Software]] | [[Category:Software]] | ||
[[Category:HowTo]] | [[Category:HowTo]] | ||
+ | |||
[[Category:Software]] | [[Category:Software]] | ||
[[Category:HowTo]] | [[Category:HowTo]] |
Learn more about Contributing to the wiki.