r4ffles Hi, I have an OpenVPN server with 60 clients at the moment and it works great. I have a CCD file that assigns each client a IP Address (10.8.0.0 -10.8.0.255) with ifconfig-push 10.8.0.4 10.8.0.5 and each Ip that is assigned is in multiples of 4 which only allows some 60 odd users. I have added another IP Range by allocating in a ccd file 10.8.1.0 - 10.8.1.255 and added that route to iptables but although the users can connect to the VPN server and are assigned the correct IP they cannot connect through to the internet. Do I need to add something to the Server.conf to allow a second range of IP's? Any help much appreciated.
r4ffles Hi, Here is the server.conf setup port 443 proto udp dev tun ca /etc/openvpn/ca.crt cert /etc/openvpn/server.crt key /etc/openvpn/server.key dh /etc/openvpn/dh1024.pem server 10.9.0.0 255.255.255.0 client-config-dir /etc/openvpn/CCD route 10.9.0.0 255.255.255.255 push "redirect-gateway def1" ; bypass-dhcp" client-to-client keepalive 10 120 tls-auth /etc/openvpn/ta.key 0 max-clients 250 user nobody group nogroup persist-key persist-tun status openvpn-status.log 5 log-append openvpn.log verb 3
maikcat first remove this: route 10.9.0.0 255.255.255.255 change server directive to: server 10.9.0.0 255.255.254.0 then you can use ip from range: 10.9.0.1-10.9.1.254 regards Michael.
r4ffles Hi Maikat, Sorry for the delay in replying but been away over Easter. Have changed the server.conf file as suggested and works a treat. So simple. Thanks for your help.