Tweet
The proxy is more so I can have some semblance of security while on open wireless networks, the rest should be self explanatory.
Anyways, straight from /usr/local/bin, here's my p4tunnel script:
Perforce On The Road, p4tunnel
The best means of accessing a Perforce repository is over an SSH tunnel, to access my home repository while I'm on the road I use a handy-dandy little script to do a few things:- Access Perforce
- Access P4Web
- Setup a SOCKS5 proxy
The proxy is more so I can have some semblance of security while on open wireless networks, the rest should be self explanatory.
Anyways, straight from /usr/local/bin, here's my p4tunnel script:
#!/bin/sh
HOST="yourhost.com"
PROXY_PORT="8081"
echo "===> Creating tunnel to ${HOST} with a SOCK5 proxy on port ${PROXY_PORT}"
ssh ${HOST} -L 1666:localhost:1666 -L 8080:localhost:8080 -D ${PROXY_PORT} -C
academia ada apture bart brainfuck c campdevops cheetah chrome ci cocoa continuousdeployment documentation drupal facebook ganglia gerrit git graphite home hudson javascript jekyll jenkins jenkinsconf learnings linux literature lookout media meetups miscellaneous mono offtopic opbart openmoko opinion photos presentation programming protesting python rdoc redis ri ruby running slide software development sonic twos usenet
