Cannot connect to SSTP server

Help
Zurd
2014-08-12
2014-08-15
  • Zurd
    Zurd
    2014-08-12

    Using sstp-client version 1.0.9. Compiling went without any problem. I'm using the exact same example files and lines as the documentation state but it's not working.

    /etc/ppp/chap-secrets
    SSTP-TEST\MYUSERNAME sstp-test 'MYPASSWORD' *

    /etc/ppp/peers/sstp-test
    remotename sstp-test
    linkname sstp-test
    ipparam sstp-test
    pty "sstp-client --server MYSERVER --nolaunchpppd "
    name SSTP-TEST\MYUSERNAME
    plugin sstp-pppd-plugin.so
    sstp-sock /tmp/sstpc-uds-sock
    usepeerdns
    require-mppe
    refuse-eap
    noauth
    debug

    sudo pon sstp-test

    sudo plog

    Aug 12 13:47:46 z-PC pppd[30028]: Using interface ppp0
    Aug 12 13:47:46 z-PC pppd[30028]: Connect: ppp0 <--> /dev/pts/7
    Aug 12 13:47:46 z-PC pppd[30028]: Modem hangup
    Aug 12 13:47:46 z-PC pppd[30028]: Connection terminated.
    Aug 12 13:47:46 z-PC pppd[30028]: Script sstp-client --server MYSERVER --nolaunchpppd finished (pid 30029), status = 0x7f
    Aug 12 13:47:46 z-PC pppd[30028]: Exit.

    ping MYSERVER
    ping: unknown host MYSERVER

    I can connect to it in Windows 7 just fine.

     
  • Zurd
    Zurd
    2014-08-13

    sudo nano /etc/ppp/options
    add at the end:
    usepeerdns
    refuse-pap
    refuse-eap
    refuse-chap
    refuse-mschap
    require-mppe

    sudo sstpc --log-level 4 --save-server-route --log-stderr --user MYUSER --password MYPASSWORD MYSERVER

    Doing this above works, I connect to the SSTP server however it's still not working, I cannot ping anything on the other network I'm trying to connect.

    ifconfig shows:
    ppp0 Link encap:Point-to-Point Protocol
    inet addr:192.168.15.185 P-t-P:192.168.15.180 Mask:255.255.255.255
    UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1496 Metric:1
    RX packets:9 errors:0 dropped:0 overruns:0 frame:0
    TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:3
    RX bytes:114 (114.0 B) TX bytes:126 (126.0 B)

    I can ping 192.168.15.180 but nothing else on the network.

    The log of sstpc shows:
    Aug 13 16:37:49 sstpc[20622]: Could not create directory: /usr/var/run/sstpc, No such file or directory (2)
    Aug 13 16:37:49 sstpc[20622]: Could not access or create runtime directory
    Aug 13 16:37:49 sstpc[20622]: Could not create directory: /usr/var/run/sstpc, No such file or directory (2)
    Aug 13 16:37:49 sstpc[20622]: Could not access or create privilege separation directory, /usr/var/run/sstpc
    Aug 13 16:37:50 sstpc[20622]: Resolved MYSERVER to xx.xx.xx.xx
    Aug 13 16:37:50 sstpc[20622]: Connected to MYSERVER
    Aug 13 16:37:50 sstpc[20622]: Sending Connect-Request Message
    Aug 13 16:37:50 sstpc[20622]: SSTP CRTL PKT(14)
    Aug 13 16:37:50 sstpc[20622]: TYPE(1): CONNECT REQUEST, ATTR(1):
    Aug 13 16:37:50 sstpc[20622]: ENCAP PROTO(1): 6
    Aug 13 16:37:50 sstpc[20622]: SSTP CRTL PKT(48)
    Aug 13 16:37:50 sstpc[20622]: TYPE(2): CONNECT ACK, ATTR(1):
    Aug 13 16:37:50 sstpc[20622]: CRYPTO BIND REQ(4): 40
    Aug 13 16:37:50 sstpc[20622]: Started PPP Link Negotiation
    Aug 13 16:37:50 sstpc[20622]: SSTP DATA PKT(28)
    Aug 13 16:37:50 sstpc[20622]: SSTP DATA PKT(64)
    Aug 13 16:37:50 sstpc[20622]: SSTP DATA PKT(23)
    Aug 13 16:37:50 sstpc[20622]: SSTP DATA PKT(28)
    Aug 13 16:37:50 sstpc[20622]: SSTP DATA PKT(53)
    Aug 13 16:37:50 sstpc[20622]: SSTP DATA PKT(17)
    Aug 13 16:37:50 sstpc[20622]: SSTP DATA PKT(54)
    Aug 13 16:37:50 sstpc[20622]: SSTP DATA PKT(54)
    Aug 13 16:37:50 sstpc[20622]: SSTP DATA PKT(14)
    Aug 13 16:37:50 sstpc[20622]: SSTP DATA PKT(32)
    Aug 13 16:37:50 sstpc[20622]: SSTP DATA PKT(64)
    Aug 13 16:37:50 sstpc[20622]: SSTP DATA PKT(14)
    Aug 13 16:37:50 sstpc[20622]: SSTP DATA PKT(52)
    Aug 13 16:37:50 sstpc[20622]: SSTP DATA PKT(16)
    Aug 13 16:37:51 sstpc[20622]: SSTP DATA PKT(16)
    Aug 13 16:37:51 sstpc[20622]: SSTP DATA PKT(16)
    Aug 13 16:37:51 sstpc[20622]: SSTP DATA PKT(16)
    Aug 13 16:37:51 sstpc[20622]: Sending Connected Message
    Aug 13 16:37:51 sstpc[20622]: SSTP CRTL PKT(112)
    Aug 13 16:37:51 sstpc[20622]: TYPE(4): CONNECTED, ATTR(1):
    Aug 13 16:37:51 sstpc[20622]: CRYPTO BIND(3): 104
    Aug 13 16:37:51 sstpc[20622]: Connection Established
    Aug 13 16:37:51 sstpc[20622]: Could not change working directory, No such file or directory (2)
    Aug 13 16:37:51 sstpc[20622]: Could not enter privilege directory
    Aug 13 16:37:51 sstpc[20622]: SSTP DATA PKT(10)
    Aug 13 16:37:51 sstpc[20622]: SSTP DATA PKT(16)
    Aug 13 16:37:51 sstpc[20622]: SSTP DATA PKT(16)
    Aug 13 16:37:51 sstpc[20622]: SSTP DATA PKT(16)
    Aug 13 16:37:51 sstpc[20622]: SSTP DATA PKT(16)

     
    • Eivind
      Eivind
      2014-08-15

      Hi,
      There's probably two things you want to check:
      1) The user you specify should be a user created specifically for SSTP with no console / login rights. Usually, the installation would create a user sstpc.
      2) Your route problem is likely due to the fact you are configured to use a split tunnel. You'll have to locate the if-up scripts and add specific routes to your remote network(s)

      Let me know if that works for you. The network-manager-sstp plugin accepts routes and does that part for you.