Navigation

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

    Manual WAN connect/disconnect

    General pfSense Questions
    1
    1
    266
    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.
    • H
      highc last edited by

      I must have used the wrong search words, can't believe that this question has not been asked before:

      How can I manually, via the command line, connect or disconnect (not: reconnect) the PPPoE etc. WAN connection?

      I found that

      ifconfig pppoe0 up
      
      ifconfig pppoe0 down
      

      should not be used, and for reconnect I found

      /usr/local/sbin/pfSctl -c 'interface reload wan' >/dev/null 2>&1 || exit 1
      

      or for ipv6

      /usr/local/sbin/ppp-ipv6 pppoe0 down ; pkill -xf '^.*dhcp6c.*pppoe0$' ; sleep 2 ; /usr/local/sbin/ppp-ipv6 pppoe0 up
      

      However, I'm not just looking for an option to reconnect WAN. The WAN connection I'm configuring is via 3G/4G, with online time costing money. So I am looking for a possibility to specifically connect/disconnect WAN if/when needed (via SSH).

      Thanks!

      pfSense 2.4.5p1 on Netgate SG-2440 - just upgraded to 2.5.2
      pfSense 2.4.5p1 on Super Micro 5018D-FN4T - just upgraded to 2.5.2

      1 Reply Last reply Reply Quote 0
      • First post
        Last post