Koozali.org: home of the SME Server

VPN client - getting specific IP adress

Jérome

VPN client - getting specific IP adress
« on: February 04, 2003, 01:27:34 PM »
Hello,

I use e-smith from years now, and I often use PPTP VPN connections.

I'm trying to set up a WinXP Pro client to get always the same IP address when connection throught VPN connection ( ie not dhcp, but a specific address).

My SME Server is 5.6 with ServiceLink enable. My client is WinXP Pro.
I try to specify a specific (and valid dhcp address) ip adress in the client VPN. But when connecting Windows tells me that server can't give me this adress because it isn't configure to do so. I get this error while 'registering computer on network'  AFTER authentication.

How can I make it work the way I want ?

Please help.

Sorry for my poor English.

Best regards.

Jérome

Lloyd Keen

Re: VPN client - getting specific IP adress
« Reply #1 on: February 04, 2003, 11:48:35 PM »
Jerome,
Try this out:
If you wish to assign the person connecting a fixed IP address, rather than one from
the pool you set up in pptpd.conf, replace the last star with the remote IP address.  
For example, if 192.168.1.4 is in the remote address pool (what gets assigned to
client), and you always wish to assign it to the user robert, the line in chap-secrets
would be:

robert   *      192.168.1.4

I don't recommend this because if you do this, and someone else connects and gets
192.168.1.4, and robert then connects, the route to the first person will be replaced
by the route to robert.  This means the first person is cut off.

There are three ways around this problem.  First, don't assign IP numbers.  
Second, assign everyone their own IP number.  Finally, don't but the assigned IP
numbers in the pool for pptpd to hand out.  They must still be available though.

You can read the full document here:
http://home.swbell.net/berzerke/2.4_Kernel_PPTPD-HOWTO.txt