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

    Need to block FTP from LAN to WAN (simple but not working…)

    Firewalling
    4
    8
    2.0k
    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.
    • C
      costasppc
      last edited by

      Hello,

      I need to block FTP from LAN to WAN. I have 3 WANs acting as load balancing via a Gateway group.

      So, I created a firewall rule blocking port 21 from LAN to any, but… It does not work (users can still connect via FTP).

      How can I check the logs only for this rule?

      I haven't restart the box, though due to production hours.

      I have attached an image of my rule.

      Thanks!
      pfsense_rule_lan2wan.png
      pfsense_rule_lan2wan.png_thumb

      1 Reply Last reply Reply Quote 0
      • G
        gderf
        last edited by

        Specifying a source port is almost always a mistake, and in your case it is. Leave the source port as "any."

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

          Thank you, I will try it.

          What about the log? I need to see the log only for this rule if possible.

          Best regards

          Kostas

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

            The logging is fine as is.

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

              Thank you,

              I know logging is fine, but I got difficulties to watch the logs for a specific rule.

              I go to Diagnostics > System Logs > Firewall > Dynamic view, but I cannot see what rule is applied to each log.

              Any help will be appreciated.

              Kostas

              1 Reply Last reply Reply Quote 0
              • ?
                Guest
                last edited by

                Under the "ACT" column you'll see a green or red icon, clicking it will tell you what caused that action.

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

                  Thank you!

                  But how to distinguish to which rule is applied?

                  Best regards

                  Kostas

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

                    click the green or red icon and it'll show you which rule was applied.

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