Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


ubuntu 12.04 ipsec server problem. Help needed
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

ubuntu 12.04 ipsec server problem. Help needed

dnwkdnwk Member
edited April 2013 in Help

Hi
I follow this guide to setup IPSEC/L2TP https://raymii.org/s/tutorials/IPSEC_L2TP_vpn_with_Ubuntu_12.04.html
However, when I set it up in Windows as a client, I cannot connect to the server. I look at syslog, it says it is listening on port 1701
But using netstat -a , port 1701 is not open. xl2tpd do show up in ps -A.
So I am very confusing where is the problem.

Comments

  • What is the output of:

    sudo ipsec verify

    Try restarting them:

    sudo /etc/init.d/xl2tpd restart
    sudo /etc/init.d/ipsec restart

  • dnwkdnwk Member

    Checking your system to see if IPsec got installed and started correctly:
    Version check and ipsec on-path [OK]
    Linux Openswan U2.6.37/K3.2.0-39-virtual (netkey)
    Checking for IPsec support in kernel [OK]
    SAref kernel support [N/A]
    NETKEY: Testing XFRM related proc values [OK]
    [OK]
    [OK]
    Checking that pluto is running [OK]
    Pluto listening for IKE on udp 500 [OK]
    Pluto listening for NAT-T on udp 4500 [OK]
    Checking for 'ip' command [OK]
    Checking /bin/sh is not /bin/dash [WARNING]
    Checking for 'iptables' command [OK]
    Opportunistic Encryption Support [DISABLED]

    And I have restart them multiple times.

  • dnwkdnwk Member

    bump

  • seem fine
    what is the problem? check the log

  • dnwkdnwk Member

    @johnlth93 said: seem fine

    what is the problem? check the log

    Yes. Log seems fine to me too. However, port 1701 is not listened.

  • liviuliviu Member

    share your xl2tpd.conf and ipsec.conf files

  • markmark Member

    I didn't get on with L2TP/IPSec in Ubuntu. Much more straightforward in CentOS using the many guides around. The only way I could easily get L2TP/IPSec to work in Ubuntu was with SoftEther - search it in LET, @lincoln made a step-by-step guide at http://linc01n.github.com/blog/2013/03/19/softether-on-vps/

  • @dnwk i got it working with debian fine though

    @mark softether is different, although it got l2tp but it's different. I don't think there's any problem in ubuntu and L2TP over IPSec

  • @dnwk said: Yes. Log seems fine to me too. However, port 1701 is not listened.

    Sure you're not firewalling it?

    @liviu said: share your xl2tpd.conf and ipsec.conf files

Sign In or Register to comment.