Can you explain specifically what you’re trying to accomplish in the context of a traditional router / firewall - what do you have for rules and NAT already? Where does pfs fit in between you and the internet? I don’t know anything about your network and I have no idea what the fuck a hamachi is, some kind of fake VPN for video games?
Anyhow, some googling found “Hamachi connects to a central server on ports 12975 and 32976 using TCP. First port is used for a initial contact, second - for an actual session. It also uses dynamic local and remote UDP ports for communicating with other Hamachi peers.”
Assuming this is correct, assuming you are the only thing connected to LAN and your modem is the only thing connected to WAN, and assuming you have your Firewall Rules set for a completely open LAN and a completely closed WAN
(eg under Firewall > Rules you’re set IPv4 & IPv6 PASS any protocol on any port from any source to any destination on LAN, no rules at all defined on WAN)
What I would do is:
under Firewall > Aliases > IP, add an alias for whatever device is hosting your hamachi locally - as an example I’ll name it VESTMENTALCRAZE-PC and define its IP (ideally we would also know the IP or hostnames that the central server lives at and define an Alias for it/them as well)
under Firewall > Aliases > Ports, add an alias for those two static ports, 12975 and 32976 - as an example I’ll name this HAMACHITCP
(ideally we would also know at least a range for the dynamic UDP so we could Alias those as well)
Under Firewall > NAT > Port Forward, add a rule on WAN TCP with destination WAN address, destination port range HAMACHITCP, Redirect target IP of VESTMENTALCRAZE-PC with target port of HAMACHITCP (ideally you would have an alias for the server and define that in the Source field)
Under Firewall > NAT > Port Forward, add a rule on WAN UDP with destination WAN address, destination port range Any, Redirect target IP of VESTMENTALCRAZE-PC with target port of Any (you’re effectvely setting your computer as a DMZ for UDP traffic here which is dumb as shit, but my googlin’ didn’t return much info on your application so oh well)
Default options will add associated filter rules when defining your NAT, so under Firewall > Rules > WAN, you should have a rule to PASS IPV4+IPV6 TCP on ports HAMACHITCP with a destination VESTMENTALCRAZE-PC and to PASS IPV4+IPV6 UDP on any port to VESTMENTALCRAZE-PC
pretty sure that should work if i made a ton of correct assumptions…