Closed dlenski closed 6 years ago
This is kind of interesting: if I include the NetworkManager plugin in the pppd
command line, then everything works fine.
$ sudo pppd pty '/usr/sbin/sstpc VPN.CLIENT.COM --cert-warn --nolaunchpppd --ipparam sstp-CLIENT ' ipparam sstp-CLIENT usepeerdns require-mppe noauth user USERNAME password plugin /usr/lib/pppd/2.4.7/nm-sstp-pppd-plugin.so
# I can send traffic to/from the VPN
However, if I instead use plugin sstp-pppd-plugin.so sstp-sock /var/run/sstpc/sstpc-CLIENT linkname CLIENT
... it doesn't work.
Clearly, there is something I don't understand about how pppd and sstpc are supposed to talk to each other.
I think I figured this out. It's now working with the standard pppd plugin:
I was putting an extra blob in front of the --ipparam
argument, so that I was not pointing pppd
at the right socket. derp
This now works:
$ sudo pppd pty '/usr/sbin/sstpc VPN.CLIENT.COM --cert-warn --nolaunchpppd --ipparam CLIENT ' \
usepeerdns require-mppe noauth user USERNAME password \
plugin sstp-pppd-plugin.so sstp-sock /var/run/sstpc/sstpc-CLIENT
The use of the ipparam parameter is essential for sstp-client to get a callback from the pppd plugin. Thanks for troubleshooting and providing a workaround.
First off, many thanks for writing sstp-client and building the Debian/Ubuntu packages. (This is an amazingly great tool for everyone who has to deal with ancient MS VPNs!)
The NetworkManager/Gnome integration works well for me, but I am having trouble getting
sstpc
+pppd
to work standalone from the command line (withpppd
). The motivation is that I'd like to be able to connect on a headless server without NetworkManager. I'm using:sstpc launching pppd
When I run
sstpc
and tell it to launchpppd
, everything works fine and I can send traffic to the VPN, such as this example of a simple DNS lookup:pppd launching sstpc
However, if I instead run
pppd
and tell it to invokesstpc
, I cannot receive any traffic from the VPN:When I add
--log-level 4
to sstpc, I can see that the connection setup is going normally, but afterwards sstpc is never receiving packets from the peer, only sending them:Do you have any idea why this might be happening?
I would prefer to have pppd call sstpc, rather than the other way around, since it seems to make it easier to set up a pidfile to check that the connection is still up.