You may be able to do this by specifying a rule with a user.
For example, say I connect to puffy.example.org with user otl
:
ssh -D 127.0.0.1:6969 otl@puffy.example.org
On the remote side, in pf.conf:
block out proto tcp all from self user otl
Untested. Curious to see what you come up with! See also pf.conf(5)