Konfiguracja OpenVPN w oparciu o certyfikaty
: 20 stycznia 2011, 00:54
Mam problem z konfiguracją OpenVPN opartą o certyfikaty
Klient:
Serwer:
Pytanie czego się czepić?
Kiedyś miałem podobny problem LiNiO mi pomógł, tylko niestety nie zapisałem sobie, a jak widać czas szybko ucieka.
Mariusz
Kod: Zaznacz cały
Thu Jan 20 00:37:54 1194 us=863213 UDPv4 link local (bound): [undef]:1194
Thu Jan 20 00:37:54 1194 us=863258 UDPv4 link remote: 172.16.110.251:1194
Thu Jan 20 00:37:54 1194 us=865506 TLS Error: Unroutable control packet received from 172.16.110.251:1194 (si=3 op=P_CONTROL_V1)
Thu Jan 20 00:37:54 1194 us=865616 TLS Error: Unroutable control packet received from 172.16.110.251:1194 (si=3 op=P_CONTROL_V1)
Thu Jan 20 00:37:55 1194 us=934064 TLS Error: Unroutable control packet received from 172.16.110.251:1194 (si=3 op=P_CONTROL_V1)
Thu Jan 20 00:37:55 1194 us=934267 TLS Error: Unroutable control packet received from 172.16.110.251:1194 (si=3 op=P_CONTROL_V1)
Thu Jan 20 00:37:57 1194 us=3161 TLS Error: Unroutable control packet received from 172.16.110.251:1194 (si=3 op=P_CONTROL_V1)
Thu Jan 20 00:37:57 1194 us=3463 TLS Error: Unroutable control packet received from 172.16.110.251:1194 (si=3 op=P_CONTROL_V1)
Thu Jan 20 00:37:57 1194 us=5572 TLS Error: Unroutable control packet received from 172.16.110.251:1194 (si=3 op=P_ACK_V1)
Thu Jan 20 00:37:58 1194 us=22153 TLS Error: Unroutable control packet received from 172.16.110.251:1194 (si=3 op=P_CONTROL_V1)
Thu Jan 20 00:37:58 1194 us=22516 TLS Error: Unroutable control packet received from 172.16.110.251:1194 (si=3 op=P_CONTROL_V1)
Thu Jan 20 00:37:58 1194 us=22621 TLS Error: Unroutable control packet received from 172.16.110.251:1194 (si=3 op=P_CONTROL_V1)
Thu Jan 20 00:37:58 1194 us=23550 TLS Error: Unroutable control packet received from 172.16.110.251:1194 (si=3 op=P_CONTROL_V1)
Thu Jan 20 00:37:58 1194 us=24209 TLS Error: Unroutable control packet received from 172.16.110.251:1194 (si=3 op=P_ACK_V1)
Thu Jan 20 00:37:59 1194 us=44875 TLS Error: Unroutable control packet received from 172.16.110.251:1194 (si=3 op=P_CONTROL_V1)
Thu Jan 20 00:37:59 1194 us=45456 TLS Error: Unroutable control packet received from 172.16.110.251:1194 (si=3 op=P_CONTROL_V1)
Thu Jan 20 00:38:00 1194 us=66928 TLS Error: Unroutable control packet received from 172.16.110.251:1194 (si=3 op=P_CONTROL_V1)
Thu Jan 20 00:38:00 1194 us=70353 TLS Error: Unroutable control packet received from 172.16.110.251:1194 (si=3 op=P_ACK_V1)
Thu Jan 20 00:38:02 1194 us=243824 TLS Error: Unroutable control packet received from 172.16.110.251:1194 (si=3 op=P_CONTROL_V1)
Thu Jan 20 00:38:02 1194 us=245891 TLS Error: Unroutable control packet received from 172.16.110.251:1194 (si=3 op=P_ACK_V1)
Klient:
Kod: Zaznacz cały
#!/usr/sbin/openvpn
client
dev tun
proto udp
port 1194
remote 172.16.110.251<>1194
resolv-retry infinite
####nobind
#user nobody
#group nogroup
persist-key
persist-tun
tls-remote vpn.firma.corp
###ping-restart 10
ca vpn.firma.corp.cacert.crt
crl-verify vpn.firma.corp-crl.pem
tls-auth vpn.firma.corp.secret.key 1
cipher AES-256-CBC
verb 4
comp-lzo
tun-mtu 1500
#link-mtu 1462
fragment 1300
mssfix
cert [EMAIL="[email protected]"][email protected][/EMAIL]
key [EMAIL="[email protected]"][email protected][/EMAIL]
Serwer:
Kod: Zaznacz cały
port 1194
proto udp
dev tun0
ca vpn.firma.corp.cacert.crt
cert vpn.firma.corp.cert
key vpn.firma.corp.key
dh vpn.firma.corp-dh2048.pem
tls-auth vpn.firma.corp.secret.key 0
#crl-verify vpn.firma.corp-crl.pem
cipher AES-256-CBC
server 172.19.6.0 255.255.255.0
#topology subnet
#ifconfig-pool-persist vpn.firma.corp-ipp.txt
# Ping every 10 seconds, assume that remote peer is down if no ping received during a 120 second time period.
keepalive 60 600
user<--><------>nobody
group<-><------>nogroup
status<><------>vpn.firma.corp-status.log
log-append<---->vpn.firma.corp.log
verb<--><------>4
persist-key
persist-tun
comp-lzo
client-config-dir ccd
ccd-exclusive
chroot vpn.firma.corp-jail
#push "route 172.19.0.0 255.255.255.0"
#push "domain-name-servers 172.19.0.34 172.19.0.35"
# client-to-client
tun-mtu 1500
#link-mtu 1462
fragment 1300
mssfix
Kiedyś miałem podobny problem LiNiO mi pomógł, tylko niestety nie zapisałem sobie, a jak widać czas szybko ucieka.
Mariusz