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

Show port forward NAT/Rule port via command line

Scheduled Pinned Locked Moved General pfSense Questions
2 Posts 2 Posters 3.7k 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.
  • J
    joelones
    last edited by Aug 20, 2013, 5:48 PM

    I guess the title says it all, I would simply like to change the PORT in (Firewall: NAT: Port Forward) and it's corresponding rule via the command line.

    I did some searching and I know the```
    pfctl -f

    
    Thanks for your help
    1 Reply Last reply Reply Quote 0
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Aug 20, 2013, 7:38 PM

      changing using pfctl at the command line would be very, very temporary.

      There isn't a simple way to do what you want from the CLI.

      You could use viconfig to hand-edit the config to make the change and then manually trigger a filter reload, but that's not exactly simple.

      Best to use the GUI if you can.

      If you're looking to automate the process, it would take quite a bit of custom coding to make a command line utility to edit an existing rule in that way easily.

      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

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