By edwingo on Jun 26, 2007
This article applies to companies that have firewall configurations that are similar to Sun's. Many companies such as the one I work for (Sun) have a firewall which presents problems with accessing source code repositories on the Internet. This documents the approach I use.
To elaborate further, it works because we have Direct Internet Access (DIA) now. What I do is use the public repository hostname in my trees, like: CVSROOT=:pserver:USER@cvs.netbeans.org:/cvs. I handle the three separate cases this way:
- In the office on SWAN, it works because of DIA
- Off SWAN, it works because it's the real hostname
- VPN on SWAN, I change the /etc/hosts file so that it points to the internal proxy.