Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Cannot connect to work VPN

  1. #1
    Join Date
    Apr 2013
    Beans
    10

    Cannot connect to work VPN

    Hi all. I've recently got 13.04 installed on my work machine and have everything set up and working like a dream (for work tasks Ubuntu is a revelation compared to Windows 7!), but I can't connect to VPN. I'm using L2TP IPsec VPN Manager 1.0.9.

    I have entered the ip address, secret key, username and password exactly as I have on my Windows VPN connection, but it doesn't work. I've had various error logs and below is the latest. If anyone can provide any advice, it would be much appreciated.

    Code:
    May 07 09:25:44.312 ipsec_setup: Starting Openswan IPsec U2.6.38/K3.8.0-19-generic...
    May 07 09:25:44.483 ipsec__plutorun: Starting Pluto subsystem...
    May 07 09:25:44.496 ipsec__plutorun: adjusting ipsec.d to /etc/ipsec.d
    May 07 09:25:44.497 recvref[30]: Protocol not available
    May 07 09:25:44.497 xl2tpd[4439]: This binary does not support kernel L2TP.
    May 07 09:25:44.497 xl2tpd[4450]: xl2tpd version xl2tpd-1.3.1 started on jameshart-Precision-M6700 PID:4450
    May 07 09:25:44.498 xl2tpd[4450]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc.
    May 07 09:25:44.498 xl2tpd[4450]: Forked by Scott Balmos and David Stipp, (C) 2001
    May 07 09:25:44.500 xl2tpd[4450]: Inherited by Jeff McAdams, (C) 2002
    May 07 09:25:44.501 xl2tpd[4450]: Forked again by Xelerance (www.xelerance.com) (C) 2006
    May 07 09:25:44.501 xl2tpd[4450]: Listening on IP address 0.0.0.0, port 1701
    May 07 09:25:44.502 Starting xl2tpd: xl2tpd.
    May 07 09:25:44.525 ipsec__plutorun: 002 added connection description "valtech"
    May 07 09:25:44.803 104 "valtech" #1: STATE_MAIN_I1: initiate
    May 07 09:25:44.803 003 "valtech" #1: ignoring Vendor ID payload [MS NT5 ISAKMPOAKLEY 00000004]
    May 07 09:25:44.804 003 "valtech" #1: ignoring Vendor ID payload [FRAGMENTATION]
    May 07 09:25:44.804 003 "valtech" #1: received Vendor ID payload [draft-ietf-ipsec-nat-t-ike-02_n] method set to=106 
    May 07 09:25:44.804 106 "valtech" #1: STATE_MAIN_I2: sent MI2, expecting MR2
    May 07 09:25:44.804 003 "valtech" #1: NAT-Traversal: Result using draft-ietf-ipsec-nat-t-ike-02/03: i am NATed
    May 07 09:25:44.805 108 "valtech" #1: STATE_MAIN_I3: sent MI3, expecting MR3
    May 07 09:25:44.805 004 "valtech" #1: STATE_MAIN_I4: ISAKMP SA established {auth=OAKLEY_PRESHARED_KEY cipher=oakley_3des_cbc_192 prf=oakley_sha group=modp1024}
    May 07 09:25:44.805 117 "valtech" #2: STATE_QUICK_I1: initiate
    May 07 09:25:44.806 003 "valtech" #2: ignoring informational payload, type IPSEC_RESPONDER_LIFETIME msgid=5fbb2b57
    May 07 09:25:44.806 003 "valtech" #2: our client subnet returned doesn't match my proposal - us:192.168.1.69/32 vs them:86.185.58.201/32
    May 07 09:25:44.806 003 "valtech" #2: Allowing questionable proposal anyway [ALLOW_MICROSOFT_BAD_PROPOSAL]
    May 07 09:25:44.807 000 "valtech" #2: peer client type is FQDN
    May 07 09:25:44.807 003 "valtech" #2: peer client subnet returned doesn't match my proposal - us:80.169.55.100/32 vs them:86.185.58.201/32
    May 07 09:25:44.807 003 "valtech" #2: Allowing questionable proposal anyway [ALLOW_MICROSOFT_BAD_PROPOSAL]
    May 07 09:25:44.807 003 "valtech" #2: IDcr was FQDN: vtlonvpn01.UK.valtech.com, using NAT_OA=0.0.0.0/32 as IDcr
    May 07 09:25:44.808 004 "valtech" #2: STATE_QUICK_I2: sent QI2, IPsec SA established transport mode {ESP=>0x9677b464 <0x698cfe95 xfrm=3DES_0-HMAC_SHA1 NATOA=none NATD=none DPD=none}
    May 07 09:25:45.809 xl2tpd[4450]: Connecting to host 80.169.55.100, port 1701
    May 07 09:25:50.815 xl2tpd[4450]: Maximum retries exceeded for tunnel 54766.  Closing.
    May 07 09:25:50.816 [ERROR  410]   Connection attempt to 'valtech' timed out
    May 07 09:25:50.819 xl2tpd[4450]: Connection 0 closed to 80.169.55.100, port 1701 (Timeout)
    May 07 09:25:50.827 xl2tpd[4450]: death_handler: Fatal signal 15 received
    May 07 09:25:50.828 Stopping xl2tpd: xl2tpd.
    May 07 09:25:50.839 ipsec_setup: Stopping Openswan IPsec...

    Last edited by matt_symes; May 7th, 2013 at 12:38 PM. Reason: Added code tags

  2. #2
    Join Date
    May 2010
    Location
    uk
    Beans
    9,249
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Cannot connect to work VPN

    Thread moved to Server Platforms.

    This may be a better sub forum for an answer.
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  3. #3
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,560
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Cannot connect to work VPN

    Quote Originally Posted by jimmyhart View Post
    Hi all. I've recently got 13.04 installed on my work machine and have everything set up and working like a dream (for work tasks Ubuntu is a revelation compared to Windows 7!), but I can't connect to VPN. I'm using L2TP IPsec VPN Manager 1.0.9.

    I have entered the ip address, secret key, username and password exactly as I have on my Windows VPN connection, but it doesn't work. I've had various error logs and below is the latest. If anyone can provide any advice, it would be much appreciated.

    Code:
    May 07 09:25:44.312 ipsec_setup: Starting Openswan IPsec U2.6.38/K3.8.0-19-generic...
    May 07 09:25:44.483 ipsec__plutorun: Starting Pluto subsystem...
    May 07 09:25:44.496 ipsec__plutorun: adjusting ipsec.d to /etc/ipsec.d
    May 07 09:25:44.497 recvref[30]: Protocol not available
    May 07 09:25:44.497 xl2tpd[4439]: This binary does not support kernel L2TP.
    May 07 09:25:44.497 xl2tpd[4450]: xl2tpd version xl2tpd-1.3.1 started on jameshart-Precision-M6700 PID:4450
    May 07 09:25:44.498 xl2tpd[4450]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc.
    May 07 09:25:44.498 xl2tpd[4450]: Forked by Scott Balmos and David Stipp, (C) 2001
    May 07 09:25:44.500 xl2tpd[4450]: Inherited by Jeff McAdams, (C) 2002
    May 07 09:25:44.501 xl2tpd[4450]: Forked again by Xelerance (www.xelerance.com) (C) 2006
    May 07 09:25:44.501 xl2tpd[4450]: Listening on IP address 0.0.0.0, port 1701
    May 07 09:25:44.502 Starting xl2tpd: xl2tpd.
    May 07 09:25:44.525 ipsec__plutorun: 002 added connection description "valtech"
    May 07 09:25:44.803 104 "valtech" #1: STATE_MAIN_I1: initiate
    May 07 09:25:44.803 003 "valtech" #1: ignoring Vendor ID payload [MS NT5 ISAKMPOAKLEY 00000004]
    May 07 09:25:44.804 003 "valtech" #1: ignoring Vendor ID payload [FRAGMENTATION]
    May 07 09:25:44.804 003 "valtech" #1: received Vendor ID payload [draft-ietf-ipsec-nat-t-ike-02_n] method set to=106 
    May 07 09:25:44.804 106 "valtech" #1: STATE_MAIN_I2: sent MI2, expecting MR2
    May 07 09:25:44.804 003 "valtech" #1: NAT-Traversal: Result using draft-ietf-ipsec-nat-t-ike-02/03: i am NATed
    May 07 09:25:44.805 108 "valtech" #1: STATE_MAIN_I3: sent MI3, expecting MR3
    May 07 09:25:44.805 004 "valtech" #1: STATE_MAIN_I4: ISAKMP SA established {auth=OAKLEY_PRESHARED_KEY cipher=oakley_3des_cbc_192 prf=oakley_sha group=modp1024}
    May 07 09:25:44.805 117 "valtech" #2: STATE_QUICK_I1: initiate
    May 07 09:25:44.806 003 "valtech" #2: ignoring informational payload, type IPSEC_RESPONDER_LIFETIME msgid=5fbb2b57
    May 07 09:25:44.806 003 "valtech" #2: our client subnet returned doesn't match my proposal - us:192.168.1.69/32 vs them:86.185.58.201/32
    May 07 09:25:44.806 003 "valtech" #2: Allowing questionable proposal anyway [ALLOW_MICROSOFT_BAD_PROPOSAL]
    May 07 09:25:44.807 000 "valtech" #2: peer client type is FQDN
    May 07 09:25:44.807 003 "valtech" #2: peer client subnet returned doesn't match my proposal - us:80.169.55.100/32 vs them:86.185.58.201/32
    May 07 09:25:44.807 003 "valtech" #2: Allowing questionable proposal anyway [ALLOW_MICROSOFT_BAD_PROPOSAL]
    May 07 09:25:44.807 003 "valtech" #2: IDcr was FQDN: vtlonvpn01.UK.valtech.com, using NAT_OA=0.0.0.0/32 as IDcr
    May 07 09:25:44.808 004 "valtech" #2: STATE_QUICK_I2: sent QI2, IPsec SA established transport mode {ESP=>0x9677b464 <0x698cfe95 xfrm=3DES_0-HMAC_SHA1 NATOA=none NATD=none DPD=none}
    May 07 09:25:45.809 xl2tpd[4450]: Connecting to host 80.169.55.100, port 1701
    May 07 09:25:50.815 xl2tpd[4450]: Maximum retries exceeded for tunnel 54766.  Closing.
    May 07 09:25:50.816 [ERROR  410]   Connection attempt to 'valtech' timed out
    May 07 09:25:50.819 xl2tpd[4450]: Connection 0 closed to 80.169.55.100, port 1701 (Timeout)
    May 07 09:25:50.827 xl2tpd[4450]: death_handler: Fatal signal 15 received
    May 07 09:25:50.828 Stopping xl2tpd: xl2tpd.
    May 07 09:25:50.839 ipsec_setup: Stopping Openswan IPsec...

    I don't know this program but you have loads of suspicious errors in the log. Are you sure you can do this L2TP connection with this client? Are you sure all settings are set up correctly? It also complains about subnets not matching, you might need to set the remote subnet yourself in this ubuntu client.

    I have highlighted few entries in the log above although I can't say I understand them fully.

    Have you tried any other vpn client? Or do you need a client at all?

    Once as a test, I connected to our work VPN with my ubuntu desktop at home, and I simply used the VPN section in Network Manager, without any special clients. Note that I think the connection was PPTP, not L2TP over IPsec, but I would look into Network Manager options too.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

  4. #4
    Join Date
    Apr 2013
    Beans
    10

    Re: Cannot connect to work VPN

    When I connect via Windows (it's the same with the people who have Macs), I have to specify a secret key/shared passphrase, I don't think the default Ubuntu manager allows for that. That's why I gave this tool a go. I tried the Cisco client and I had even less luck than with this client.

    I believe I have everything set up correctly, I will post some screenshots when I am next booted into Ubuntu.

  5. #5
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,560
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Cannot connect to work VPN

    I can't check right now also, and I don't remember all the options in Network Manager.
    But the fields it offers will depend on the type of connection. If you select PPTP, there will be no field for the IPsec shared key because it's not Ipsec connection.
    If the NM offers L2TP over Ipsec as type of connection, then there should be a field for the IPsec shared key, on top of the L2TP username and password. But I have no idea if you can set that type of connection with NM at all. I won't be able to check until tonight too.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

  6. #6
    Join Date
    Apr 2013
    Beans
    10

    Re: Cannot connect to work VPN

    No problem, thanks for your help so far. I've temporarily screwed up my install by trying to install nvidia drivers (can't get the panels and unity up now), so need to sort that out. When I finish work in an hour or so, I'll try and sort that out then post you some VPN info.

  7. #7
    Join Date
    Nov 2006
    Location
    Belgium
    Beans
    3,025
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Cannot connect to work VPN

    I agree with darkod : that log suggests your side is not configured correctly, or not set up at all

    I've had a quick look : default NM assumes you want PPTP (what everybody on windows is using)
    Most other VPN docu out there assumes you want OpenVPN (what everybody on Linux is using)

    here's someone who figured out how to do L2PT IPsec : http://bailey.st/blog/2011/07/14/con...buntu-desktop/
    more here : http://wiki.l2tpipsecvpn.tuxfamily.o...itle=Main_Page
    looks doable.
    Last edited by koenn; May 7th, 2013 at 09:43 PM.

  8. #8
    Join Date
    Oct 2011
    Location
    /root
    Beans
    956
    Distro
    Ubuntu

    Re: Cannot connect to work VPN

    I would Google each of those bad looking lines of the output you posted. If you solve them 1 by 1, it is bound to work.

    Other than that, I have no experience dealing with L2PT IPsec unfortunately.
    Last edited by d4m1r; May 8th, 2013 at 10:05 PM.


  9. #9
    Join Date
    Apr 2013
    Beans
    10

    Re: Cannot connect to work VPN

    Hi guys, sorry I haven't posted anything recently, I didn't have time Tuesday evening and was away all day yesterday. I'll have a look at koenn's links as well as my errors and post some information once I have it.

  10. #10
    Join Date
    Apr 2013
    Beans
    10

    Re: Cannot connect to work VPN

    Have tried to find solutions to the errors but not found anything yet. Since setting up my system again, I've installed it directly from the Ubuntu repositories rather than from ppa werner. I've got a very slightly different log which I've put below as well as the screenshots, in case they are any help. Have also put the output from sudo ipsec verify.

    Code:
    May 09 20:09:33.858 ipsec_setup: Stopping Openswan IPsec...May 09 20:09:35.284 Stopping xl2tpd: xl2tpd.
    May 09 20:09:35.311 ipsec_setup: Starting Openswan IPsec U2.6.38/K3.8.0-19-generic...
    May 09 20:09:35.489 Starting xl2tpd: xl2tpd.
    May 09 20:10:53.846 Last command timed out
    May 09 20:10:55.047 104 "vtlondon" #1: STATE_MAIN_I1: initiate
    May 09 20:10:55.047 003 "vtlondon" #1: ignoring Vendor ID payload [MS NT5 ISAKMPOAKLEY 00000004]
    May 09 20:10:55.047 003 "vtlondon" #1: ignoring Vendor ID payload [FRAGMENTATION]
    May 09 20:10:55.048 003 "vtlondon" #1: received Vendor ID payload [draft-ietf-ipsec-nat-t-ike-02_n] method set to=106 
    May 09 20:10:55.048 106 "vtlondon" #1: STATE_MAIN_I2: sent MI2, expecting MR2
    May 09 20:10:55.050 003 "vtlondon" #1: NAT-Traversal: Result using draft-ietf-ipsec-nat-t-ike-02/03: i am NATed
    May 09 20:10:55.050 108 "vtlondon" #1: STATE_MAIN_I3: sent MI3, expecting MR3
    May 09 20:10:55.051 004 "vtlondon" #1: STATE_MAIN_I4: ISAKMP SA established {auth=OAKLEY_PRESHARED_KEY cipher=oakley_3des_cbc_192 prf=oakley_sha group=modp1024}
    May 09 20:10:55.051 117 "vtlondon" #2: STATE_QUICK_I1: initiate
    May 09 20:10:55.051 003 "vtlondon" #2: ignoring informational payload, type IPSEC_RESPONDER_LIFETIME msgid=39e67670
    May 09 20:10:55.051 003 "vtlondon" #2: our client subnet returned doesn't match my proposal - us:192.168.1.69/32 vs them:86.146.7.169/32
    May 09 20:10:55.052 003 "vtlondon" #2: Allowing questionable proposal anyway [ALLOW_MICROSOFT_BAD_PROPOSAL]
    May 09 20:10:55.052 000 "vtlondon" #2: peer client type is FQDN
    May 09 20:10:55.052 003 "vtlondon" #2: peer client subnet returned doesn't match my proposal - us:80.169.55.100/32 vs them:86.146.7.169/32
    May 09 20:10:55.052 003 "vtlondon" #2: Allowing questionable proposal anyway [ALLOW_MICROSOFT_BAD_PROPOSAL]
    May 09 20:10:55.053 003 "vtlondon" #2: IDcr was FQDN: vtlonvpn01.UK.valtech.com, using NAT_OA=0.0.0.0/32 as IDcr
    May 09 20:10:55.053 004 "vtlondon" #2: STATE_QUICK_I2: sent QI2, IPsec SA established transport mode {ESP=>0x9ed1f3ba <0x5f1fcd7e xfrm=3DES_0-HMAC_SHA1 NATOA=none NATD=none DPD=none}
    Code:
    Checking your system to see if IPsec got installed and started correctly:Version check and ipsec on-path                                 [OK]
    Linux Openswan U2.6.38/K3.8.0-19-generic (netkey)
    Checking for IPsec support in kernel                            [OK]
     SAref kernel support                                           [N/A]
     NETKEY:  Testing XFRM related proc values                      [FAILED]
    
    
      Please disable /proc/sys/net/ipv4/conf/*/send_redirects
      or NETKEY will cause the sending of bogus ICMP redirects!
    
    
        [FAILED]
    
    
      Please disable /proc/sys/net/ipv4/conf/*/accept_redirects
      or NETKEY will accept bogus ICMP redirects!
    
    
        [OK]
    Checking that pluto is running                                  [OK]
     Pluto listening for IKE on udp 500                             [OK]
     Pluto listening for NAT-T on udp 4500                          [OK]
    Two or more interfaces found, checking IP forwarding        Checking NAT and MASQUERADEing                                  [OK]
    Checking for 'ip' command                                       [OK]
    Checking /bin/sh is not /bin/dash                               [WARNING]
    Checking for 'iptables' command                                 [OK]
    Opportunistic Encryption Support                                [DISABLED]

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •