Koozali.org: home of the SME Server

PPTP VPN Remote IP Address

Offline danfulton

  • 19
  • +0/-0
PPTP VPN Remote IP Address
« on: November 28, 2007, 09:14:20 PM »
Hi All,

Is it possible to specify the IP address a remote vpn connection will be assigned by the SME Server?

I have a vigor router connecting via PPTP VPN to the SME Server, but in theory each time it connects it could receive a different IP address, which would cause a problem in the Local Networks setup.

Ideally I would like to assign a fixed IP to the MAC address of the router.

Any thought welcome...

Dan

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: PPTP VPN Remote IP Address
« Reply #1 on: November 28, 2007, 09:20:24 PM »
Is it possible to specify the IP address a remote vpn connection will be assigned by the SME Server?

No.

Quote
I have a vigor router connecting via PPTP VPN to the SME Server, but in theory each time it connects it could receive a different IP address, which would cause a problem in the Local Networks setup.

No it won't, since PPTP remote IP addresses assigned by the server are all within the local network range.

Offline danfulton

  • 19
  • +0/-0
Re: PPTP VPN Remote IP Address
« Reply #2 on: November 29, 2007, 11:11:42 AM »
I've found this in bugzilla

http://bugs.contribs.org/show_bug.cgi?id=1230

Which appears to do what I'd like.

The reason I want to assign a fixed ip, is that the vigor router is at a remote site, with about 5 computers behind it.

In local networks at the sme server, I need to enter the IP address assigned to the vigor as the Router to enable the different networks to communicate.

I've got it working now with the info in bugzilla.

Offline bossies

  • 8
  • +0/-0
    • Affordable web Design
Re: PPTP VPN Remote IP Address
« Reply #3 on: September 04, 2008, 08:20:17 AM »
Just found this on another thread

Howto Setup VPN to use specified IP addresses
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.

Tested on 7.3 and works fine - I just set one ip address and not a range as i will be the only one connecting for support so my range is
remoteip 10.10.10.10