automated disconnect

Forums Network Management ZeroShell automated disconnect

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #41383


    my next question ๐Ÿ˜‰

    how can i disconnect a running pppoe-connection with cron.

    in germany the dsl-provider disconnect every 24 hours. if i disconnect at a given time i can controll the 24-hour-cycle.

    which command must i set to the cron to disconnect a pppoe-connection?

    bye woodym


    killall pppd

    should killl all point to point connections.




    the cron with “killall pppd” works nice in all ZS versions but isn’t work in 3.3.x
    The reconnect works, but the net balancer not notice this the connection was rebuilt = the connection remains on the status failed.
    (In Germany kill the most ISP’s the connection after 24 hours)

    I have in NetBalancer for this connection remove the hook “UP” and sit down again, then it works again and the connection is set to active.

    In the logs I find no clue why the NetBalancer the connection no longer recognizes:

    starting the killall pppd cron:
    14:52:20 Terminating on signal 15
    14:52:20 Connect time 364.7 minutes.
    14:52:20 Sent 210239120 bytes, received 2857866466 bytes.
    14:52:20 Connection terminated.
    14:52:20 Exit.
    14:52:25 pppd 2.4.3 started by root, uid 0
    14:52:25 Using interface ppp0
    14:52:25 Connect: ppp0 /dev/pts/0
    14:52:27 PAP authentication succeeded
    14:52:27 local IP address [clean_IP]
    14:52:27 remote IP address [clean_IP]

    14:52:20 PPPoE connection lost; attempting re-connection.

    14:52:28 [ICMP] No link detected with the gateway (VDSL)
    14:52:28 [ICMP] FAULT: VDSL (Interface: ppp0) [Last Uptime: 6h 4m 17s]
    14:52:28 Default Route has been changed: nexthop via weight 1 realm 100
    14:53:44 (TEST) ==============================================================
    14:53:44 (TEST) => [] : Success (Round Trip Time: 63.0 ms)
    14:53:44 (TEST) => [] : Success (Round Trip Time: 59.2 ms)
    14:53:44 (TEST) => [] : Success (Round Trip Time: 62.3 ms)
    14:53:44 (TEST) GATEWAY : VDSL (ppp0)
    14:53:47 (TEST) => [] : ERROR
    14:53:50 (TEST) => [] : ERROR
    14:53:53 (TEST) => [] : ERROR
    14:53:53 (TEST) ==============================================================
    14:53:53 [ICMP] Failover monitor has started
    14:54:29 [ICMP] Failover monitor has started
    14:54:31 Default Route has been changed: nexthop dev ppp0 weight 2 realm 101
    14:54:33 [ICMP] Failover monitor has started


    Edit: I take it all back… the netbalancer don’t work correctly in zs 3.3.2 with ppp connections. After the kill cron in the night, the netbalancer take the connection to the state “standby” (wight is upper = no standby for this connection). When disable the second connection (backup) go the state from standby to fault! (ppp connect is up! only the netbalancer report error for this connection to any test ip (TEST) => [] : ERROR)

    I disable the netbalancer in my productive environment as workaround.

    Old Message:
    I think i found the configuration solution:

    old ZS Release 3.2.x and older working the netbalancer perfect with the option in the ppp0 configure:

    Autostart the connection: “Yes”

    In the newer Releas 3.3.x working the netbalancer after a disconnect only with this option in the ppp0 configure:

    Autostart the connection: “On Net Balancer Fault”

    In the configure page i see the note:
    Note: Autostart the connection [On Net Balancer Fault] works if the PPPoE interface belongs to the Gateway Pool configured in the Net Balancer.


    I confirm…

    I have the same identical behaviour… ๐Ÿ™


    Same problem in ZS 3.3.2. Unable to bring-up PPOE after failure in net balancer without a manual de-activation / re-recativation of the net-balancer PPOE member entry.
    Needs also a manuel clean of the Gateway Alarm entry
    As far as I can remenber it was OK on ZS 3.3.1

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.