[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OpenVPN und static IPs machen mich kirre



Robert Fischer schrieb:
Wie in der Manual-Page beschrieben:
"Note that the entries in this file are treated by OpenVPN as suggestions
only, based on past associations between a common name and IP address. They do not guarantee that the given common name will always receive the
given IP address. If you want guaranteed assignment, use --ifconfig-push"

solltest Du ifconfig-push benutzen.
Dazu in deiner Server-Konfiguration die Option --client-config-dir z.B
auf /etc/openvpn/ccd setzen. Dann im Verzeichnis ccd für jedes Zertifikat
eine Datei mit dem Namen des Zertifikats (dem Common-Name des Zertifikats)
ablegen und darin dann die gewünschte IP-Adresse mit ifconfig-push
festlegen. Z.B

/etc/openvpn/ccd/client010
ifconfig-push xxx.yyy.zzz.010 xxx.yyy.zzz.011

wobei im Beispiel .010 die IP-Adresse des Clients ist und .011 der
PtP-Endpunkt des Servers. Siehe dazu auch http://openvpn.net/howto.html
unter "Configuring client-specific rules and access policies"

Genau so gemacht mit ccd läuft es schon 2 Jahre bei mir herforragend.
Gruß
Kai





Reply to: