with <t2g132$qns$
[email protected]> Bidski wrote:
Reproducing an issue I raised on the github repo here.
Unless the problem has been raised privately (I know nothing about
github's inner workings) URL would be helpful. If the problem has been resolved then please ignore.
Disclaimer: I have no idea what 'xl2tpd' is, supposedely some VPN
establishing thing. Now,
*SKIP*
--- START OF xl2tpd.conf ---
[global]
*SKIP*
auth file = /etc/ppp/chap-secrets
*SKIP*
[lac MY_CONNECTION]
*SKIP*
refuse pap = yes
refuse chap = yes
require authentication = yes
*SKIP*
--- START OF options.l2tpd.client ---
*SKIP*
noauth
*SKIP*
refuse-mschap
require-mschap-v2
*SKIP*
something doesn't feel right about this. I'm not sure that xl2tpd and
pppd are supposed to share passwords and/or secrets. I'm not sure
'noauth' and 'require-whatever' are supposed to work. I'm not sure it's
clear what 'noauth' does.
*SKIP*
Unfortunately, I have no idea what is going on here. Can anyone help me
get this sorted out?
Disclaimer, I don't have to deal with authentication like at all.
Without this I can't get my hands dirty (aka -- reading RFCs). But,..
First, you're preseneting two logfiles, keeping timestamps would be
helpful. Now, out of order,..
pppd[74443]: sent [LCP ConfReq id=0x2 <auth chap MS-v2> <magic MAGIC_NUM_1>] pppd[74443]: rcvd [LCP ConfAck id=0x2 <auth chap MS-v2> <magic MAGIC_NUM_1>] pppd[74443]: sent [LCP EchoReq id=0x0 magic=MAGIC_NUM_1]
pppd[74443]: rcvd [LCP EchoRep id=0x0 magic=0x6a67adb7]
Rest assured, magic numbers are for detecting loops. They don't have
anything to do with security or privacy. OTOH, you're obscuring them inconsistently.
pppd[74443]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MS-v2>
<magic MAGIC_NUM_1>]
Here, yours 'require-mschap-v2' has beaten yours 'noauth'. Still,..
pppd[74443]: rcvd [CHAP Success id=0x1 "S=CHAP_SUCCESS"]
pppd[74443]: CHAP authentication succeeded
pppd[74443]: sent [CHAP Challenge id=0x52 <CHAP_CHALLENGE_SEND>, name = "MY_NAME"]
pppd[74443]: rcvd [CHAP Response id=0x52 <>, name = ""]
pppd[74443]: rcvd [CHAP Response id=0x52 <>, name = ""]
pppd[74443]: sent [LCP TermReq id=0x3 "Authentication failed"]
Speculation, it's possible that windops and/or event-driven programming
is involved. Your peer authenticates you oportunisticaly while hoping
to figure out your secret any time soon. It doesn't happen. Then *you* dis-authenticate your peer. I'm not sure this is how it is supposed to
work.
--- START OF LOG OUTPUT 2 ---
pppd[263275]: local IP address 192.168.187.113
Retorical question, where this comes from? Your 'options.*' (for pppd)
clearly states:
ipcp-accept-local
ipcp-accept-remote
Still, I don't see in your debug-log "sent [IPCP ConfReq <addr
0.0.0.0>]" (some fields are skipped for brevity). Neither I see "rcvd
[IPCP ConfReq <addr 10.10.10.10>]" (brevity again, actual IP address may
be whatever). This is not how 'ipcp-accept-local' is supposed to work.
xl2tpd[263263]: xl2tpd[263263]: "/usr/sbin/pppd"
xl2tpd[263263]: xl2tpd[263263]: "plugin"
xl2tpd[263263]: xl2tpd[263263]: "pppol2tp.so"
xl2tpd[263263]: xl2tpd[263263]: "pppol2tp"
xl2tpd[263263]: xl2tpd[263263]: "7"
xl2tpd[263263]: xl2tpd[263263]: "passive"
xl2tpd[263263]: xl2tpd[263263]: "nodetach"
xl2tpd[263263]: xl2tpd[263263]: ":"
xl2tpd[263263]: xl2tpd[263263]: "refuse-pap"
xl2tpd[263263]: xl2tpd[263263]: "refuse-chap"
xl2tpd[263263]: xl2tpd[263263]: "name"
xl2tpd[263263]: xl2tpd[263263]: "MY_NAME"
xl2tpd[263263]: xl2tpd[263263]: "file"
xl2tpd[263263]: xl2tpd[263263]: "/etc/ppp/options.l2tpd.client"
Without grepping through code of pppd I can't say who will win
command-line options or options sourced from whatever 'file' points to.
I suppose in order of sourcing.
pppd[263275]: Sent 242566 bytes, received 0 bytes.
I believe 'xl2tpd' is talking to /dev/null. This would explain why your
tunnel fails.
I hope, you already set up your tunnel then you can ignore this.
*CUT*
--
Torvalds' goal for Linux is very simple: World Domination
Stallman's goal for GNU is even simpler: Freedom
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)