when I am working on a ssh session on a server on the WAN, I get disconnected after a while of inactivity. However with our previous firewall we didn't had this problem. It is a dual wan solution that we installed now with pfsense.
Check your ssh-client for a keepalive setting. Other option is to raise the default statetimeout for this connection by editing the advanced option for this firewallrule.