Thus, this can be used to provide proxied Internet access to Win-Mosaic clients that cannot themselves connect directly to Internet resources, because they are inside an Internet Firewall.
This can be got working in two ways:
Win Mosaic -> SOCKSified httpd -> sockd -> Internet
or
-> direct -> local
The advantage of this to SOCKS users is that Internet access remains
governed by the configuration of the sockd on your Firewall
bastion.
(Note that this is a scheme already pioneered by Dick St Peters
The distribution of the CERN httpd (2.17beta) has all the required changes made to it for SOCKS. After unpacking the distribution:
SOCKSLIB set this to point to the location of
your ready-built SOCKS library; this
must be Version 4.2 (or later) built
with the -DSHORTENED_RBIND option.
SOCKS_FLAGS set this to "-DSOCKS" to enable the
SOCKS code
pass http:*
pass ftp:*
pass wais:*
pass gopher:*
fail news:*
fail *
(An aside to explain this file, if you care: The `pass' lines allow access to remote resources of each specified type. The `fail' line at the end blocks access to any local resources (ie, on the system where the httpd is running).
For more details on the syntax available in httpd configuration files, including the the very useful use of CACHES, and for how to control which local client systems nay use your proxy, see the URL:
http://www.w3.org/hypertext/WWW/Daemon/User/Guide.html
httpd -p 80 -l logfile
There's also a -v command for verbose output of what its doing, if you
hit problems and want to try to work out why.
[proxy information]
http_proxy=http://proxyhost.your.dom:80/
ftp_proxy=http://proxyhost.your.dom:80/
wais_proxy=http://proxyhost.your.dom:80/
gopher_proxy=http://proxyhost.your.dom:80/