Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

Openvpn
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Openvpn
14th Feb, 2015, 08:50 AM
Post: #1
Cok3 Offline
Registered
Posts: 2
Joined: Feb 2015
Reputation: 0
Openvpn
Hi folks,

sry this was just a german tut that i postet in my thread...

all what where i need help is how can i configure openvpn setup in xbian
what have i do or what is wrong in my setup

on my old raspberry @ raspbmc i used just this way and it worked Smile

Code:
sudo apt-get update && apt-get upgrade

sudo apt-get install openvpn

sudo nano /etc/openvpn/VPN.conf ( source of auth file editing)
sudo nano /etc/openvpn/Zert.crt ( same here)
sudo nano /etc/openvpn/auth.txt  (  Username & Passwort )

than i edit VPN.conf for the user & password loaction

at last i configured the autostart

sudo nano /etc/default/openvpn

AUTOSTART="VPN"

but it doesnt work, in ssh the console says starting virtual network, but vpn doesnt connect Sad
have i forget a package ? maybe a conf package or something like that, sry i dont know much abot linux

hope u can help me

big thx

Moderation - Old original post in german
Spoiler (Click to View)
I used with my old pi raspbmc before, now i got a cubox ip4 and i decided to install the latest imx6 image.
Xbmc runs great, fast and fluid but i got a little prob

I used to have openvpn @ autostart of raspbmc, but that dont work on my cubox Sad

Sorry for my bad english and i also a noob of linux, can u help me ?

I used this way

Sry its a german tut

sudo apt-get update && apt-get upgrade


Danach laden wir OpenVPN herunter

sudo apt-get install openvpn

Von euerem VPN Anbieter bekommt ihr in den meisten Fällen eine .ovpn/.conf und eine .crt Datei.

Diese müssen wir jetzt nach /etc/openvpn kopieren.
Dazu erstellt ihr eine neue .conf Datei
Code: Alles markieren
sudo nano /etc/openvpn/VPN.conf
Hier fügt ihr den Inhalt der .conf/.ovpn Datei ein! (Mit CTRL-O und Enter speichern, und dann mit CTRL-X schliessen.)

Dasselbe mit der .crt Datei

sudo nano /etc/openvpn/Zert.crt
Hier fügt ihr nun den Inhalt der .crt Datei ein! (Mit CTRL-O und Enter speichern, und dann mit CTRL-X schliessen.)



Als nächstes erstellen wir eine Textdatei in der wir die Zugangsdaten für die VPN-Verbindung speichern.

sudo nano /etc/openvpn/auth.txt

In die Datei kommen dann
Code: Alles markieren
Username
Passwort

Das ganze mit CTRL-O und danach Enter speichern und mit CTRL-C schliessen.

Jetzt öffnen wir die .conf Datei (Achtung! Den richtigen Dateinamen einsetzen)

sudo nano /etc/openvpn/VPN.conf


Diese sollte dann so ähnlich aussehen (es kann auch z.B. ein Logo vom VPN Anbieter haben):

client
dev tun
auth-user-pass [Pfad zu der Datei mit den Login-Daten]
proto udp
remote [IP Zensiert]
resolv-retry infinite
nobind
persist-key
persist-tun
comp-lzo
ca [Pfad zu der .crt Datei]
verb 3

Die Pfade in den eckigen Klammern müssen wir nun abändern!

Pfad zur Datei mit den Login-Daten(wenn ihr alles wie im tut beschrieben gemacht habt): /etc/openvpn/auth.txt
Pfad zu der .crt Datei: /etc/openvpn/Zert.crt
Und wieder Wird die Datei mit CTRL-O, ENTER und CTRL-X gespeichert.

Jetzt muss die Config noch in /etc/default/openvpn eintragen.

sudo nano /etc/default/openvpn

Am ende der Datei fügt ihr nun folgendes ein. (Zwischen den Gänsefüsschen muss der Name der .conf Datei stehen die gestartet werden soll)

AUTOSTART="VPN"

Und wieder Wird die Datei mit CTRL-O, ENTER und CTRL-X gespeichert.

Jetzt könnt ihr entweder den daemon selber starten

sudo /etc/init.d/openvpn start
oder den Pi neustarten (dann wird das Skript automatisch ausgeführt)
sudo shutdown -r now

But my cubox doesnt connect with vpn.
What is wrong, need i another tut for xbian?

Big thx for ur help


All i want is an autostart connection with openvpn Smile

Greetz
Find all posts by this user
Quote this message in a reply
26th Feb, 2015, 01:04 AM
Post: #2
Cok3 Offline
Registered
Posts: 2
Joined: Feb 2015
Reputation: 0
RE: Openvpn
can't nobody help me ?

i just want to install openvpn and used it in autostart?

is that not possible in xbian?

..for using netflix in the us ..for example ?

Sad i cant believe that no xbian are interested in that configuration..

hope for some good news Smile

greetz
Find all posts by this user
Quote this message in a reply
26th Feb, 2015, 04:08 PM
Post: #3
f1vefour Offline
Administrator
******
Posts: 1,342
Joined: Mar 2013
Reputation: 58
RE: Openvpn
Try:

Terminal

sudo modprobe tun

Please read rules and do a search before you post! | FAQs | How to post log file? | Can't find an answer? Contact us.
Visit this user's website Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 10th May, 2025, 05:43 PM Powered By MyBB, © 2002-2025 MyBB Group.