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 N8x0 =
 
-
[[ToDo]]
+
= on an [[Nokia N900|N900]] =
-
 
+
-
= On [[Nokia N900|N900]] / Maemo =
+
== 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
-
* http://wiki.maemo.org/N9QTweak
+
     domain="www.$USER.org" # adapt
-
 
+
     server_inet="0.0.0.0" # adapt
-
 
+
    dev="tun2"
-
== Env variables ==
+
     port="80"
-
 
+
     key="/etc/openvpn/$domain.key"
-
Will be used in Client and Server side
+
     server="10.9.8.254"
-
 
+
     client="10.9.8.1"
-
     domain="www.$USER.tld" # must be adapted to your public DNS record
+
-
     server_inet="0.0.0.0" # must be adapted to your public inet IP
+
-
     port="80" # 80 is prefered to pass firewall or 443 ?
+
-
     dev="tun2"  
+
-
     server="10.9.8.254" # can be changed
+
-
     client="10.9.8.1" # can be changed too
+
     conf="/etc/openvpn/$domain.conf"
     conf="/etc/openvpn/$domain.conf"
-
    key="/etc/openvpn/$domain.key"
 
-
== Server Side : ==
+
Server Side :
   sudo mkdir -p /etc/openvpn
   sudo mkdir -p /etc/openvpn
Line 66: Line 55:
   secret $key
   secret $key
   EOF
   EOF
-
 
-
Launch it by hand or with service :
 
-
 
   sudo openvpn --config "$conf" --verb 6  
   sudo openvpn --config "$conf" --verb 6  
 +
Client Side :
-
== Client Side : ==
+
  sudo mkdir -p /etc/openvpn
-
Copy Key and configure it :
+
    ssh -t $domain \
-
 
+
-
  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
-
Then launch it
 
   $sudo /usr/sbin/openvpn --script-security 2 --config $conf --verb 6
   $sudo /usr/sbin/openvpn --script-security 2 --config $conf --verb 6
-
 
-
 
-
== More ==
 
-
 
-
FeedBack welcome at :
 
-
 
-
http://talk.maemo.org/showthread.php?t=89703&highlight=OpenVPN&page=2
 
-
 
-
 
-
 
[[Category:Software]]
[[Category:Software]]
[[Category:HowTo]]
[[Category:HowTo]]
 +
[[Category:Software]]
[[Category:Software]]
[[Category:HowTo]]
[[Category:HowTo]]

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)