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

CLI command for Saving & Applying configuration changes without rebooting?

Scheduled Pinned Locked Moved NAT
4 Posts 2 Posters 800 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.
  • S
    SpaceAvenger
    last edited by Jan 30, 2017, 9:11 PM

    I have a script I run that pulls assigned port forwards from PIA and adds these ports to an alias every hour. While these ports show up in the alias they are not really open until I manually save/apply the alias. Is there a cli command I can add to the end of my script that saves/applies these changes automatically?

    1 Reply Last reply Reply Quote 0
    • D
      doktornotor Banned
      last edited by Jan 30, 2017, 9:16 PM

      Like /etc/rc.reload_all ?

      1 Reply Last reply Reply Quote 0
      • S
        SpaceAvenger
        last edited by Jan 30, 2017, 10:26 PM

        Doesn't look like that's working. I've tried it both in the script and through SSH.  For whatever reason, this isn't working. Seems to hang my machine. At least the VPN interface.

        1 Reply Last reply Reply Quote 0
        • D
          doktornotor Banned
          last edited by Jan 30, 2017, 10:38 PM

          Well, it certainly doesn't hang anything. If you do this over VPN, well then that's a bad idea. If you want something less intrusive, use filter_configure_sync().

          Not a fan of similar craptastic hacks like messing with something from CLI that's not supposed to be used from CLI at all.

          1 Reply Last reply Reply Quote 0
          4 out of 4
          • First post
            4/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received