This is an old revision of the document!
Setup OPNsense on Protectli FW4C
Install OPNsense
-
Use balenaEtcher or other usb boot drive creator to load the install image to usb.
Turn on the device and boot from USB to load installer.
login as 'installer' with password 'opnsense'
select keyboard layout, Install (UFS), select harddrive, ok on swap, change password, reboot without USB plugged in.
Link: https://www.youtube.com/watch?v=_IzyJTcnPu8
Connect
Setup
-
make sure it is enabled and locked
config type Static IPv4
set IPv4 address to your desire (10.23.79.1/24 for me)
upstream gateway is auto-detect
Save/Apply
go to Interfaces / WAN
make sure it is enabled and locked
block private and bogon networks
config type DHCP (for CenturyLink at least)
Save/Apply
Setting up with CenturyLink Quantum Fiber
This service provider requires traffic from the ONT to go to a router set to VLAN 201
go to Interfaces / Other Types / VLAN
create new by clicking on the “+”
go to Interfaces / Assignments
Plug line from internet into WAN port.
Firewall/NAT
Port Forwarding
go to Firewall / NAT / Port Forward
create new rule by clicking on the “+”
Interface: WAN
Protocol: TCP
Source Advanced should all be “any”
Destination: WAN address
Destination port range: select outside port (example: 80 or 443)
Redirect target IP: Single host or Network / internal IP address of the server (10.23.79.4)
Redirect target port: (other) / internal server port (example: 180 or 1443)
Description: whatever
NAT reflection: Enabled
Filter rule association: Add associated filter rule
Save/Apply
repeat for other forwarded ports
Port Forwarding rules if unraid/ Nginx:
80 Both 10.23.79.X 180 HTTP tomcat
443 Both 10.23.79.X 1443 HTTPS tomcat
22 Both 10.23.79.X SSH brimble
Port Forwarding rules if standalone:
80 Both 10.23.79.X HTTP tomcat
443 Both 10.23.79.X HTTPS
22 Both 10.23.79.X SSH brimble
32400 Both 10.23.79.X Plex
Hairpin NAT:
NAT for online gaming
Services
DHCPv4
Range Start 10.23.79.100
Range Stop 10.23.79.245
Save Apply
Static MAC/IP Mapping
brimNAS 10.23.79.4
BrimUpstairsAP 10.23.79.5
BrimDownstairsAP 10.23.79.6
DNS (System / Settings / General
-