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

    Status Interfaces PPPOE Re-Connect Button

    Scheduled Pinned Locked Moved webGUI
    1 Posts 1 Posters 861 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.
    • R Offline
      ren22
      last edited by

      second time to create this thread … damn preview looses my work ... >:( >:( >:( >:(

      ok i added on Re-Connect Button to the Status Interface Menu cause i am to lazy to click everytime connect and then reconnect.
      (PfSense2.1)

      edit the file /usr/local/www/status_interfaces.php

      around line 40

      change this:

      if ($_GET['if']) {
      	$interface = $_GET['if'];
      	if ($_GET['action'] == "Disconnect" || $_GET['action'] == "Release") {
      		interface_bring_down($interface);
      	} else if ($_GET['action'] == "Connect" || $_GET['action'] == "Renew") {
      		interface_configure($interface); 
      	}
      	header("Location: status_interfaces.php");
      	exit;
      }
      

      to this :

      if ($_GET['if']) {
      	$interface = $_GET['if'];
      	if ($_GET['action'] == "Disconnect" || $_GET['action'] == "Release") {
      		interface_bring_down($interface);
      	} else if ($_GET['action'] == "Reconnect" || $_GET['action'] == "Renew") {
      		interface_configure($interface); 
      	}else if ($_GET['action'] == "Connect" || $_GET['action'] == "Renew") {
      		interface_configure($interface); 
      	}
      	header("Location: status_interfaces.php");
      	exit;
      }
      

      and around line 134

      
      				 [" class="formbtns" />](status_interfaces.php?action=Disconnect&if=<?php echo $ifdescr; ?>)  [" class="formbtns" />](status_interfaces.php?action=Connect&if=<?php echo $ifdescr; ?>) 
      ``` [to this :](status_interfaces.php?action=Connect&if=<?php echo $ifdescr; ?>) ```
       [](status_interfaces.php?action=Connect&if=<?php echo $ifdescr; ?>)  [" class="formbtns" />](status_interfaces.php?action=Disconnect&if=<?php echo $ifdescr; ?>)  [" class="formbtns" />](status_interfaces.php?action=Reconnect&if=<?php echo $ifdescr; ?>)  [" class="formbtns" />](status_interfaces.php?action=Connect&if=<?php echo $ifdescr; ?>) 
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.