Hardware:
Old Dell Precision 390:
CPU: 2 x Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
RAM: 4GB
Disk: 150GB
3 Ethernet Ports
Installing pfSense:
- Install pfSense from iso. Suggested Specs: 32GB disk, 2GB RAM, 1CPU
- Add network interfaces (2 minimum, I'm using all 3 I have available)
- Run the installer, no need to set VLAN but do assign interfaces.
- pfSense up and running!
Configuring pfSense:
Follow the steps mentioned in this forum post, I've added extra details in bold:
- Disable Outbound NAT.
- Go to the 'System -> Advanced -> System Tunables' and set net.link.bridge.pfil_bridge from 'default' to '1'. Also set net.link.bridge.pfil_member to 0
- Bridge WAN and LAN by going to 'Interfaces → Assign → Bridges'
- Create OPT2 (there should be already an OPT1 since we are using 3 nics) interface and assign the bridge to it by 'Interfaces → Assignments.
- Add an IP address to the bridge interface; this IP is the one you will use to access the firewall long term (you'll need these if you are only using 2 NICs, for example 192.168.2.1)
- Give OPT1 and adress within your LAN subnet (something like 192.168.1.2)
- Add allow all rules to ALL firewall interfaces to avoid being locked out. Interfaces OPT1, OPT2 WAN, and LAN (You can restrict access later, let's get it working first)
- Set WAN and LAN interface type to 'none'. (Under 'Interfaces' in GUI)
- Disable DHCP server (for the LAN, you will probably need to disable DHCP first)
- The firewall should now be able to be accessed from all ifaces via the IP on the bridge from step 5 and 6. For 5 you will need to manually chance the IPv4 address to something like 192.168.2.10).
- Carefully modify your firewall rules to be more restrictive. DNS, DHCP, etc. Note: You will be adding the rules to the OPT2 interface (the one assigned to the bridge)
At this point I think I was done, but since I'm running pfSense within a VM in Proxmox, there are some extra steps. Otherwise performance could be severely impacted (I w
Virtualized pfSense:
Check this info from Netgate, the important part is about disabling hardware checksum offload
- System > Advanced and select Networking tab. Under Networking Interfaces section check the Disable hardware checksum offload
- Click save
- Reboot
Now you are done!
Ascii Diagram:
+------------+
| |
| INTERNET |
| |
+-----+------+
| eth0
+--------------------------+
| vtnet0 |
|Proxmox + pfSense (DELL) |
| Vtnet1 Vtnet2 |
+--------------------------+
|eth1 |eth2
| +---+
+------+------+ |
| WAN PORT | |
| Home | |
| Router | |
| LAN PORT | |
+-----+-------+ |
| |
| |
+---+-----+ |
| | |
| SWITCH | |
| | |
+-+-----+-+ |
| | |
| | |
| +-------+
+--+--+
| LAN |
| |
+-----+
Comments
Post a Comment