Wget Gateway
Welcome to Wget Gateway, a simple page showing the usage of
socksified wget behind a firewall. In my configuration it is
very useful because:
- Only few users can exit from firewall
- A lot of users need information that can be reached in Internet
- I cannot dowload big files during my job time, so, I
have to schedule the requests after the normal work time
With the combination of a socksified wget and a simple cgi
that schedules the requests can I reach the aim. All you need
is:
- A socksified copy of
wget
- Perl (available on all the GNU mirroring sites)
- cgi-lib.pl (available at
CPAN)
- A customized copy of this html
- A customized copy of socks.cgi
This is my h/s configuration:
+----------+ +----------------------------------+ +---------------------+
| Firewall | | Host that can exit from firewall | | Intranet www server |
+----------+ | htceff | +---------------------+
+----------------------------------+ | Wget.html |
| socksified wget | +---------------------+
| cgi-lib.pl |
| perl |
| wget.cgi |
+----------------------------------+
wget.cgi, wget and cgi-lib.pl are located in the usual
cgi-bin directory. The customization of wget.cgi and
wget.html has to reflect you installation, i.e.:
- download-netscape.html requires wget.cgi
- wget.cgi requires Perl, cgi-lib.pl and wget
-
wget.cgi has to download the files to a directory writable
by the user submitting the request. At the moment I have an
anonymous ftp installed on htceff, and wget puts
dowloaded files to /pub/incoming directory (if you look at
wget.cgi, it sets the destdir to "/u/ftp/pub/incoming" if
the user leaves it blank).
You can also add other parameters that you want to pass to wget,
but in this case you will also have to modify wget.cgi
Feedback is always useful! Please contact me at
Antonio Rosella<Antonio.Rosella@agip.it>.
You can send your suggestions or bug reports for Wget to
Hrvoje Niksic <hniksic@srce.hr>.
Last modified: Thu Mar 26 16:26:36 MET 1998