Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Manual L2TP Connection via shell

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 2 Posters 835 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      gerhard
      last edited by

      Hi guys,
      Seems like I need to set up a manual connection as the webgui doesn't allow the ISP's parameters to be filled in.
      Can anyone guide me in the right direction to create this L2TP vpn connection to my ISP.
      These are the parameters they supply.

      Router Configuration Settings
      –---------------------------
      Connection Type: Remote Access
      Type: Dial Out
      Sever IP:         196.30.121.50
      Username: Your DSL Username
      Password:         Your DSL Password
      Authentication Type: PAP
      Tunnel Authentication: Yes
      Secret: h3lp
      Active as Default Route:Yes
      IPSec: No

      Thank you.

      1 Reply Last reply Reply Quote 0
      • G
        gerhard
        last edited by

        Is mdp5 the correct way to initiate this conncetion?

        This is what I have configured in mdp5 but it isn't working as expected. What am I doing wrong?

        [] create bundle static L2TP
        [L2TP] Bundle: Interface ng1 created
        [L2TP] set ipcp no vjcomp
        [L2TP] set bundle disable crypt-reqd
        [L2TP] set ipcp ranges 0.0.0.0/0 0.0.0.0/0
        [L2TP] set iface idle 0
        [L2TP] set iface enable nat
        [L2TP] set iface enable tcpmssfix
        [L2TP] set iface up-script /usr/local/etc/mpd5/up.sh
        [L2TP] set iface down-script /usr/local/etc/mpd5/down.sh
        [L2TP] create link static L2 l2tp
        [L2] set link action bundle L2TP
        [L2] set link mtu 1440
        [L2] set link latency 0
        [L2] set link max-redial 1
        [L2] set link redial-delay 60
        [L2] set link accept pap
        [L2] set link keep-alive 10 75
        [L2] set l2tp peer 196.30.121.50
        [L2] set auth authname ***************
        [L2] set auth password ********
        [L2] set l2tp secret h3lp
        [L2] open
        [L2] [L2] Link: OPEN event
        [L2] LCP: Open event
        [L2] LCP: state change Initial –> Starting
        [L2] LCP: LayerStart
        L2TP: Initiating control connection 0x80303b610 0.0.0.0 0 <-> 196.30.121.50 1701
        L2TP: Control connection 0x80303b610 105.237.xxx.xxx 11663 <-> 196.30.121.50 1701 connected
        [L2] L2TP: Incoming call #3140000 via control connection 0x80303b610 initiated
        [L2] L2TP: call #3140000 terminated: result=2 error=6 errmsg="control connection closing"
        [L2] Link: DOWN event
        [L2] LCP: Down event
        [L2] Link: reconnection attempt 1 in 63 seconds
        L2TP: Control connection 0x80303b610 terminated: 8 (tunnel receive scccn avp unknown)
        L2TP: Control connection 0x80303b610 destroyed

        1 Reply Last reply Reply Quote 0
        • D
          dmitryluhtionov
          last edited by

          Enable log phys, phys2 and phys3 to get more verbose output, please

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.