SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm going to continue my endeavor with L2TP/IPSEC VPN.
These are the updated files I'll try using. If someone is willing to guide me through the process, maybe I can get working completely. Is it possible to get a slackbuild for the 3 .gz packages?
After years of struggling, I was finally able to tunnel into my Windows Server with L2TP /w certificates.
Code:
[root@darkstar:Desktop] # ./l2tp.sh
********** starting ipsec ...
Starting strongSwan 5.6.3 IPsec [starter]...
********** starting xl2tpd ...
********** Opening the IPsec connection ...
initiating Main Mode IKE_SA L2TP[1] to 192.168.0.99
generating ID_PROT request 0 [ SA V V V V V ]
sending packet: from 192.168.0.12[500] to 192.168.0.99[500] (236 bytes)
received packet: from 192.168.0.99[500] to 192.168.0.12[500] (148 bytes)
parsed ID_PROT response 0 [ SA V V V ]
received MS NT5 ISAKMPOAKLEY vendor ID
received FRAGMENTATION vendor ID
received draft-ietf-ipsec-nat-t-ike-02\n vendor ID
generating ID_PROT request 0 [ KE No NAT-D NAT-D ]
sending packet: from 192.168.0.12[500] to 192.168.0.99[500] (244 bytes)
received packet: from 192.168.0.99[500] to 192.168.0.12[500] (293 bytes)
parsed ID_PROT response 0 [ KE No CERTREQ NAT-D NAT-D ]
received cert request for 'C=US, O=TSI, OU=VPN, CN=CA'
sending cert request for "C=US, O=TSI, OU=VPN, CN=CA"
authentication of 'C=US, O=TSI, OU=VPN, CN=CC' (myself) successful
sending end entity cert "C=US, O=TSI, OU=VPN, CN=CC"
generating ID_PROT request 0 [ ID CERT SIG CERTREQ ]
splitting IKE message with length of 1260 bytes into 2 fragments
generating ID_PROT request 0 [ FRAG(1) ]
generating ID_PROT request 0 [ FRAG(2/2) ]
sending packet: from 192.168.0.12[500] to 192.168.0.99[500] (1252 bytes)
sending packet: from 192.168.0.12[500] to 192.168.0.99[500] (80 bytes)
received packet: from 192.168.0.99[500] to 192.168.0.12[500] (1204 bytes)
parsed ID_PROT response 0 [ ID CERT SIG ]
received end entity cert "C=US, O=TSI, OU=VPN, CN=SC"
using certificate "C=US, O=TSI, OU=VPN, CN=SC"
using trusted ca certificate "C=US, O=TSI, OU=VPN, CN=CA"
checking certificate status of "C=US, O=TSI, OU=VPN, CN=SC"
certificate status is not available
reached self-signed root ca with a path length of 0
authentication of 'C=US, O=TSI, OU=VPN, CN=SC' with RSA_EMSA_PKCS1_NULL successful
IKE_SA L2TP[1] established between 192.168.0.12[C=US, O=TSI, OU=VPN, CN=CC]...192.168.0.99[C=US, O=TSI, OU=VPN, CN=SC]
scheduling reauthentication in 27807s
maximum IKE_SA lifetime 28347s
generating QUICK_MODE request 2891334313 [ HASH SA No ID ID ]
sending packet: from 192.168.0.12[500] to 192.168.0.99[500] (196 bytes)
received packet: from 192.168.0.99[500] to 192.168.0.12[500] (180 bytes)
parsed QUICK_MODE response 2891334313 [ HASH SA No ID ID N((24576)) ]
CHILD_SA L2TP{1} established with SPIs c6e64807_i fdae6cb4_o and TS 192.168.0.12/32[udp/l2f] === 192.168.0.99/32[udp/l2f]
connection 'L2TP' established successfully
********** Opening the L2TP tunnel ...
********** Setting 192.168.0.106 as the gateway on the remote network
[root@darkstar:Desktop] # ipsec status
Security Associations (1 up, 0 connecting):
L2TP[1]: ESTABLISHED 4 minutes ago, 192.168.0.12[C=US, O=TSI, OU=VPN, CN=CC]...192.168.0.99[C=US, O=TSI, OU=VPN, CN=SC]
L2TP{1}: INSTALLED, TRANSPORT, reqid 1, ESP SPIs: c2d73f22_i 3c6951a8_o
L2TP{1}: 192.168.0.12/32[udp/l2f] === 192.168.0.99/32[udp/l2f]
Last edited by PROBLEMCHYLD; 07-23-2018 at 04:23 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.