Server:
- Secondary SME server
- 'server only' configuration
- DHCP NOT enabled
When I enabled PPTP with 2 remote connections, my /etc/pptpd.conf file includes:
remoteip 192.168.x.249-250
Looking at /etc/e-smith/templates/etc/pptpd.conf/remoteip:...
# Calculate pptpd start and end addresses
my $endIP = $dhcpd{end};
my $end_addr = esmith::util::IPquadToAddr($endIP);
my $start_addr = $end_addr - $sessions + 1;
my $startIP = esmith::util::IPaddrToQuad($start_addr);
my @start = split(/\./, $startIP);
my @end = split(/\./, $endIP);
...
it looks as though:
a) PPTPD doesn't use DHCP to assign IPs, it uses its own internal settings
b) The default settings assign <number of sessions> addresses, ending with the end address configured for DHCPD
c) Even with DHCP disabled on your server, you can specify the PPTP range by assigning a specific "end" address to your DHCPD range using config setprop dhcpd end a.b.c.d
expand-template /etc/pptpd.conf
d) if this doesn't work for you, you could create a custom template fragment for 'remoteip' usingmkdir -p /etc/e-smith/templates-custom/etc/pptpd.conf
echo remoteip a.b.c.d-e >> /etc/e-smith/templates-custom/etc/pptpd.conf/remoteip
expand-template /etc/pptpd.conf
(Be sure to replace 'a.b.c.d' with an IP address on your network, and 'e' with another final octet that is higher than 'd', like: 192.168.1.5-10)
You may also need to adjust the settings that end up in /etc/ppp/options.pptpd to optimize the behavior for your remote Windows users. This file contains settings for the DNS servers that will be fed to pptp clients, for example.