Hello again,

On 28 September 2012 03:17, YASUOKA Masahiko
<yasu...@yasuoka.net<javascript:;>>
wrote:
> Hi,
>
> On Thu, 27 Sep 2012 13:41:52 -0400
> Andrew Ngo <andrew....@gmail.com <javascript:;>> wrote:
>> Hm. I can't seem to get npppd to map users to static addresses in the
>> npppd-users file, after trying various permutations of "pool-address
>> ##-## <for static>" and such. The client is an iPhone running iOS 6.0,
>> and is definitely able to set up a working vpn over l2tp/ipsec with
>> the npppd server (many thx, btw), but the client is then always
>> assigned a random address from the pool (and never the static one,
>> incidentally... but that could just be chance).
>>
>> Did I screw something up in the configuration or has this particular
>> feature not been implemented yet? Has anyone else had troubles with
>> this?
>
> The feature was broken by the my configuration syntax change work.
> Thank you for your report.  Attached diff will fix the problem.
>

I tested the diff and it works over here; thanks.

>> (By the way, the daemon goes absolutely bananas if you use a
>> "framed-ip-address" on a different subnet than those in the pool.
>> Bananas! I don't recommend this error. ^^)
>
> npppd will assign ip address dynamically on that case.
> Can you explain your recommendation?

I only managed to replicate the error using "pool-address [ip4] [ip4] for
static" in the pre-patched npppd, so it's probably a result of the same
bug. (When I said "bananas", I was just talking about the deluge of
"unhandled option" messages. :) Anyway, I've attached the output -- it
looks like a consequence of npppd thinking it has no addresses to allocate.


10:15:17:NOTICE: Starting npppd pid=12849 version=5.0.0
10:15:17:NOTICE: Load configuration from='/etc/npppd/npppd.conf'
successfully.
10:15:17:INFO: pppx0 Started pppx
10:15:17:INFO: Listening /var/run/npppd_ctl (npppd_ctl)
10:15:17:INFO: ipcp=IPCP pool pool=[
172.16.2.2/31,172.16.2.4/31,172.16.2.6/32]
10:15:17:INFO: Loading pool config successfully.
10:15:17:INFO: l2tpd Listening 0.0.0.0:1701/udp (L2TP LNS) [L2TP_ipv4]
10:15:17:INFO: l2tpd Listening [::]:1701/udp (L2TP LNS) [L2TP_ipv6]
10:15:27:NOTICE: l2tpd ctrl=1 logtype=Started RecvSCCRQ
from=[...]:49950/udp tunnel_id=1/38 protocol=1.0 winsize=4
hostname=Rhinoceros vendor=(no vendorname) firm=0000
10:15:27:INFO: l2tpd ctrl=1 SendSCCRP
10:15:27:NOTICE: l2tpd ctrl=2 logtype=Started RecvSCCRQ
from=[...]:49950/udp tunnel_id=2/38 protocol=1.0 winsize=4
hostname=Rhinoceros vendor=(no vendorname) firm=0000
10:15:27:INFO: l2tpd ctrl=2 SendSCCRP
10:15:28:INFO: l2tpd ctrl=1 RecvSCCN
10:15:28:INFO: l2tpd ctrl=1 SendZLB
10:15:28:INFO: l2tpd ctrl=1 call=4645 RecvICRQ session_id=849
10:15:28:INFO: l2tpd ctrl=1 call=4645 SendICRP session_id=4645
10:15:28:INFO: l2tpd ctrl=1 RecvZLB
10:15:29:INFO: l2tpd ctrl=1 call=4645 RecvICCN session_id=849
calling_number= tx_conn_speed=1000000 framing=async
10:15:29:NOTICE: l2tpd ctrl=1 call=4645 logtype=PPPBind ppp=0
10:15:29:INFO: ppp id=0 layer=base logtype=Started
tunnel=L2TP_ipv4([...]:49950)
10:15:29:INFO: l2tpd ctrl=1 call=4645 SendZLB
10:15:29:DEBUG: l2tpd ctrl=1 SendZLB
10:15:30:INFO: l2tpd ctrl=1 RecvZLB
10:15:33:INFO: ppp id=0 layer=lcp logtype=Opened mru=1360/1360
auth=MS-CHAP-V2 magic=[...]/[...]
10:15:34:INFO: ppp id=0 layer=chap proto=mschap_v2 logtype=Success
username="turnip" realm=LOCAL
10:15:34:NOTICE: ppp id=0 layer=base No free address in the pool.
10:15:34:NOTICE: ppp id=0 layer=base No free address in the pool.
10:15:35:INFO: ppp id=0 layer=base unhandled protocol ipv6cp, 32855(8057)
10:15:35:INFO: ppp id=0 layer=ccp CCP is stopped
10:15:35:DEBUG: ppp id=0 layer=ipcp Unhandled Option 01 10
10:15:36:DEBUG: ppp id=0 layer=ipcp Unhandled Option 01 10
10:15:36:DEBUG: ppp id=0 layer=ipcp Unhandled Option 01 10
10:15:37:DEBUG: ppp id=0 layer=ipcp Unhandled Option 01 10
10:15:38:DEBUG: ppp id=0 layer=ipcp Unhandled Option 01 10
10:15:38:DEBUG: ppp id=0 layer=ipcp Unhandled Option 01 10
10:15:39:DEBUG: ppp id=0 layer=ipcp Unhandled Option 01 10
10:15:39:DEBUG: ppp id=0 layer=ipcp Unhandled Option 01 10
10:15:40:NOTICE: l2tpd ctrl=2 timeout waiting ack for ctrl packets.
10:15:40:NOTICE: l2tpd ctrl=2 logtype=Finished
10:15:40:DEBUG: ppp id=0 layer=ipcp Unhandled Option 01 10
10:15:40:DEBUG: ppp id=0 layer=ipcp Unhandled Option 01 10
10:15:41:DEBUG: ppp id=0 layer=ipcp Unhandled Option 01 10
10:15:41:DEBUG: ppp id=0 layer=ipcp Unhandled Option 01 10
10:15:42:DEBUG: ppp id=0 layer=ipcp Unhandled Option 01 10
10:15:42:DEBUG: ppp id=0 layer=ipcp Unhandled Option 01 10
10:15:43:DEBUG: ppp id=0 layer=ipcp Unhandled Option 01 10
10:15:43:DEBUG: ppp id=0 layer=ipcp Unhandled Option 01 10
^C
10:15:44:INFO: l2tpd ctrl=1 call=4645 SendCDN result=ADMINISTRATIVE_REASON/3
10:15:44:NOTICE: l2tpd ctrl=1 call=4645 logtype=PPPUnbind
10:15:44:NOTICE: ppp id=0 layer=base logtype=TUNNELUSAGE user="turnip"
duration=15sec layer2=L2TP_ipv4 layer2from=[...]:49950 auth=MS-CHAP-V2
data_in=701bytes,28packets data_out=563bytes,31packets error_in=1
error_out=0 mppe=no iface=pppx0
10:15:44:INFO: l2tpd ctrl=1 SendStopCCN result=6
10:15:44:NOTICE: pptpd Stopped
10:15:44:NOTICE: pppoed Stopped
10:15:44:INFO: pppx0 Stopped
10:15:44:WARNING: l2tpd ctrl=1 Received Data packet in 'cleanup-wait'
10:15:47:NOTICE: l2tpd ctrl=1 Cleanup timeout state=4
10:15:47:NOTICE: l2tpd ctrl=1 logtype=Finished
10:15:47:INFO: l2tpd Shutdown 0.0.0.0:1701/udp (L2TP LNS)
10:15:47:INFO: l2tpd Shutdown [::]:1701/udp (L2TP LNS)
10:15:47:INFO: realm name=LOCAL Finalized
10:15:47:NOTICE: Terminate npppd.

--
Andrew Ngo


-- 
Andrew Ngo

Reply via email to