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

    Portforward and firewall rule in shell

    Scheduled Pinned Locked Moved NAT
    2 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.
    • M
      missytommen
      last edited by

      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 192.168.1.5 local port 70?

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

      Thanks!

      1 Reply Last reply Reply Quote 0
      • dotdashD
        dotdash
        last edited by

        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/

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