IP allocation for a client

AT <[email protected]>
Newsgroups gmane.network.poptop
Message-ID <CAJ5pgsJ8rOd7Jf7xrQQQ3L46LAOH2r_Ec0XiRYXNAp_+2LUa=Q@mail.gmail.com>
Hi guys,

I have an issue making PPTPd allocate correct IP address to the client
machines. here is what I have in my configs:

[root@lincoln ~]# cat /etc/pptpd.conf
option /etc/ppp/options.pptpd
#debug
logwtmp
connections 1024
#delegate
# we want pptpd to allocate the IPs not pppd
localip 172.16.32.1
remoteip 172.16.32.2-254,172.16.33.1-254,172.16.34.1-254,172.16.35.1-254

[root@lincoln ~]# cat /etc/ppp/options
lock
172.16.32.1:

[root@lincoln ~]# cat /etc/ppp/options.pptpd
name pptpd
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
ms-dns 208.67.222.222
ms-dns 8.8.8.8
debug
dump
lock
nobsdcomp
novj
novjccomp
nologfd

[root@lincoln ~]# cat /etc/ppp/chap-secrets
# Secrets for authentication using CHAP
# client	server	secret			IP addresses
someuser	*	somepass	172.16.32.9 172.16.32.11 172.16.32.10

Now if I try to connect to the PPTPd server from two different
machines using the same username 'someuser' they both are given
172.16.32.9 IP address.

ppp0      Link encap:Point-to-Point Protocol
          inet addr:172.16.32.1  P-t-P:172.16.32.9  Mask:255.255.255.255

ppp1      Link encap:Point-to-Point Protocol
          inet addr:172.16.32.1  P-t-P:172.16.32.9  Mask:255.255.255.255

Obviously routing and network packet delivery does not work properly
in this case. The system does not know how which interface to use to
send the replies to 172.16.32.9.

I was expecting PPTPd to allocate 172.16.32.9 to first connecting
machine with username 'someuser' and 172.16.32.11 to another machine
connecting with the same user name.

Can anybody give an idea how do I make PPTPd allocate the necessary addresses?
Or is there any way to route the traffic somehow for two pppX
interfaces having the same remote IP address?

Any input would be appreciated.

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.