Reproducing an issue I raised on the github repo here.
--- START OF xl2tpd.conf ---*SKIP*
[global]
auth file = /etc/ppp/chap-secrets*SKIP*
[lac MY_CONNECTION]*SKIP*
refuse pap = yes*SKIP*
refuse chap = yes
require authentication = yes
--- START OF options.l2tpd.client ---*SKIP*
noauth*SKIP*
refuse-mschap*SKIP*
require-mschap-v2
Unfortunately, I have no idea what is going on here. Can anyone help me
get this sorted out?
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]
pppd[74443]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MS-v2>
<magic MAGIC_NUM_1>]
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"]
--- START OF LOG OUTPUT 2 ---
pppd[263275]: local IP address 192.168.187.113
ipcp-accept-local
ipcp-accept-remote
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"
pppd[263275]: Sent 242566 bytes, received 0 bytes.
with <t2g132$qns$1@bidski.eternal-september.org> Bidski wrote:
Reproducing an issue I raised on the github repo here.
Disclaimer: I have no idea what 'xl2tpd' is, supposedely some VPN establishing thing. Now,
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.
--- 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:
I hope, you already set up your tunnel then you can ignore this.
On 9/4/22 06:11, Eric Pozharski wrote:
with <t2g132$qns$1@bidski.eternal-september.org> Bidski wrote:
Github issue can be found hereReproducing an issue I raised on the github repo here.
https://github.com/ppp-project/ppp/issues/335
Disclaimer: I have no idea what 'xl2tpd' is, supposedely some VPNxl2tpd is https://github.com/xelerance/xl2tpd, the Xelerance
establishing thing. Now,
implementation of the Layer 2 Tunneling Protocol
something doesn't feel right about this. I'm not sure that xl2tpdMy understanding of 'noauth' is that it is meant to prevent 'pppd'
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.
from requiring the peer to authenticate itself. To my understanding
this is what I want to happen. I need to authenticate myself to the
peer (which is why there is "<auth chap MS-v2>" stuff in the log
files), but the peer doesn't need to authenticate itself to me. My understanding from what was said in the github issue is that the "CHAP Response" stuff is the result of me trying to make the peer
authenticate itself to me.
This IP address would have been the address that was assigned to me (I--- START OF LOG OUTPUT 2 --- pppd[263275]: local IP addressRetorical question, where this comes from? Your 'options.*' (for
192.168.187.113
pppd) clearly states:
assume by the VPN peer?) when the connection to the VPN was
established and authenticated. My LAN is on a 10.0.X.X subnet.
I hope, you already set up your tunnel then you can ignore this.Unfortunately, I am still no closer to getting this connection working
yet. At this point I am very lost in the sea of options and log
outputs.
Meanwhile, I suggest dropping all 'require-*' and 'refuse-*' lines from 'options.l2tpd.client', keeping 'ipcp-accept-*'; moving 'chap-secrets'
to '/etc/xl2tpd/l2tp-secrets' (I insist, where it belongs); adjusting
'auth file' line of 'xl2tpd.conf' accordingly; and try xl2tpd again.
Look, it's not working now, it might not work differently.
On 13/4/22 20:09, Eric Pozharski wrote:
Meanwhile, I suggest dropping all 'require-*' and 'refuse-*' linesI tried moving the contents of 'chap-secrets' into 'l2tp-secrets',
from 'options.l2tpd.client', keeping 'ipcp-accept-*'; moving
'chap-secrets' to '/etc/xl2tpd/l2tp-secrets' (I insist, where it
belongs); adjusting 'auth file' line of 'xl2tpd.conf' accordingly;
and try xl2tpd again. Look, it's not working now, it might not work
differently.
however, ppp then complains that "No auth is possible", if I also
remove the line "name MY_NAME" from the ppp options file then no
connection is established at all (literally nothing happens with no
output from pppd or xl2tpd). With "name MY_NAME" and the corresponding
secret in 'chap-secrets' ppp will establish and authenticate me to the
peer and with the same secret in 'l2tp-secrets' xl2tpd also
authenticates me to the peer and I have an active connection.
Adding a route to direct all VPN traffic through the ppp0 interface
allows me to ping IP addresses that I know are on the server side of
the connection, and there is a webserver that I can access through my browser, so that all seems good.
Unfortunately, I am unable to ssh into machines that I know I should
be able to ssh into. I don't currently have the logs available to me
at the moment, but I think ssh is waiting for a response from the
remote server and is not getting it. Do you know if there is anything specific I need to do to allow ssh to work over the VPN connection?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 248 |
Nodes: | 16 (2 / 14) |
Uptime: | 39:37:59 |
Calls: | 5,494 |
Calls today: | 2 |
Files: | 11,664 |
Messages: | 5,037,478 |
Posted today: | 2 |