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

    CMD reload config only alias, nat and firewall

    General pfSense Questions
    2
    2
    349
    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
      StefanKittel
      last edited by StefanKittel

      Hello,

      I have about 100 alias definded with one LAN-ip each.
      server06 -> 192.168.10.10

      These alias have i used in about 100 NAT-Port-Forwardings.
      40001 -> server06:443

      I'm writing a small script which reads the DHCL-Lease-DB, updates alias in the config.xml if needed and reloads the firewall using this command without rebooting if something has been changed.

      /usr/bin/nice -n20 /etc/rc.reload_all
      

      This works fine, but reloads the whole config.
      Can someone tell me how to only reload neccassary things and which these are?

      Stefan

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        You should be able to enter hostnames as aliases and the firewall will resolve them if Unbound is configured to resolve DHCP leases. Then you would only need update aliases. That is updated every 300s by default but you can change that in Sys > Adv > Firewall&NAT.

        Steve

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.