client
remote MEINNAME.no-ip.info 1194
ca ca.crt
cert philipp.crt
key philipp.key
ns-cert-type server
nobind
proto udp
dev tap
fragment 1300
mssfix
verb 6
server 10.8.0.0 255.255.255.0
mode server
tls-server
proto upd
port 1194
dev tap0
dev-node /var/tmp/vpn/tun
ca ca.crt
cert fritzbox.crt
key fritzbox.key
dh dh1024.pem
ifconfig 192.168.120.100 255.255.255.0
client-to-client
keepalive 10 60
comp-lzo
persist-key
persist-tun
verb 3
Sat Mar 07 17:13:12 2009 us=100657 UDPv4 WRITE [14] to 85.181.62.215:1194: P_CONTROL_HARD_RESET_CLIENT_V2 kid=0 [ ] pid=0 DATA len=0
Was ist die mE ? Gerne würde ich einfach anfangen, wenn ich wüsste wie?Für Deine Anforderungen würde die mE grundsätzlich genügen.
mode server
local 192.168.120.253 255.255.255.0
tls-server
proto upd
port 1194
#dev tap0
dev tun0
dev-node /var/tmp/tun
push "redirect-gateway"
secret static.key
#ca ca.crt
#cert fritzbox.crt
#key fritzbox.key
#dh dh1024.pem
client-to-client
keepalive 10 60
comp-lzo
persist-key
persist-tun
verb 3
remote NAME.no-ip.info 1194
secret static.key
#ca ca.crt
#cert philipp.crt
#key philipp.key
#ns-cert-type server # Eine Sicherheitsmaßnahme
ifconfig 192.168.120.223 255.255.255.0
redirect-gateway
comp-lzo
nobind
proto udp
dev tun
#fragment 1300
mssfix
verb 6
Mon Mar 09 15:52:06 2009 us=621342 WARNING: Since you are using --dev tun, the second argument to --ifconfig must be an IP address. You are using something (255.255.255.0) that looks more like a netmask. (silence this warning with --ifconfig-nowarn)
Mon Mar 09 15:52:06 2009 us=627359 There is a problem in your selection of --ifconfig endpoints [local=192.168.120.223, remote=255.255.255.0]. The local and remote VPN endpoints must exist within the same 255.255.255.252 subnet. This is a limitation of --dev tun when used with the TAP-WIN32 driver. Try 'openvpn --show-valid-subnets' option for more info.
Mon Mar 09 15:52:06 2009 us=628355 Exiting
mode server
local 192.168.120.253 # wegen dem virtuelln interface
ifconfig 10.0.0.2 10.0.0.1
route 10.0.0.0 255.255.255.0
push "route 10.0.0.0 255.255.255.0"
tls-server
proto upd
port 1194
dev tun0
dev-node /var/tmp/tun
...
remote NAME.no-ip.info 1194
secret static.key
ifconfig 10.0.0.1 10.0.0.2
route 10.0.0.0 255.255.255.0
push "route 10.0.0.0 255.255.255.0"
push "dhcp-option DNS 10.0.0.1"
route-gateway 10.0.0.1
redirect-gateway
Mon Mar 09 17:32:40 2009 us=251423 UDPv4 READ [-1] from [undef]: DATA UNDEF len=-1
Das obere steht mehrere hundert male da
Mon Mar 09 17:32:40 2009 us=259639 UDPv4 WRITE [60] to 85.181.36.206:1194: DATA len=60
Mon Mar 09 17:32:40 2009 us=262537 UDPv4 READ [-1] from [undef]: DATA UNDEF len=-1
Mon Mar 09 17:32:51 2009 us=291263 UDPv4 WRITE [60] to 85.181.36.206:1194: DATA len=60
Mon Mar 09 17:33:01 2009 us=471058 UDPv4 WRITE [60] to 85.181.36.206:1194: DATA len=60
Mon Mar 09 17:33:11 2009 us=402838 UDPv4 WRITE [60] to 85.181.36.206:1194: DATA len=60
Mon Mar 09 17:33:21 2009 us=651026 UDPv4 WRITE [60] to 85.181.36.206:1194: DATA len=60
Mon Mar 09 17:33:31 2009 us=471461 UDPv4 WRITE [60] to 85.181.36.206:1194: DATA len=60
Mon Mar 09 17:33:41 2009 us=354441 UDPv4 WRITE [60] to 85.181.36.206:1194: DATA len=60
Mon Mar 09 17:33:51 2009 us=315495 UDPv4 WRITE [60] to 85.181.36.206:1194: DATA len=60
Mon Mar 09 17:34:01 2009 us=256071 UDPv4 WRITE [60] to 85.181.36.206:1194: DATA len=60
Mon Mar 09 17:34:11 2009 us=685922 UDPv4 WRITE [60] to 85.181.36.206:1194: DATA len=60
Mon Mar 09 17:34:21 2009 us=671342 UDPv4 WRITE [60] to 85.181.36.206:1194: DATA len=60
Mon Mar 09 17:34:31 2009 us=925394 NOTE: failed to obtain options consistency info from peer -- this could occur if the remote peer is running a version of OpenVPN before 1.5-beta8 or if there is a network connectivity problem, and will not necessarily prevent OpenVPN from running (0 bytes received from peer, 0 bytes authenticated data channel traffic) -- you can disable the options consistency check with --disable-occ.
#Server
ifconfig 10.0.0.2 10.0.0.1
dev tun0
dev-node /var/tmp/tun
secret static.key
#Client
remote NAME.no-ip.info 1194
ifconfig 10.0.0.1 10.0.0.2
secret static.key
redirect-gateway
ifconfig 10.0.0.2 10.0.0.1
dev tun0
dev-node /var/tmp/tun
secret static.key
remote NAME.no-ip.info 1194
ifconfig 10.8.0.1 10.8.0.2
dev tun
route 192.168.120.0 255.255.255.0
secret static.key
Welchen Vorteil versprichst Du Dir von Zertifikaten?...
- ich würde das ganze noch mit zertifikaten machen.
...