Portforward and firewall rule in shell

  • Hello,

    I have been using PfSense for quite a long time now, but i never learned the shell part.
    How could i portforward ex. port 90 from WAN to local port 70?

    And in the same time make a rule in the firewall for this?


  • While it is possible to manually add rules to the firewall from the shell, it is a very bad idea. Stick to the web interface. If you are interested in the mechanics, this is a good place to start: http://home.nuug.no/~peter/pf/en/