Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    I can't block LAN to LAN traffic on pfSense 2.1

    Scheduled Pinned Locked Moved Firewalling
    3 Posts 2 Posters 1.2k 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
      mbazuher
      last edited by

      Hi

      I appreciate it if anyone can help me with this, please…

      I working with pfSense 2.1.3-RELEASE (amd64)

      From my interface: "LAN" - 172.50.0.0 / 255.255.0.0

      pfSense interface: 172.50.50.1
      Server A - 172.50.50.2
      Server B - 172.50.50.3

      I am trying to block SSH connection from "Server A" to "Server B"

      I create this "Rule", bit those not work:

      ID Proto Source Port Destination Port Gateway Queue Schedule Description

      IPv4 TCP 172.50.50.2 * 172.50.50.3 22 (SSH) * none                           Blocking SSH traffic.

      It seems that pfSense does not filter forward traffic, on the Linux systems this works by activating "net.ipv4.ip_forward = 1".

      Thanks in advance for any suggestion or comment.

      1 Reply Last reply
      Reply Quote 0
      • K
        kpa
        last edited by

        Your servers are in the same local LAN network, in other words part of the same broadcast domain. Traffic between hosts on the same network never reach the router/firewall because the hosts can talk directly to each other without having to forward the traffic to the gateway. This is completely operating system independent, it works the same on Linux/Windows/younameit. The "net.ipv4.ip_forward" setting on Linux does not control packet filtering, it only turns on IP forwarding between different interfaces on the system which is of course required on a system that is used for routing traffic.

        Your only option is to use a local firewalls on the server machines to control traffic between them.

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

          Thanks for the reply.

          1 Reply Last reply
          Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
          Privacy Policy · Cookie Policy