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 N900.
-
 
+
-
= On N8x0 =
+
-
 
+
-
[[ToDo]]
+
-
 
+
-
= On [[Nokia N900|N900]] / Maemo =
+
== Server Setup ==
== Server Setup ==
Line 23: Line 17:
You'll need the [http://maemo.org/downloads/product/Maemo5/openvpn/ openVPN client] and the [http://maemo.org/downloads/product/Maemo5/openvpn-applet/ openVPN applet]
You'll need the [http://maemo.org/downloads/product/Maemo5/openvpn/ openVPN client] and the [http://maemo.org/downloads/product/Maemo5/openvpn-applet/ openVPN applet]
-
Create a matching client setup conf and copy it together with the client certificate, key and the ca file to the <code>/etc/openvpn/</code> directory on the device.
+
Create a matching client setup conf and copy it together with the client certificate, key and the ca file to the /etc/openvpn/ directory on the device.
The client.conf may need:
The client.conf may need:
Line 33: Line 27:
The applet will pickup any .conf files in that directory.
The applet will pickup any .conf files in that directory.
-
 
-
 
-
= N9 HARMATTAN =
 
-
 
-
Install it from N9Qt
 
-
 
-
* http://wiki.maemo.org/N9QTweak
 
-
 
-
 
-
== Env variables ==
 
-
 
-
Will be used in Client and Server side
 
-
 
-
    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"
 
-
    key="/etc/openvpn/$domain.key"
 
-
 
-
== Server Side : ==
 
-
 
-
  sudo mkdir -p /etc/openvpn
 
-
  sudo openvpn --genkey --secret "$key"
 
-
 
-
  cat<<EOF | sudo tee "$conf"
 
-
  dev $dev
 
-
  port $port
 
-
  ifconfig $server $client
 
-
  secret $key
 
-
  EOF
 
-
 
-
Launch it by hand or with service :
 
-
 
-
  sudo openvpn --config "$conf" --verb 6
 
-
 
-
 
-
== Client Side : ==
 
-
 
-
Copy Key and configure it :
 
-
 
-
  sudo mkdir -p /etc/openvpn
 
-
  ssh -t $domain \
 
-
        'sudo cat /etc/openvpn/$domain.key' \
 
-
        | sudo dd of="/etc/openvpn/$domain.key"
 
-
 
-
  cat<<EOF | sudo tee "$conf"
 
-
  remote $domain
 
-
  dev $dev
 
-
  port $port
 
-
  ifconfig $client $server
 
-
  secret $key
 
-
  persist-tun
 
-
  nobind
 
-
  EOF
 
-
 
-
Then launch it
 
-
 
-
  $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:HowTo]]
 
-
[[Category:Software]]
 
-
[[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)