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

    IPTABLES like rules

    Scheduled Pinned Locked Moved Firewalling
    8 Posts 5 Posters 2.6k 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.
    • T
      TLP
      last edited by

      Hello, where can I make something like iptables on pfsense?? I need to create the following rules

      iptables -I FORWARD -p tcp -d 200.201.160/20 -j ACCEPT
      iptables -t nat -I PREROUTING -p tcp -d 200.201.160/20 -j ACCEPT
      

      is this possible?? thanks

      1 Reply Last reply Reply Quote 0
      • T
        TLP
        last edited by

        I found something about pf.conf, does pfsense uses pf???

        1 Reply Last reply Reply Quote 0
        • P
          podilarius
          last edited by

          It does use pf . And i think that is possible with port forward and manual outbound nat.

          1 Reply Last reply Reply Quote 0
          • T
            TLP
            last edited by

            hehehe i am not that good with iptables, what does that rules mean??

            does you or someone else with great knowledge knows???

            1 Reply Last reply Reply Quote 0
            • C
              cmb
              last edited by

              You don't know what it means but you want to add it? Not a ton of iptables gurus here given we're largely BSD not Linux people, but I guess you can't describe what that does.

              What are you trying to accomplish? Describing that probably a better route to getting help.

              1 Reply Last reply Reply Quote 0
              • T
                TLP
                last edited by

                Yeah, for the little I know about iptables, I think it makes every connection to 200.201.160.0/20 dont go though the proxy, but directly.

                I found something to do this, but it needs to be a transparent proxy, which is not my case

                Oh and this rule is safe, removed from the site it needs to connect, a bank site.

                1 Reply Last reply Reply Quote 0
                • M
                  Metu69salemi
                  last edited by

                  With manual outbound nat you can decide to NAT or not to different destinations.. upper rules is read/actions first

                  1 Reply Last reply Reply Quote 0
                  • J
                    jeremie3
                    last edited by

                    I'm not sure but I think better ways are "pfctl" or "easyrule".

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