Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: woiks on January 16, 2007, 12:31:41 PM
-
Hello All
I am new to this and would appreciate some help :)
SME 7.1 server-gateway multihomed, DHCP off.
When I connect from WAN via VPN then I receive 192.168.1.230.
How do I change the scope the VPN gives out, let's say
VPN IP start: 192.168.1.100
VPN IP end: 192.168.1.120
Thank You
P.S. I know OpenVPN can do this, I need solution for regular VPN.
-
Looks like I found an answer relating to old SME builds. Perhaps it applies to 7.1 as well. If no one confirms, I am going to try.
Steps:
1. Choose the IPs that you want.
2. Make the custom template fragments:
mkdir -p /etc/e-smith/templates-custom/etc/pptpd.conf
3. Create the template fragment needed:
touch /etc/e-smith/templates-custom/etc/pptpd.conf/remoteip
4. 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
5. Save the file and expand the template:
/sbin/e-smith/expand-template /etc/pptp.conf
6. Restart the pptpd service:
service pptpd restart
7. Test the VPN by making a connection and check your IP.
That's it
http://forums.contribs.org/index.php?topic=23278.0
-
I would imagine that this should still work, haven't tested it to update the doc. I know the template commands have changed, so you need to verify. if it doesn't work, delete the template fragment file, rebuild the template again and restart the pptp service.
HTH
-
It took me a long time. cc_skavenger - thanks for the answer, this solution appears to work.