public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] openvpn static ip
@ 2010-02-25  1:32 Joseph
  2010-02-25  2:51 ` Albert Hopkins
  2010-02-25  7:40 ` Xavier Parizet
  0 siblings, 2 replies; 18+ messages in thread
From: Joseph @ 2010-02-25  1:32 UTC (permalink / raw
  To: gentoo-user

I've configured OpenVPN and it works OK but I can not seems to figure it out how to assign static IP to clients

My server.conf port 8458
proto udp
dev tun
mode server
ca /usr/share/openvpn/easy-rsa/keys/ca.crt
cert /usr/share/openvpn/easy-rsa/keys/server.crt
key /usr/share/openvpn/easy-rsa/keys/server.key
dh /usr/share/openvpn/easy-rsa/keys/dh1024.pem
server 192.168.139.0 255.255.255.0
client-to-client
ifconfig-pool-persist ipp.txt
client-config-dir ccd
keepalive 10 120
tls-auth vpn_my.key 0
tun-mtu 1500
tun-mtu-extra 32
mssfix 1200
duplicate-cn
comp-lzo
max-clients 100
persist-key
persist-tun
status openvpn-status.log
log        /var/log/openvpn.log
log-append /var/log/openvpn.log
verb 3

On client in /etc/openvpn/ccd directory I've created a file "syscon9" with:
ifconfig-push 192.168.139.15 192.168.139.1

This file suppose to have a name from client "CN"

client.conf
client
dev tun
proto udp
remote 68.148.245.78 8458
resolv-retry infinite
nobind
tun-mtu 1500
tun-mtu-extra 32
mssfix 1200
persist-key
persist-tun
remote-cert-tls server
ca "/etc/openvpn/client/ca.crt"
cert "/etc/openvpn/client/syscon9.crt"
key "/etc/openvpn/client/syscon9.key"
tls-auth "/etc/openvpn/client/vpn.key" 1
comp-lzo
log        /var/log/openvpn.log
log-append /var/log/openvpn.log
verb 3

-- 
Joseph



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2010-02-26 15:13 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-25  1:32 [gentoo-user] openvpn static ip Joseph
2010-02-25  2:51 ` Albert Hopkins
2010-02-25  3:37   ` Joseph
2010-02-25 11:56     ` Albert Hopkins
2010-02-25 16:52       ` Joseph
2010-02-25  7:40 ` Xavier Parizet
2010-02-25 16:51   ` Joseph
2010-02-25 17:12     ` Xavier Parizet
2010-02-25 19:20       ` Joseph
2010-02-25 20:01         ` Etaoin Shrdlu
2010-02-25 20:09         ` Xavier Parizet
2010-02-25 21:01           ` Joseph
2010-02-25 21:17             ` Xavier Parizet
2010-02-25 22:21               ` Joseph
2010-02-26  7:34                 ` Xavier Parizet
2010-02-26  0:39               ` Joseph
2010-02-26  8:33                 ` J. Roeleveld
2010-02-26 15:13                   ` [gentoo-user][SOLVED] " Joseph

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox