pfsense:vlan_virtual_lan:set_up_a_vlan
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
pfsense:vlan_virtual_lan:set_up_a_vlan [2021/02/16 14:35] – peter | pfsense:vlan_virtual_lan:set_up_a_vlan [2021/02/16 14:58] (current) – [Block Access to LAN when on VLAN 20] peter | ||
---|---|---|---|
Line 7: | Line 7: | ||
Select **VLANs**. | Select **VLANs**. | ||
- | * Click on the **Add** button. | + | * Click the **Add** button. |
* Parent Interface: | * Parent Interface: | ||
* VLAN Tag: **20**. | * VLAN Tag: **20**. | ||
- | * VLAN Priority: **0**. | + | * VLAN Priority: **0**. |
- | * Description: | + | * Description: |
* Click **Save**. | * Click **Save**. | ||
Line 17: | Line 17: | ||
**NOTE**: | **NOTE**: | ||
- | * **VLAN | + | * **VLAN |
* VLAN 0 is used when a device needs to send priority-tagged frames but does not know in which particular VLAN it resides. | * VLAN 0 is used when a device needs to send priority-tagged frames but does not know in which particular VLAN it resides. | ||
- | * VLAN 1 is the default native VLAN for the LAN, and used for untagged traffic. | + | * VLAN 1 is the default native VLAN for the LAN, and used for untagged traffic. |
* **VLAN Priority**: | * **VLAN Priority**: | ||
Line 30: | Line 30: | ||
Navigate to **Interfaces Assignments**. | Navigate to **Interfaces Assignments**. | ||
- | Against | + | Against |
* Click **Add**. | * Click **Add**. | ||
- | * Click** **Save**. | + | * Click **Save**. |
Click the interface link for **OPT1**. | Click the interface link for **OPT1**. | ||
Line 55: | Line 55: | ||
**NOTE: | **NOTE: | ||
- | It has a VLAN ID of 20. | + | * It has a VLAN ID of 20. |
- | + | | |
- | It has an IP address of 192.168.20.1. | + | * Notice |
- | + | * This is simply | |
- | Keep in mind, just because it is VLAN 20 does NOT mean that the subnet has to contain the **20** | + | * However just because the VLAN ID is 20 does NOT mean that the IP also has to have a **20** in it. The IP can be any internal IP. |
- | + | ||
- | | + | |
</ | </ | ||
Line 186: | Line 184: | ||
===== Block Access to LAN when on VLAN 20 ===== | ===== Block Access to LAN when on VLAN 20 ===== | ||
- | <WRAP important> | + | Navigate to **Firewall -> Rules** |
- | **IMPORTANT NOTE:** If you use an **unmanaged switch** this will not work as trying to restrict a client on VLAN 20 from accessing a device on the LAN doesn’t have anything to do with pfSense at that point. | + | |
- | The unmanaged switch is “before” pfSense. | + | * Click on **VLAN20**: |
+ | * Click the **Add** button (up arrow), so this needs to be the first rule in the list. | ||
+ | * Action: | ||
+ | * Interface: **VLAN20**. | ||
+ | * Protocol: **Any**. | ||
+ | * Source: | ||
+ | * Source: | ||
+ | * Destination: | ||
+ | * Description: | ||
+ | * Click **Save**. | ||
+ | * Click **Apply Changes** at the top. | ||
- | When we setup Wireless Access Points that have VLAN capabilities they have managed switches built into them. We often use Ubiquiti Wireless Access Points. | + | < |
- | </WRAP> | + | **IMPORTANT NOTE:** |
- | + | ||
- | - **Click** on **Firewall -> Rules** | + | |
- | - **Click** | + | |
- | - **Click** on the green **Add** button (up arrow), so this needs to be the first rule in the list. | + | |
- | - Fill out this information below: | + | |
- | - Edit Firewall Rule | + | |
- | * Action: **Block** | + | |
- | * Interface: **OPT1VLAN20** | + | |
- | * Protocol: **Any** | + | |
- | - Source | + | |
- | * Source: **OPT1VLAN20 net** | + | |
- | * Destination: | + | |
- | - Extra Options | + | |
- | | + | |
- | - **Click** on the blue **Save** button. | + | |
- | - **Click** on the green **Apply Changes** button at the top. | + | |
+ | * An unmanaged switch just does not have the capability built into it to handle VLAN traffic. | ||
+ | * Trying to restrict a client on a VLAN from accessing a device on the LAN has nothing to do with pfSense at that point. | ||
+ | * A managed switch is needed for this. | ||
+ | This limitation does not necessarily apply to Wireless Access Points that have VLAN capabilities (such as Ubiquiti Wireless Access Points); as they have managed switches built into them. | ||
+ | </ | ||
pfsense/vlan_virtual_lan/set_up_a_vlan.1613486116.txt.gz · Last modified: 2021/02/16 14:35 by peter