Portál AbcLinuxu, 14. května 2025 01:58
Dobry den v OpenVpn se mi nedari pridelit statickou adresu pro jednotlive uzivatele. Zkousel jsem uz vsechno, ale nejak se nemuzu pohnout. Distribuce SuSe10.1 ------------------------------- #Konf serveru dev tap server 192.168.2.0 255.255.255.0 push "route 192.168.2.0 255.255.255.0" push "route-gateway 192.168.2.1" push "redirect-gateway" push "dhcp-option DNS 141.28.33.99" client-config-dir ccd client-to-client keepalive 10 60 comp-lzo verb 5 dh dh2048.pem ca ca.crt cert server.crt key server.key ------------------------------ #Konf clienta remote 141.28.x.x dev tap tls-client pull comp-lzo keepalive 10 60 dh dh2048.pem ca ca.crt cert ja.crt key ja.key ------------------------------ adresar ccd, ve kterem mam "ja.conf" #ja.conf ifconfig-push 192.168.2.5 255.255.255.0 Ale bohuzel mi to takto, nefunguje. Spravne by se mela nacist klientovi "ja" adresa 192.168.2.5 ale nacte se 192.168.2.2 Dekuji za jakoukoliv radu.
certifikat "ja.conf" jsem zvolil jen tak pro ukazku. Normalne mam v Clientovi "Jan_Novak.crt" a v adresari na serveru ccd mam "Jan_Novak.conf" presto pro neho nenacte server Statickou IP
Toto je vytah z Openvpn pri konfiguraci ccd
The name of the client configuration file must be identical with the common name of the certificate the client uses. This is very important: Only with this field in the certificate can openvpn distinguish the clients. A client with the common name server1 in its certificate must be configured with server1.conf in the client configuration directory. The name of this file can not be chosen.
Na tomto jsem se sekl, diky moc za radu uz to vsechno funguje. Chyba byle, ze jsem tam psal priponu conf
Dekuji za pomoc. Reseni je dat do ccd Jan_Novak misto Jan_Novak.conf
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.