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

Pf sense configuration from command line.

Scheduled Pinned Locked Moved General pfSense Questions
2 Posts 2 Posters 7.1k 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.
  • K
    kaushik209
    last edited by Jan 4, 2010, 7:41 PM

    Hi
    I would like to know is there any way to set pfsense from command line. I need to create aliases and nat from command line.
    Is there any way?? If so then in which file contains aliases and nat rules.

    Thanks in advance

    1 Reply Last reply Reply Quote 0
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Jan 4, 2010, 11:00 PM

      There is no (easy) way to manage these from the command line. These are not held in a particular file, but they are part of the main config.xml file. You may be able to edit that file and add them in, but it isn't something you'd want to regularly.

      There are a few other ways to configure things from the CLI, but they are not optimal. You can use the (included) text browser links to view the web interface (links http://localhost), you could learn the PHP functions to add them via the PHP Developer shell, or you could write a program that adds them on your own.

      You may be able to accomplish some of the same things by adding items to a pf table from the CLI, but you'd have to look for existing tables to use (e.g. sshlockout)

      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