LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-13-2020, 01:40 PM   #16
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,184

Original Poster
Rep: Reputation: Disabled

I have been successful in setting up PSK on my Windows Server and have been able to tunnel in from Slackware.

So I'm able to connect through L2TP, PPTP, PSK and RDP. Also note, that routing is broken in PPTP Plugin and one needs to manually route or use a script like I have from here

http://www.techytalk.info/start-scri...ul-connection/ and adding it to /etc/NetworkManager/dispatcher.d/

PSK and L2TP routes just fine.

I revised the script to my liking ppp0.sh

Code:
#!/bin/bash

IF=$1
STATUS=$2

if [ "$IF" == "ppp0" ]
then
    case "$2" in
        up)
        logger -s "NetworkManager PPTP VPN"
        /sbin/route add -net 192.168.0.0 netmask 255.255.255.0 dev ppp0 metric 50
        ;;
        *)
        ;;
    esac
fi
If you willing to take another stab at it, I will try to assist you.
 
Old 11-22-2021, 12:38 PM   #17
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,184

Original Poster
Rep: Reputation: Disabled
This is an update

1. We need to patch the source ppp from Slackware

https://mirrors.slackware.com/slackw...es/source/ppp/ with https://www.nikhef.nl/~janjust/ppp/ install after compile completes

2. Compile the pptp from https://slackbuilds.org/repository/14.2/network/pptp/ I'm using pptp-1.10.0-x86_64-1.txz

3. Compile the NetworkManager-pptp from https://slackbuilds.org/repository/1...kManager-pptp/ I'm using 1.2.9

4. Backup your original libcrypto.pc + libnm.pc to a safe location and replace it by changing the version in both files to a newer version in /usr/lib64/pkgconfig/

5. Compile the NetworkManager-l2tp from https://slackbuilds.org/repository/1...kManager-l2tp/ I'm using 1.20.0 https://github.com/nm-l2tp/NetworkManager-l2tp
after compile completes, replace newer libcrypto.pc + libnm.pc with original from the backup

6. Compile the strongswan from https://slackbuilds.org/repository/1...?search=strong I'm using strongswan-5.9.4-x86_64-1.txz

7. Compile the kl2tpd a.k.a (go-l2tp) from https://github.com/katalix/go-l2tp I'm using kl2tpd latest version.

8. Also note, that routing is broken in PPTP Plugin and one needs to manually route or use a script like I have from here

http://www.techytalk.info/start-scri...ul-connection/ and adding it to /etc/NetworkManager/dispatcher.d/

PSK and L2TP routes just fine.

I revised the script like so

ppp0.sh
Code:
#!/bin/bash

IF=$1
STATUS=$2

if [ "$IF" == "ppp0" ]
then
    case "$2" in
        up)
        logger -s "NetworkManager PPTP VPN"
        /sbin/route add -net 192.168.0.0 netmask 255.255.255.0 dev ppp0 metric 50
        ;;
        *)
        ;;
    esac
fi
I can enjoy my L2TP/PPTP + IPSec server with a gui. YAY!!

Last edited by PROBLEMCHYLD; 11-22-2021 at 12:43 PM.
 
Old 11-27-2021, 06:51 AM   #18
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 817

Rep: Reputation: 207Reputation: 207Reputation: 207
Quote:
Originally Posted by PROBLEMCHYLD View Post
strongswan 5.9.0 seems to work, set all your configs to default PPP, L2TP IPSEC XL2TPD strongswan etc... and configure like so in the screenshot, as you can see, I have an active connection but with certificates.
Hi, sorry for my late response. I got it going as well (end of April); the email I sent to the computer guys at work says it all:-)
Quote:
Hi,

I solved this issue. Of course it was rooted in a stupid oversight.
Maybe it is advisable to update the instruction page at
https://www.edweb.ed.ac.uk/informati...s/linux-ubuntu
where it says:

"User Name: <uun> "

to

"User Name: <Your university username (uun; no brackets)> "

Then literally minded idiots such as me won't lose and waste others'
time... (i.e. yours).

You see, windows-network Gui users like me only see a web page when
logging on with a request for their username (without seeing 'uun' or
<uun>).

Therefore, the usage here of <uun> is baffling until one realises
that this stands for their username. Filling that in makes the whole
shebang work, even on Slackware-current (15.0beta), with
having installed NetworkManager-l2tp-1.8.6, Strongswan-5.9.1,
xl2tpd-1.3.15, and pppd-2.4.9. ;-)


Hth

Rob
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VPN server for Android 2.1 PPTP and L2TP/IPSEC no luck so far tekhead2 Linux - Mobile 9 06-25-2012 12:50 PM
outbound VPN's fail (pptp/l2tp/ipsec) RattleSn@ke Linux - Security 3 05-21-2008 04:55 PM
IPSEC/L2TP VPN Server on Fedora Core 3 using Kernel 2.6 petwalrus Linux - Networking 3 04-21-2005 11:55 AM
IPsec/L2TP VPN question IPsecLearner Linux - Networking 3 04-19-2005 12:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration