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

    Allow communication between two IP addresses on different interfaces..?

    Scheduled Pinned Locked Moved Firewalling
    2 Posts 2 Posters 2.3k 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.
    • S Offline
      spinjector
      last edited by

      I've installed Pfsense on a PC with three (3) network interfaces, as follows:

      Internet
      |
      Office router
      |
      PFsense WAN interface
      |
      +-Pfsense LAN_0 interface: 192.168.0.1/24 (internet is ok)
      |  +-Computer X (.37)
      |
      +-Pfsense LAN_1 interface: 192.168.1.1/24 (internet NOT ok)
          +-Computer Y (.101)

      How can I do these two things?

      1. Allow unrestricted communication between Computers X & Y only.
      2. Otherwise, block LAN_1 from all other communication to/from anywhere (isolate it completely).

      From reading other forum posts, I've already set Pfsense as the gateway for both network. But looking at the Firewall & NAT rules, I'm not sure which/what to do.

      Thanks.

      1 Reply Last reply Reply Quote 0
      • KOMK Offline
        KOM
        last edited by

        Firewall rules control traffic that ENTERS an interface, so if you want to stop LAN_0 clients from accessing LAN_1, you need to put your rules on LAN_0.  You will need two rules for each interface:  one rule to allow only that specific client to the other client, and then a general block underneath it to handle all other clients.  By default, LAN_) has an ALLow for ANy rule that gives it Internet access.  All subsequent LANs do not get ANY rules, so you must add at least one for any traffic to flow.

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