Well on my system I would use ipfwadm to add a forwarding rule for the source/destination IP & port. Not knowing specifically about your system makes it difficult for me to make suggestions I'm afraid.
Regards, Dave.
How can I connect to a remote PG database from my office theu a proxy in my office.
Regards
-Uday