float
client
dev tap
proto tcp
nobind
; Cert
ca /etc/openvpn/keys/ca.crt
ns-cert-type server
cipher BF-CBC
;Host
remote connect.swissvpn.net [COLOR=#ff0000]443[/COLOR] #[COLOR=#0000ff]was muss hier für ein port rein???[/COLOR]
#habe den Openvpnport 1194 auch schon probiert
resolv-retry infinite
;auth
auth-user-pass passwort.txt
persist-key
persist-tun
comp-lzo
verb 2
Netzwerk: 10.8.0.0
Subnetzmaske: 255.255.255.0
Gateway: 192.168.0.119 #Die IP des ThinPC
./build-key-server CE3-SERVER
./build-key Razor78
dev tun
client
proto tcp-client
remote connect-openvpn.swissvpn.net 443
ca ca.crt
auth-user-pass
reneg-sec 86400
ns-cert-type server
apt-get remove --purge openvpn
apt-get install openvpn
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Vorgeschlagene Pakete:
resolvconf
Die folgenden NEUEN Pakete werden installiert:
openvpn
0 aktualisiert, 1 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen noch 0 B von 517 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 1.139 kB Plattenplatz zusätzlich benutzt.
Vorkonfiguration der Pakete ...
Vormals nicht ausgewähltes Paket openvpn wird gewählt.
(Lese Datenbank ... 32101 Dateien und Verzeichnisse sind derzeit installiert.)
Entpacken von openvpn (aus .../openvpn_2.2.1-8+deb7u2_i386.deb) ...
Trigger für man-db werden verarbeitet ...
openvpn (2.2.1-8+deb7u2) wird eingerichtet ...
[ ok ] Restarting virtual private network daemon.:.
root@CE3-Server:~#
cp /usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz /etc/openvpn/
gunzip /etc/openvpn/server.conf.gz
cp -r /usr/share/doc/openvpn/examples/easy-rsa/2.0 /etc/openvpn/easy-rsa2
cd /etc/openvpn/easy-rsa2/
root@CE3-Server:/etc/openvpn/easy-rsa2#
nano vars
export KEY_COUNTRY="DE"
export KEY_PROVINCE="[COLOR=#ff0000]XX[/COLOR]"
export KEY_CITY="[COLOR=#ff0000]XXXX[/COLOR]"
export KEY_ORG="CE3-SERVER"
export KEY_EMAIL="[COLOR=#ff0000]XXX[/COLOR]@adresse.de"
mkdir keys
source ./vars
NOTE: If you run ./clean-all, I will be doing a rm -rf on /etc/openvpn/easy-rsa2/keys
root@CE3-Server:/etc/openvpn/easy-rsa2#
./clean-all
./build-ca
Generating a 1024 bit RSA private key
......++++++
.................++++++
writing new private key to 'ca.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [DE]:
State or Province Name (full name) [NI]:
Locality Name (eg, city) [Brake]:
Organization Name (eg, company) [CE3-SERVER]:
Organizational Unit Name (eg, section) [changeme]:
Common Name (eg, your name or your server's hostname) [changeme]:
Name [changeme]:
Email Address [mail@host.domain]:
root@CE3-Server:/etc/openvpn/easy-rsa2#
./build-key-server CE3-SERVER
Generating a 1024 bit RSA private key
....++++++
.............++++++
writing new private key to 'CE3-SERVER.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [DE]:
State or Province Name (full name) [NI]:
Locality Name (eg, city) [Brake]:
Organization Name (eg, company) [CE3-SERVER]:
Organizational Unit Name (eg, section) [changeme]:
Common Name (eg, your name or your server's hostname) [CE3-SERVER]:
Name [changeme]:
Email Address [mail@host.domain]:
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:
Using configuration from /etc/openvpn/easy-rsa2/openssl-1.0.0.cnf
Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
countryName :PRINTABLE:'DE'
stateOrProvinceName :PRINTABLE:'NI'
localityName :PRINTABLE:'Brake'
organizationName :PRINTABLE:'CE3-SERVER'
organizationalUnitName:PRINTABLE:'changeme'
commonName :PRINTABLE:'CE3-SERVER'
name :PRINTABLE:'changeme'
emailAddress :IA5STRING:'mail@host.domain'
Certificate is to be certified until Dec 2 21:41:46 2023 GMT (3650 days)
Sign the certificate? [y/n]:y
1 out of 1 certificate requests certified, commit? [y/n]y
Write out database with 1 new entries
Data Base Updated
root@CE3-Server:/etc/openvpn/easy-rsa2#
./build-key Razor78
Generating a 1024 bit RSA private key
.++++++
............++++++
writing new private key to 'Razor78.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [DE]:
State or Province Name (full name) [NI]:
Locality Name (eg, city) [Brake]:
Organization Name (eg, company) [CE3-SERVER]:
Organizational Unit Name (eg, section) [changeme]:
Common Name (eg, your name or your server's hostname) [Razor78]:
Name [changeme]:
Email Address [mail@host.domain]:
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:
Using configuration from /etc/openvpn/easy-rsa2/openssl-1.0.0.cnf
Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
countryName :PRINTABLE:'DE'
stateOrProvinceName :PRINTABLE:'NI'
localityName :PRINTABLE:'Brake'
organizationName :PRINTABLE:'CE3-SERVER'
organizationalUnitName:PRINTABLE:'changeme'
[COLOR=#ff0000]commonName :PRINTABLE:'Razor78'[/COLOR] [COLOR=#ff0000]#Richtig so???[/COLOR]
name :PRINTABLE:'changeme'
emailAddress :IA5STRING:'mail@host.domain'
Certificate is to be certified until Dec 2 21:43:55 2023 GMT (3650 days)
Sign the certificate? [y/n]:y
1 out of 1 certificate requests certified, commit? [y/n]y
Write out database with 1 new entries
Data Base Updated
root@CE3-Server:/etc/openvpn/easy-rsa2#
./build-dh
Generating DH parameters, 1024 bit long safe prime, generator 2
This is going to take a long time
..............................................................+......+.......................................................................+.......................+....................................................+........................+..+...................................................................................................+...................................+......................................................+......................................................................................................+............+.........................................+........................................................................................+...............................................+....................+.....+................................+................+.....+...................................+..............................................+.....................................................................................+.........+...........................+..+......................................................................................................................................................................................+..............................................................................+............................+.........................................................+.........+....+.............................................................................................................................................................+.......................+.................................................................+.......+.............+....+............................+......+........................++*++*++*
root@CE3-Server:/etc/openvpn/easy-rsa2#
ca ./easy-rsa2/keys/ca.crt
cert ./easy-rsa2/keys/server.crt
key ./easy-rsa2/keys/server.key
dh ./easy-rsa2/keys/dh1024.pem
push "route 192.168.0.0 255.255.255.0"
sysctl -w net/ipv4/ip_forward=1
net.ipv4.ip_forward = 1
root@CE3-Server:/etc/openvpn/easy-rsa2#
touch /etc/openvpn/openvpn.conf
float
client
dev tap
proto tcp
nobind
; Cert
ca /etc/openvpn/keys/[COLOR=#ff0000]nVPN.crt #wieso nVPN.crt???[/COLOR]
ns-cert-type server
cipher BF-CBC
;Host
remote connect-openvpn.swissvpn.net 443
resolv-retry infinite
;auth
auth-user-pass passwort.txt
persist-key
persist-tun
comp-lzo
verb 2
touch /etc/openvpn/passwort.txt
Benutzername #natürlich die richtigen daten
Password
/etc/init.d/openvpn restart
[ ok ] Stopping virtual private network daemon:.
[FAIL] Starting virtual private network daemon: [COLOR=#ff0000]openvpn server failed![/COLOR]
apt-get install openvpn
float
client
dev tap
proto tcp
nobind
; Cert
ca /etc/openvpn/keys/xxxx.crt
ns-cert-type server
cipher BF-CBC
;Host
remote connect-openvpn.swissvpn.net 443
resolv-retry infinite
;auth
auth-user-pass passwort.txt
persist-key
persist-tun
comp-lzo
verb 2
/etc/init.d/openvpn restart
root@CE3-Server:~# ifconfig
eth0 Link encap:Ethernet Hardware Adresse 00:XX:c5:XX:2a:XX
inet Adresse:192.168.0.119 Bcast:192.168.0.255 Maske:255.255.255.0
inet6-Adresse: fXX::2XX:cXXX:fXXX:2abe/64 Gültigkeitsbereich:Verbindung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
RX packets:16055 errors:0 dropped:0 overruns:0 frame:0
TX packets:16126 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:1645053 (1.5 MiB) TX bytes:14467651 (13.7 MiB)
Interrupt:11 Basisadresse:0xe900
lo Link encap:Lokale Schleife
inet Adresse:127.0.0.1 Maske:255.0.0.0
inet6-Adresse: ::1/128 Gültigkeitsbereich:Maschine
UP LOOPBACK RUNNING MTU:16436 Metrik:1
RX packets:1306 errors:0 dropped:0 overruns:0 frame:0
TX packets:1306 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:0
RX bytes:116919 (114.1 KiB) TX bytes:116919 (114.1 KiB)
tap0 Link encap:Ethernet Hardware Adresse 8a:XX:92:XX:46:XX
inet Adresse:109.XXX.XXX.1XX Bcast:109.XXX.XXX.127 Maske:255.255.255.128
inet6-Adresse: fXXX::8XXX:92ff:feac:4613/64 Gültigkeitsbereich:Verbindung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:57 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:100
RX bytes:0 (0.0 B) TX bytes:2610 (2.5 KiB)
root@CE3-Server:~#
# Configuration file for ddclient generated by debconf
#
# /etc/ddclient.conf
protocol=dyndns2
use=if, if=tap0
server=members.dyndns.org
login=Benutzer
password='Password'
XXXX.dyndns.XX
root@CE3-Server:~# ddclient
WARNING: file /var/cache/ddclient/ddclient.cache, line 3: Invalid Value for keyword 'ip' = ''
WARNING: skipping update of XXXX.dyndns.XX from <nothing> to 109.XXX.XXX.54.
WARNING: last updated <never> but last attempt on Thu Dec 5 17:53:37 2013 failed.
WARNING: Wait at least 5 minutes between update attempts.
root@CE3-Server:~#
root@CE3-Server:~# /etc/init.d/ddclient restart
[ ok ] Restarting Dynamic DNS service update utility: ddclient.
root@CE3-Server:~# ddclient
WARNING: cannot connect to members.dyndns.org:80 socket: IO::Socket::INET: connect: Die Wartezeit für die Verbindung ist abgelaufen
FAILED: updating XXX.dyndns.XX: Could not connect to members.dyndns.org.
root@CE3-Server:~#
Wir verwenden Cookies und ähnliche Technologien für folgende Zwecke:
Akzeptieren Sie Cookies und diese Technologien?
Wir verwenden Cookies und ähnliche Technologien für folgende Zwecke:
Akzeptieren Sie Cookies und diese Technologien?