Tuesday, February 07, 2006

Making CVS listen on two ports

Because of firewalls, multiple networks, and slow to respond admins, my team has been running CVS on a wierd port (the only way we could get data through). We have finally convinced them to open up port 2401 so we could run it over the standard port.
In the meantime, the CVS server has been shared with several other groups.
To smooth the transition, I've proposed that we just run both ports for a week to give everybody time to switch.
My first thought on how to do this was good 'ol netcat. No such luck.
I was thinking along the lines of
nc -lp 2401 127.0.0.1 5222
when that didn't work, I tried
nc -lp 2401 | nc 127.0.0.1 5222
Still no dice.
The idea here was that I could have this just go on system startup if the box were rebooted for some reason.
I've gone with the old ssh port forwarding scheme but, it seems a bit of overkill.
ssh -gL 2401:127.0.0.1:5222 root@127.0.0.1
I know that I could write a little program to proxy the port but, I've already used more time on this than I think it deserves.
Just my $0.02, other solutions are always welcome.

permalink
Links to this post

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home

Links to this post on: