Tutorijali.Net forum
CVSUP iza Zaštitnog zida - Printable Version

+- Tutorijali.Net forum (http://www.tutorijali.net/forum)
+-- Forum: Programiranje (/forumdisplay.php?fid=11)
+--- Forum: Ostali (/forumdisplay.php?fid=15)
+--- Thread: CVSUP iza Zaštitnog zida (/showthread.php?tid=668)



CVSUP iza Zaštitnog zida - struja13 - 30-10-2007 04:51 PM

Nemogu nikako naci administratora zaštitnog zida da mi otvori port 5999, a negdje sam cito da mogu i koristit port 22 ssh ako se mogu logirati na udaljeno racunalo koristeci ssh, te da mogu onda tenelovati cv-sup kroz taj tunel...Pa zna li itko postupak?


RE: CVSUP iza Zaštitnog zida - struja13 - 30-10-2007 08:10 PM

Ljudi sta stvarno niko to nezna?


RE: CVSUP iza Zaštitnog zida - struja13 - 31-10-2007 11:21 PM

Hm...rijesio sam problem...nasrecu...pa ako kome bude zatrebalo evo:


Setup your cvsup file:

[tethys]:[10:14am]:[/home/rnejdl/www/networking/Unix] > cat /usr/local/etc/cvsup/ports-supfile
*default tag=.
*default host=cvsup6.freebsd.org
*default base=/usr/local/etc/cvsup
*default prefix=/usr
*default release=cvs tag=RELENG_5_2
*default delete use-rel-suffix
*default compress
ports-all tag=.

You need to get shell access on a remote machine outside the firewall. This shouldn't be too hard, either your machine at home, a friends machine or one of those many that are offering free shell access. We'll call it "friendly.example.com"
From your FreeBSD machine behind the firewall you would open up a tunnel between yourself and the friendly machine on port 5999 for cvsup. This is done as follows:

$ ssh -L 5999:cvsupmirror.freebsd.org:5999 loginid@friendly.example.com

Replace "cvsupmirror.freebsd.org" with an actual one from the list of mirrors. loginid is your login name on the remote machine.

You will see the following in netstat when this connection is opened:

tcp4 0 0 127.0.0.1.5999 *.* LISTEN
tcp6 0 0 ::1.5999 *.* LISTEN

From another command prompt you run cvsup while pointing to your localhost as the cvsup server as such:

# cvsup -g -L2 -h localhost /path/to/cvsupfile