|
|
Thanks Phil thats great, I've got it working with fixed IP addresses now :) My next question is I am using "push "dhcp-option DNS 192.168.1.80"" to set the dns, which works fine. I also want to set the "domain" in my clients /etc/resolv.conf, is there a way of doing this? Many thanks, Aaron Phil Burrow wrote: > Aaron Randall wrote: >> Hi Charles, >> >> Thanks for the reply! >> >> I do not have ifconfig-pool-persist in my local.conf, so I will put >> that in now. My next question is how do I define the fixed IP's in >> the file that you reference? e.g. >> >> ifconfig-pool-persist ipp.txt >> >> but what does in ipp.txt? and does that just live in the same >> directory as the .conf file? I have tried to look in google and the >> man pages but can't find anything helpful. >> >> Many thanks, >> >> Aaron >> > > Hiya Aaron, > > To specify per-client IP's, you need to create a file for each of them > in your client config directory (ccd). This directory is specified in > your server.conf (check example confs for it). Mine is > /etc/openvpn/ccd: if you're using the Windows one its probably in > Program Files/OpenVPN/ccd.. > > If you have a machine with the common name "muppet", then you would > create a file called muppet within that directory and put something > like this in it: > > ifconfig-push 10.8.0.5 10.8.0.6 > > This would give the client named "muppet" the virtual IP 10.8.0.5 and > the virtual server that it connects to would be 10.8.0.6. > > Have a look through the default server.conf that comes with the > distribution and you will see information such as: > > # EXAMPLE: Suppose you want to give > # Thelonious a fixed VPN IP address of 10.9.0.1. > # First uncomment out these lines: > ;client-config-dir ccd > ;route 10.9.0.0 255.255.255.252 > # Then add this line to ccd/Thelonious: > # ifconfig-push 10.9.0.1 10.9.0.2 > > http://openvpn.net/howto.html has some more details too. > > HTH =) > > Phil > > > > > ------------------------------------------------------- > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > Fully trained technicians. The highest number of Red Hat > certifications in > the hosting industry. Fanatical Support. Click to learn more > _______________________________________________ > Openvpn-users mailing list > Openvpn-users@xxxxxxxxxxxxxxxxxxxxx > https://lists.sourceforge.net/lists/listinfo/openvpn-users > _______________________________________________ Openvpn-users mailing list Openvpn-users@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/openvpn-users Warning: require_once(../../../archive_common.php) [function.require-once]: failed to open stream: No such file or directory in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2006-06/msg00023.html on line 259 Fatal error: require_once() [function.require]: Failed opening required '../../../archive_common.php' (include_path='/usr/local/lib/php') in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2006-06/msg00023.html on line 259 |