ssh -L localport:remotelanhost:remotelanport remotehost
where remotelanhost is the host you want to connect to on the remote side and localport the port you connect to on your side.