delegated -P8080 SERVER=httpwhere -Pxxxx specifies the port number used to accept request from clients, and SERVER=yyyy specifies the protocol name used to communicate with clients.
b. To enable logging and caching, make following directories:
UNIX and OS/2: /var/spool/delegate/ -- the root directory for log and cache(VARDIR) /var/spool/delegate/cache/ -- the directory for cache (VARDIR/CACHEDIR) WinNT and Win95: \Program Files\DeleGate -- the root directory for everything(DGROOT) \Program Files\DeleGate\cache -- the directory for cache (CACHEDIR)If necessary, you can change the location of the directories specifying corresponding parameters shown in "( )".
c. The validity and custody of cached data can be controlled using EXPIRE and CRON parameters.
EXPIRE=1d CRON="0 * * * * -expire 2d"d. DeleGate implicitly allows only access from networks local to the host of DeleGate. You can explicitly specify hosts, networks, or domains to be allowed using a PERMIT parameter like this:
PERMIT="*:*:host1,123.123.123.123/255.255.255.0,*.your.domain"
delegated -v ...02. Stop the DeleGate server running at the port 8080:
delegated -P8080 -Fkill03. Load and use configuration parameters at specified URL:
delegated +=http://server/path/of/parameters.txt04. Restrict network interface(s) to be used to accept clients' request:
delegated -Phostname:8080 SERVER=http05. Control the sequence of name resolution trials using multiple resolvers:
RESOLV=dns,nis,file06. Connect via Socks server(s) if the destination is not local to your site:
CONNECT="cache,socks:*:!*.my.domain" SOCKS=sockshost07. Forward any requests to another proxy:
PROXY="proxyHost:8080:*"08. Forward requests toward some destination servers to another proxy:
PROXY="proxyHost:8080:!*.my.domain,!*.near.domain"09. Relay an arbitrary TCP protocol to a specified server:
SERVER=tcprelay://serverName:portNumber/10. Forward arbitrary TCP protocols to another DeleGate:
MASTER="delegateHost:8080:*"11. Relay an arbitrary UDP protocol to a specified server:
SERVER=udprelay://serverName:portNumber/12. Bind the target server of DeleGate to provide the DeleGate as an origin server to clients:
delegated -P80 SERVER=http://httpserver/13. Restrict newsgroups to be provided to clients:
delegated -P8119 SERVER=nntp://nntpserver/comp,misc,news14. Merge multiple servers into a single virtual server using MOUNT parameter:
SERVER=nntp MOUNT="= nntp://serv1/comp" MOUNT="= nntp://serv2/misc,news"15. Gateway for HTTP clients to NNTP servers:
SERVER=http MOUNT="/news1/* nntp://ns1/*" MOUNT="/news2/* nntp://ns2/*"16. Use DeleGate as an origin HTTP server:
-P80 SERVER=http MOUNT="/* /usr/local/www/*" REMITTABLE=file17. Restrict destination hosts/nets/domains reachable via the DeleGate:
PERMIT="*:*.reachable.domain:*"