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

    VLAN config IPv4 Configuration Type

    General pfSense Questions
    3
    4
    476
    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.
    • I
      internetxs
      last edited by

      Hello

      I configured a vlan on my pfsense. This vlan (vlan 222) is still existing on another network. In order to make my devices to be able to communicate with the devices in my existing external vlan i set my IPv4 Configuration Type to DHCP which then as expected gets an ip adres etc.
      Now based on above i created new vlan's on pfsense router and those vlans can communicate with vlan 222 and all communication then goes out via the dhcp ip adres.
      Now here is my challenge.
      On the pfsense you can set firewall rules which opens ports on the wan in order to communicate for example with port 80 on ip 192.168.1.2 this is pretty straight forward.
      Is there a way to configure the system as such that it allows to reach devices in vlan 222?
      so from a flow perspective: public-ip>pfsense>dhcp ip in vlan222>the device in vlan222

      BR

      martin

      JKnottJ 1 Reply Last reply Reply Quote 0
      • JKnottJ
        JKnott @internetxs
        last edited by

        @internetxs

        You don't configure to reach VLANs. You configure to reach IP addresses.

        PfSense running on Qotom mini PC
        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
        UniFi AC-Lite access point

        I haven't lost my mind. It's around here...somewhere...

        1 Reply Last reply Reply Quote 0
        • I
          internetxs
          last edited by internetxs

          So maybe if i visualize it

          ac4e21e8-7f03-4383-ac13-17bc860add0e-image.png

          The moment that i enable it.. i get ip 192.168.150.253 which is given by another dhcp server in that vlan

          and the dhcp in that vlan is on 192.168.150.1 so when i go from another vlan i will go via 192.168.150.253

          1 Reply Last reply Reply Quote 0
          • bingo600B
            bingo600
            last edited by

            A VLAN is Layer 2 communication , MAC address oriented.
            The pfSense firewall is a Layer 3 device , as most firewalls are.

            pfSense filters (allows/deny) based on IP addresses.
            Your Vlan150 example uses the ip range 192.168.150.xx , so i'll assume the Vlan222 uses.

            On each interface where you have devices that has to reach hosts in Vlan222 , you would need to allow that "interface ip range" to send packets to the Vlan222 ip range.

            Ie. the fw rule on the Vlan150 would be :

            Action pass
            Interface "Vlan150"
            Addr Fam IPv4
            Proto Any
            Source Vlan150 net
            Dest Vlan222 net

            Now pray that your Vlan222 hosts have def-gw on the pfSense box , or you'll have to play with routes.

            /Bingo

            If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

            pfSense+ 23.05.1 (ZFS)

            QOTOM-Q355G4 Quad Lan.
            CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
            LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

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