Pfsense
Comprehensive Guide to pfSense - Traffic Shaper
GoTos
- Diagnostics / pfTop
- Diagnostics / Test Port
Installation
https://www.youtube.com/watch?v=pykWp1RCYHg
Short vid on private network config on proxmox (you might need to forward DNS in pfsense - see video below) https://www.youtube.com/watch?v=2YZ_C8Ze0CM
Common Settings:
- System/Advanced:
- change tcp port from default 443 / disable WebGUI redirect
- Firewall & NAT
- NAT Reflection mode for port forward:
Pure NAT
Firewall Rules
- NAT Reflection mode for port forward:
Priority order, start with block rules https://youtu.be/eb1pTs7XamA?si=eX3Yz47B4L5dwxwx
Connected devices
Status/DHCP Server -> Status/Leases icon ### DNS Redirect for LAN
if you want to specify DNS server: Services -> DHCP Server -> DNS Servers
Check DNS Leak:
- https://www.dnsleaktest.com/
- https://whoer.net/
curl https://ifconfig.co/json
https://www.youtube.com/watch?v=2g0VoMrJA5c
- Check your DNS: Status -> Interfaces
- Set: System -> General Setup
| | Prime | Secondary |
| ———- | —————– | —————– |
| CloudFlare | 1.1.1.1 | 1.0.0.1 |
| Troogle | 8.8.8.8 | 8.8.4.4 |
| OpenDNS | 208.67.222.222 | 208.67.220.220 |
| NordVPN | 103.86.96.100
| 103.86.99.100
|
- Services: DNS Resolver
- Firewall -> NAT ->Add
- Protocol: TCP/UDP
- Destination: Invert match. of your LAN interface
- Redirect target IP:
127.0.0.1
- Check and relocate Firewall RUle to highest priority for DNS?:
- Status -> DNS Resolver
- Firewall
VPN
- Great Tutorial on defining FireWall/Aliases/etc rules
NordVPN
- terrible video tutorial - use it only to configure openVPN with NordVPN cred’s, don’t set rules/etc according to it.(stop at minute 5)
-
- Nord VPN links
- Add Certificate (only need one per provider)
- Add VPN Client 1. Server host or address: 2. Client Certificate: GUI default or whatever 3. Username/Pass: not your NordVPN email - find it in WebUI setting in NordVPN 4. TLS Configuration:
- Use a TLS Key
- NO=Automatically generate a TLS Key.
- import yours from NordVPN file (they are all the same across endpoints)
- Data Encryption Algorithms:
- import yours from NordVPN file (they are all the same across endpoints)
AES-256-GCM
AES-256-CBC
Fallback:AES-256-GCM
5. Auth digest algorithmSHA512
6. Don’t add/remove routes:YES
7. Don’t pull routes:YES
(IMPORTANT) 8. Exit Notify: Disabled 9. Gateway creation: ipv4 10. Verbosity level:3 11. Custom options:tls-client; remote-random; tun-mtu 1500; tun-mtu-extra 32; mssfix 1450; persist-key; persist-tun; reneg-sec 0; remote-cert-tls server;
- Nord VPN links
-
auth-retry interact; ????
- check open VPN client worked and ONLINE
- Assign Interface to it, so we can use as a Gateway. (YOU WILL USE THESE ASSIGNMENTS TO CHANGE VPN LOCATIONS; you might need to
Status / OpenVPN: Restart service
after switch) - OPTIONAL: System -> Routing -> Gateway: edit Monitor IP: i.e.
9.9.9.9
, NordVPN puts it’s own\ - Firewall -> NAT -> Outbound -> Add Rule
- Interface
- Source:
192.168.3.0
or you LAN in pfSense you want to target - Address of interface
- Firewall / Aliases
- Firewall / Rules -> Add
- Protocol
any
- Source: your alias or IP
- Desc:
- Display adfvanced:
- Tag:
you_tag
- tag for the packets (copy-to-paste it )
- Tag:
- Gateway:
- Protocol
Debugging:
1. Status / OpenVPN: Restart service
2. Status/Filter Reload
3. Diagnostic / Reboot ---
NordVPN DNS Servers (wasn’t neccassary)
103.86.96.100
103.86.99.100
Full Config Playlist: https://www.youtube.com/watch?v=fsdm5uc_LsU&list=PLjGQNuuUzvmsuXCoj6g6vm1N-ZeLJso6o
Packages
SystemPackage ManagerPackage Installer:
- Service WatchDog
Legacy notes:
- Proxmox —> Ensure you create a virtual network bridge that you can use as LAN for PFSense, because as soon as you create another WLAN / network firewall will block all you from accessing original ETH/WAN ip address
- pfSense/Interfaces: Create new LAN assigngment for your LAN bridge
- pfSense/Interfaces: Create new OPT assigngment for your WLAN
- DHCP Server: Enable DHCP server for WLAN
Leave a comment