How to configure Username/Password
77wisher77 opened this issue · 7 comments
There's no documentation for how to setup the username and password for clients to connect with, and I have been struggling to figure this out
as per the documentation my options.sstpd
has require-mschap-v2
Refer to pppd's document. For MSCHAPv2, the username and password are usually written on /etc/ppp/chap-secrets
.
Ok, so my /etc/ppp/chap-secrets
looks like
<username> SSTP <password> *
however i get this in the console of the server when i try and connect
WARNING Received errors from pppd
WARNING b"usr/sbin/pppd: The remote system is required to authenticate itself\n/usr/sbin/pppd: but I couldn't find any suitable secret (password) for it to use to do so.\n
I'm pretty sure im doing something wrong in the chap-secrets
file
I'm not sure what the server name in chap-secrets
should be. Try replace SSTP
with *
? Like <username> * <password> *
running coredumpctl info xxx
finds this:
Coredump
PID: 38119 (sstpd)
UID: 0 (root)
GID: 0 (root)
Signal: 11 (SEGV)
Timestamp: Sat 2023-03-25 09:41:11 AEST (4min 44s ago)
Command Line: /usr/bin/python3 /usr/bin/sstpd -l 192.168.1.163 -p 443 -c /etc/letsencrypt/live/testsstp.aliphaticus.net/fullch>
Executable: /usr/bin/python3.10
Control Group: /user.slice/user-0.slice/session-1.scope
Unit: session-1.scope
Slice: user-0.slice
Session: 1
Owner UID: 0 (root)
Boot ID: 63d08f28fc1b4c69b5914973b77a3f45
Machine ID: 2b89fc4394b64f0995c3dfd28930d0e9
Hostname: archkvmsstpsub
Storage: /var/lib/systemd/coredump/core.sstpd.0.63d08f28fc1b4c69b5914973b77a3f45.38119.1679701271000000.zst (present)
Size on Disk: 2.7M
Message: Process 38119 (sstpd) of user 0 dumped core.
Stack trace of thread 38119:
#0 0x00007fa7fe271500 n/a (codec.cpython-310-x86_64-linux-gnu.so + 0x1500)
#1 0x00007fa7fef412a8 n/a (libpython3.10.so.1.0 + 0x1412a8)
#2 0x00007fa7fef4676a _PyEval_EvalFrameDefault (libpython3.10.so.1.0 + 0x14676a)
#3 0x00007fa7fef570e9 _PyFunction_Vectorcall (libpython3.10.so.1.0 + 0x1570e9)
#4 0x00007fa7fef4676a _PyEval_EvalFrameDefault (libpython3.10.so.1.0 + 0x14676a)
#5 0x00007fa7fef44f80 n/a (libpython3.10.so.1.0 + 0x144f80)
#6 0x00007fa7fef626bd n/a (libpython3.10.so.1.0 + 0x1626bd)
#7 0x00007fa7fda1b544 n/a (loop.cpython-310-x86_64-linux-gnu.so + 0x10c544)
#8 0x00007fa7fd99a1fc n/a (loop.cpython-310-x86_64-linux-gnu.so + 0x8b1fc)
#9 0x00007fa7fd93ee0e n/a (loop.cpython-310-x86_64-linux-gnu.so + 0x2fe0e)
#10 0x00007fa7fd99a244 n/a (loop.cpython-310-x86_64-linux-gnu.so + 0x8b244)
#11 0x00007fa7fd9ac901 n/a (loop.cpython-310-x86_64-linux-gnu.so + 0x9d901)
#12 0x00007fa7fe4a40c1 uv_run (libuv.so.1 + 0xe0c1)
#13 0x00007fa7fd9450b6 n/a (loop.cpython-310-x86_64-linux-gnu.so + 0x360b6)
#14 0x00007fa7fd9406c8 n/a (loop.cpython-310-x86_64-linux-gnu.so + 0x316c8)
#15 0x00007fa7fd95da1b n/a (loop.cpython-310-x86_64-linux-gnu.so + 0x4ea1b)
#16 0x00007fa7fef59b24 n/a (libpython3.10.so.1.0 + 0x159b24)
#17 0x00007fa7fef4676a _PyEval_EvalFrameDefault (libpython3.10.so.1.0 + 0x14676a)
#18 0x00007fa7fef570e9 _PyFunction_Vectorcall (libpython3.10.so.1.0 + 0x1570e9)
#19 0x00007fa7fef46336 _PyEval_EvalFrameDefault (libpython3.10.so.1.0 + 0x146336)
#20 0x00007fa7fef570e9 _PyFunction_Vectorcall (libpython3.10.so.1.0 + 0x1570e9)
#21 0x00007fa7fef46336 _PyEval_EvalFrameDefault (libpython3.10.so.1.0 + 0x146336)
#22 0x00007fa7fef44f80 n/a (libpython3.10.so.1.0 + 0x144f80)
#23 0x00007fa7feff39e4 PyEval_EvalCode (libpython3.10.so.1.0 + 0x1f39e4)
#24 0x00007fa7ff004383 n/a (libpython3.10.so.1.0 + 0x204383)
#25 0x00007fa7fefffaea n/a (libpython3.10.so.1.0 + 0x1ffaea)
#26 0x00007fa7feea223f n/a (libpython3.10.so.1.0 + 0xa223f)
#27 0x00007fa7feea1ef0 _PyRun_SimpleFileObject (libpython3.10.so.1.0 + 0xa1ef0)
#28 0x00007fa7feea28a3 _PyRun_AnyFileObject (libpython3.10.so.1.0 + 0xa28a3)
#29 0x00007fa7ff010b5d Py_RunMain (libpython3.10.so.1.0 + 0x210b5d)
#30 0x00007fa7fefe4f3b Py_BytesMain (libpython3.10.so.1.0 + 0x1e4f3b)
#31 0x00007fa7fec3c790 n/a (libc.so.6 + 0x23790)
#32 0x00007fa7fec3c84a __libc_start_main (libc.so.6 + 0x2384a)
#33 0x00005612b7f8b045 _start (python3.10 + 0x1045)
Stack trace of thread 38122:
#0 0x00007fa7fec9b766 n/a (libc.so.6 + 0x82766)
#1 0x00007fa7fec9df90 pthread_cond_wait (libc.so.6 + 0x84f90)
#2 0x00007fa7fe4b452e uv_cond_wait (libuv.so.1 + 0x1e52e)
#3 0x00007fa7fe4a7aaf n/a (libuv.so.1 + 0x11aaf)
#4 0x00007fa7fec9ebb5 n/a (libc.so.6 + 0x85bb5)
#5 0x00007fa7fed20d90 n/a (libc.so.6 + 0x107d90)
Stack trace of thread 38124:
#0 0x00007fa7fec9b766 n/a (libc.so.6 + 0x82766)
#1 0x00007fa7fec9df90 pthread_cond_wait (libc.so.6 + 0x84f90)
#2 0x00007fa7fe4b452e uv_cond_wait (libuv.so.1 + 0x1e52e)
#3 0x00007fa7fe4a7aaf n/a (libuv.so.1 + 0x11aaf)
#4 0x00007fa7fec9ebb5 n/a (libc.so.6 + 0x85bb5)
#5 0x00007fa7fed20d90 n/a (libc.so.6 + 0x107d90)
Stack trace of thread 38123:
#0 0x00007fa7fec9b766 n/a (libc.so.6 + 0x82766)
#1 0x00007fa7fec9df90 pthread_cond_wait (libc.so.6 + 0x84f90)
#2 0x00007fa7fe4b452e uv_cond_wait (libuv.so.1 + 0x1e52e)
#3 0x00007fa7fe4a7aaf n/a (libuv.so.1 + 0x11aaf)
#4 0x00007fa7fec9ebb5 n/a (libc.so.6 + 0x85bb5)
#5 0x00007fa7fed20d90 n/a (libc.so.6 + 0x107d90)
Stack trace of thread 38121:
#0 0x00007fa7fec9b766 n/a (libc.so.6 + 0x82766)
#1 0x00007fa7fec9df90 pthread_cond_wait (libc.so.6 + 0x84f90)
#2 0x00007fa7fe4b452e uv_cond_wait (libuv.so.1 + 0x1e52e)
#3 0x00007fa7fe4a7aaf n/a (libuv.so.1 + 0x11aaf)
#4 0x00007fa7fec9ebb5 n/a (libc.so.6 + 0x85bb5)
#5 0x00007fa7fed20d90 n/a (libc.so.6 + 0x107d90)
ELF object binary architecture: AMD x86-64
Seems to be related to #46 same error
I'm running Arch linux, when installing python311 from the aur (before sstp-server) i get the error -bash: sstpd: command not found
I get the following error when trying to makepkg -sirc
sstp-server: ModuleNotFoundError: No module named 'setuptools
given the solution was to upgrade python I am unsure how to proceed
Edit: running python3 -m ensurepip
seemed to the sstpd command to run again, however i get the same Segmentation fault (core dumped)
error when running python311 (3.11)
Update, AUR python39 works!
Arch users Don't forget to symlink /usr/bin/python3.9 to /usr/bin/python3
Now I have an issue with the default gateway being 0.0.0.0, which stops internet access on clients, I'll open a new issue for that