Describe Howto specify predefined IP pool for the PPTP VPN here.
Author: Contribs Docteam
Contributor: cc_skavenger
Release supported: 6.0
Last update: 13. October 2004
Forum post: http://forums.contribs.org/viewtopic.php?t=23278&sid=a9fa9e3cab50ac64794179dbfac77a5e
- Choose the IPs that you want.
- Make the custom template fragments:
mkdir -p /etc/e-smith/templates-custom/etc/pptpd.conf
- create the template fragment needed:
touch /etc/e-smith/templates-custom/etc/pptpd.conf/remoteip
- Edit the fragment with your favorite editor and insert these contents:
remoteip <ip-range>
ip-range will be the range of IPs that you want to use. It must be in this format:
10.0.0.230-240 would specify IPs 230 through 240 are usable
- Save the file and expand the template:
/sbin/e-smith/expand-template /etc/pptp.conf
- Restart the pptpd service:
service pptpd restart
- Test the VPN by making a connection and check your IP.
Note: Make sure that the IP range you specified above matches the number you specify in the Remote Access portion of the Server Manager.
Back to Howto