Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

PfSense creates a simple bridging network

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

In pfsense, two or more network ports can be bridged into a network by setting to achieve functions similar to ordinary switches to meet the special needs of users.

This textbook is demonstrated based on the pfsense2.4 beta version, and other versions can be referenced.

1. The basic network topology is as follows:

1. This is the original network. Re1 is the external network, re2 is the private network, and re0 is idle.

2. This is the bridged network, bridging the two network ports of re0 and re2 into a network.

In this tutorial, interfaces re0 and re2 are bridged so that they are in the same broadcast domain, which will realize the function of a normal switch on two ports, but the data forwarding of this connection is done through software rather than hardware, which will take up some system resources and network bandwidth.

II. Pfsense setting

1. Add OPT1 (re0) interface first.

Navigate to Network Interface > assign

Add OPT1 (re0) interface to the interface assignment interface

2. Enable opt1 interface

Navigate to Network Interface > OPT1, check to enable, other options do not need to be set.

Save and apply changes

3. Create a bridge for OPT1

Navigate to Network Interface > assign, Bridges tab, click add.

Add member

Member interface: check OPT1

Fill in the description as: BRIDGE0

Save

Navigate to Network Interface > assign

Change the network port of LAN from re2 to BRIDGE0

Save.

Note that all LAN settings, such as firewall rules and DHCP server settings, are automatically moved to BRIDGE0.

Access to the firewall will be locked at this point. The management device needs to be moved from LAN (re2) to OPT1 (re0).

Reload the browser on 192.168.1.1

Re2 has now been unassigned and will be available for bridging.

Navigate to Network Interface > assign

Available network ports: add OPT2 (re2)

Navigate to Network Interface > OPT2, check to enable, other parameters do not need to be set. Save and apply changes.

Navigate to Network Interface > assign, Bridges tab

Edit BRIDGE0

Member interface: select OPT1 and OPT2 (hold down Ctrl and click with the left mouse button), then save.

Bridge setup is complete.

Interfaces > (assign)

LAN interface configuration

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report