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 05-23-2017, 05:48 PM   #31
PROBLEMCHYLD
Member
 
Registered: Apr 2015
Posts: 730

Original Poster
Rep: Reputation: Disabled

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?

Code:
cppunit-1.14.0-i586-1.txz
ctemplate-2.3-i586-1.txz
GtkSu-0.1.6.tar.gz http://khapplications.darktech.org/p...ksu/gtksu.html
l2tp-ipsec-vpn_1.0.9.tar.gz https://launchpad.net/l2tp-ipsec-vpn/+download
l2tp-ipsec-vpn-daemon_0.9.9.tar.gz https://launchpad.net/l2tp-ipsec-vpn/+download
openswan-2.6.49.1-i586-1.txz
xl2tpd-1.3.9-i586-1.txz
These are the old files

Code:
ctemplate-2.3
gksu-2.0.2
libgksu-2.0.12
libgtop-2.34.0
l2tp-ipsec-vpn-daemon_n.n.n.tar.gz
l2tp-ipsec-vpn_n.n.n.tar.gz
openswan 2.6.49
xl2tpd 1.3.8
 
Old 07-23-2018, 02:43 PM   #32
PROBLEMCHYLD
Member
 
Registered: Apr 2015
Posts: 730

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-24-2018, 09:44 AM   #33
Regnad Kcin
Member
 
Registered: Jan 2014
Location: Beijing
Distribution: Slackware 64 -current .
Posts: 191

Rep: Reputation: 123Reputation: 123
wow. awesome.
 
  


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
[SOLVED] l2tp vs openvpn redwhat Linux - Security 6 09-24-2014 06:33 PM
[SOLVED] Learning L2TP/IPSEC certificate-based VPN - "syntax error in private key file"?? psycroptic Linux - Server 1 06-11-2014 11:17 PM
vpn l2tp aminbaik Linux - Networking 4 04-17-2012 09:21 AM
What is L2TP passthrough aparna8419 Linux - Networking 3 04-05-2007 12:41 PM
L2tp brabraa Linux - Networking 1 02-22-2002 01:20 AM

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

All times are GMT -5. The time now is 10:03 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration