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

    L2tp not starting after bootup + question about dhclient options

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 1 Posters 1.6k 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.
    • N
      ncat
      last edited by

      Hello everyone.
      Got a two questions:

      1. L2TP connection not starting after bootup (PPP log is empty) and sometimes after losing a connection, so i have to launch web-interface and click on "connect" button (Status -> Interfaces -> l2tp). Is there any solution to do this automatically after bootup?

      2. How can i set up dhclient parameters? (for example request domain-name-servers, option-249, classless-routes, routers, subnet-mask;). I need to do that because of strangeness of my ISP, which sends or not sends static routes via DHCP using the next options: 33, 121, 249. This situation seems to be different at different areas of my city. Anyway, i m not a specialist and just want to recieve static routes (like on Windows or Asus wl500gp router).

      p.s.

      • using pfSense 2.0
      • connection scheme is: WAN = local IP + local network + route to L2TP server => L2TP = real IP + internet
      • not good at engish
      1 Reply Last reply Reply Quote 0
      • N
        ncat
        last edited by

        l2tp working only "manually" since described problem appeared when i returned back commented code in interfaces.inc to be able to write hostname as l2tp remote server
        (thx Lexvel)

         if (!$g['booting'] && !is_ipaddr($gateways[$pid]) && is_hostname($gateways[$pid])) {
                       /* XXX: Fix later */
                       $gateways[$pid] = gethostbyname($gateways[$pid]);
                       if(!is_ipaddr($gateways[$pid])) {
                          log_error("Could not get a valid Gateway IP from {$port} via DNS in interfaces_ppps_configure.");
                          return 0;
                       }
        

        it is still vital to get l2tp server via dhcp for me and some other users from my country (my ISP seems to be popular in Russia), so still hoping someone will help.

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