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

    Port forwarding using shell?

    Scheduled Pinned Locked Moved Firewalling
    4 Posts 2 Posters 1.9k 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.
    • L
      l11h
      last edited by

      Hi,

      I've been looking in multiple places but can't seem to find anything. But is there a way to port forward using the Shell interface rather than the GUI?

      And also using a different port, so forwarding port 2222 for port 22 on machine 192.168.0.10?

      Is there any help page that I can go to in order to find this information.

      Thanks for your help in advance

      1 Reply Last reply Reply Quote 0
      • L
        l11h
        last edited by

        Anyone got any idea of this or if this is even possible?

        1 Reply Last reply Reply Quote 0
        • R
          razzfazz
          last edited by

          So what you're trying to do is change firewall rules from the shell? If so, you can do that with the pfctl command.

          1 Reply Last reply Reply Quote 0
          • L
            l11h
            last edited by

            thanks razzfazz,

            that is what i was looking for but i still don't understand how to add a firewall rule?

            I tired different commands but all seem to fail …

            So how would I do give access to port 22 on IP 192.168.0.10? im thinking it's pfctl -t 192.168.0.10 but can't specify port ...

            this is confusing lol

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