I am building a home router/firewall with pfSense to replace my Asus and TP-link all in one routers. I’ve installed it on an old Dell Optiplex and have managed to get it up and running, but have some questions about firewall rules.
The Browsing alias is ports 80,443,8080,53. The email alias is ports 25,465,587. Everything was going good ( I had internet in a browser and in Powershell), but when I tried to run other apps they would not connect to the internet. Two apps that I tried this morning that didn’t work was my trading app Ninjatrader and my vpn client. They work fine after I added the Allow All Traffic rule. My question is how do I configure a rule or rules to allow other apps without allowing everything.
Should I run netstat -b and just create an alias with all the ports that my apps are using and include that in rule? Or am I just being to anal, from what I understand pfSense is stated, so if i’m understanding that correctly it will only let traffic pass that my apps asked for anyway and the Allow All Traffic rule is good enough. Looking at netstat -b it looks like all the apps that I currently have running are using ports in the 52,000-53,000 range.
Maybe I could create and alias with that range of ports? Seems like a lot to have to troubleshoot any new app I might install to find ports and make a new or modify a rule every time.
I guess I’m looking for advise on which way to go and general firewall rules best practices.