|
From: Jan J. K. <ja...@ni...> - 2008-05-28 12:33:43
|
hi Patrick, Patrick wrote: > Hi, > > Openvpn newbie here. I have the config below on the openvpn server > (version 2.1 on a Fedora Core 7 box) and the client is a Fedora 9 > laptop. The vpn works fine. One thing I could not figure out: how do I > assign static IP address to clients? > > port 1194 > proto udp > dev tun > cipher AES-256-CBC > auth SHA1 > tls-cipher DHE-RSA-AES256-SHA > tls-auth ta.key 0 > ca /etc/openvpn/easy-rsa/keys/ca.crt > cert /etc/openvpn/easy-rsa/keys/server.crt > key /etc/openvpn/easy-rsa/keys/server.key > dh /etc/openvpn/easy-rsa/keys/dh2048.pem > server 10.0.1.0 255.255.255.0 > ifconfig-pool-persist /etc/openvpn/ipp.txt > push "dhcp-option DNS 10.0.0.100" > push "dhcp-option DOMAIN testbox.local" > push "dhcp-option SEARCH vpn.testbox.local" > keepalive 10 120 > comp-lzo > user nobody > group nobody > persist-key > persist-tun > log-append /var/log/openvpn/openvpn.log > verb 4 > > you're already using an ifconfig-pool-persist file, that's good. If you add a '0' behind the ifconfig-pool-persist line then the file is treated statically . Another option you can use is to use the 'client-config-dir' directive and setup a specific IP for a client. HTH, JJK |