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

    Auto-click 'connect' button

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 2 Posters 1.9k 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.
      Got many troubles because i need to get L2TP server using DHCP. Using information from this closed and usolved topic: http://forum.pfsense.org/index.php/topic,25465.45.html

      Situation: l2tp (ifconfig: l2tp0) doesn't start automatically, only manually form Status -> Interfaces -> l2tp0 -> Connect button.
      How can i start it from console?
      Found this: http://forum.pfsense.org/index.php/topic,21367.0.html
      Need something like described.

      #!/bin/sh
      
      if [ -f /var/run/l2tp_opt1.pid ]
          then
         echo "mpd is running" | logger
          else
         echo "mpd is dead" | logger
      fi
      
      

      instead logger i want to put smth like start_interface l2tp0 <is there="" any="" such="" command?="">Thanks in advance.</is>

      1 Reply Last reply Reply Quote 0
      • N
        ncat
        last edited by

        Still interested in this.

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          Not 100% on this but I think:

          /etc/rc.linkup l2tp0
          

          might work. Or something similar.  ::)

          Steve

          1 Reply Last reply Reply Quote 0
          • N
            ncat
            last edited by

            /etc/rc.linkup l2tp0 start
            

            actually.

            GREAT Big thanks!
            Now i can go further  :D

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