Acho que é isso que você está procurando:
#Forward local traffic on port 9999 to squid on ssh server
# Set browser proxy server to 127.0.0.1 port 9999
SSH_SERVER=ip.of.personal.server
ssh -L 9999:$SSH_SERVER:3128 $SSH_SERVER
#Forward local traffic on port 8888 to pop3 mail server
MAIL_SERVER=ip.of.mail.server
ssh -L 8888:$MAIL_SERVER:110 $SSH_SERVER