1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice

Welcome To SNBForums

SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.

If you'd like to post a question, simply register and have at it!

While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!

SSH restart_wan not working

Discussion in 'Asuswrt-Merlin' started by 0x1D12ED, Oct 14, 2019.

  1. 0x1D12ED

    0x1D12ED New Around Here

    Joined:
    Oct 13, 2019
    Messages:
    6
    I`ve tried several methods to reconnect WAN (4G USB stick) through SSH but none of them worked.

    Is there a way (command) to reconnect WAN without reboot the router itself?

    I would like to make an automated reconnect script but restart_wan doesn`t work. I only get disconnected by it.
     
  2. Butterfly Bones

    Butterfly Bones Very Senior Member

    Joined:
    Apr 10, 2017
    Messages:
    951
    Location:
    USA
    Try this via SSH and see if it works.
    Code:
    service restart_wan
     
  3. 0x1D12ED

    0x1D12ED New Around Here

    Joined:
    Oct 13, 2019
    Messages:
    6
    No, that doesn`t work. It disconnects but doesnt reconnect

    The forum blocks me if I try to paste some lines of my syslog :D :D :D

    Tried the forums search as well but:

    Search Results for Query: wan restart not working
    1. The following words were not included in your search because they are too short, too long, or too common: wan, not
     
    Last edited: Oct 15, 2019
  4. Butterfly Bones

    Butterfly Bones Very Senior Member

    Joined:
    Apr 10, 2017
    Messages:
    951
    Location:
    USA
    Yes, that is the Cloudflare anti-spam "feature". The workaround is to upload the syslog to pastebin.com and post the link here.
    https://pastebin.com/
     
  5. 0x1D12ED

    0x1D12ED New Around Here

    Joined:
    Oct 13, 2019
    Messages:
    6
    This is my log. I removed some ovpn lines and replaced some IPs with ###

    https://pastebin.com/bjLpNvmc

    I noticed when I reconnect using the config page I see "restart_wan_if 0" in syslog but I cannot use "service restart_wan_if 0" in SSH
     
    Last edited: Oct 15, 2019