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

    Apply NAT changes from command line

    Scheduled Pinned Locked Moved NAT
    3 Posts 2 Posters 1.8k 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.
    • D
      drcabrejos
      last edited by

      All,

      I have a weird request but a simple one.

      What command can I issue to "Apply Changes" for NAT?

      The reason I need this is the following:

      I installed VPNC on my pfsense, had to manually create NAT rules and everything like that. Everything works great after it is configured, there's scripts on which the VPN will be re-established if link goes down and all.

      The problem I have is, once I reboot my pfsense, to make traffic go through the VPN tunnel, I must log in to the web gui, go to "Firewall -> NAT -> Outbound", Hit save, and hit apply settings.

      After I do this, everything works the way it should again.

      So basically I just want to have the NAT settings applied after the VPN connectivity is established during boot.

      Any ideas on what command I should issue?

      Thanks a lot!

      David Cabrejos

      1 Reply Last reply Reply Quote 0
      • E
        Efonnes
        last edited by

        You can run /etc/rc.filter_configure but I think it needs to be after boot or at least fairly late in the bootup scripts.

        1 Reply Last reply Reply Quote 0
        • D
          drcabrejos
          last edited by

          Efonne,

          Thanks for the prompt reply.

          Unfortunately I did not test your command since I was able to fix the NAT issue I was having and uploaded a solution to my post as well. (iptables to pfsense command line?)

          I'm sure this should help someone who was trying to accomplish the same.

          Thank you for your time!

          David Cabrejos

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