home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Acorn User 2
/
AUCD2.iso
/
internet
/
proxy.spk
/
!ProxySrvr
/
docs
/
Advanced
next >
Wrap
Text File
|
1996-05-09
|
8KB
|
223 lines
/-----------------------------------------------------\
| |
| RISC OS Proxy Server © Chris Audley, 1996 |
| |
\-----------------------------------------------------/
Installation
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Server (The machine with the internet connection)
----------
Installation is very simple... Double click on the !ProxySrvr icon.
Or make sure that it gets run somewhere in the Boot sequence (preferablly
after the internet stack has been started)
*** BUT *** Don't do this until you have read the configuration section.
The proxy server is implemented in a module, which provides several commands,
mostly giving information about the current status.
The module requires an internet stack and a resolver module to operate
properly. It was developed on a RiscPC using ANT's !InetSuite, I don't know
if it will work with any other machines/stacks, please contact me if it
doesn't and I'll try to sort out any problems.
The config file should be in the !ProxySrvr directory, but if it is missing
the proxy will use default values instead.
The Clients (All the other networked machines)
-----------
You need to tell your WWW browsers and terminal programs how to use the proxy
server.
In the case of WWW browsers you need to tell them the hostname of the proxy
server, and the port number that the http 'ear' is running on (see below for
info on configuring the port number). Look in the docs for your particular
browser to find out how to do this.
With terminal programs you specify the hostname of the proxy server, and
the telnet 'ear' port number.
With FreeTerm, this is specified in a seperately from the hostname.
With AntTerm, you need to follow the hostname with the port number, seperated
with a ','
From the * prompt, you can type *telnet <hostname> <portnum>
to connect to the telnet proxy.
When you do connect, you will be prompted for the name of the host to connect
to. If the host cannot be resolved, you will be prompted again for a
hostname. Pressing return on a blank line will terminate the telnet session.
Should you want to telnet via the proxy to a host on any port other than 23,
you should enter the hostname as follows:
<host name>:<port number>
Configuration
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The proxy server has been designed to be very configurable, to allow for
different system setups. Consequently the configuration file might look a bit
daunting on first inspection.
However, unless you have specific needs, it is unlikely that you will have to
change much.
Also note that there are a lot of configuration options which are not
supported in this version (see the release section for more details).
These are included for easier upgrading, but are marked as not being
supported.
The rules the proxy server follows for reading configuration data are:
i) Option names should start with a '%' and end with ':'
ii) Data for the option is read when the first alpha-numerical
character is encountered after a return, newline or a ':'
iii) Data segments end with newline or return characters.
iv) Lists of data are terminated with a comment char '|' or a '%'
These are all valid configuration items
| Comment
%config.item: Some Data
|Comment
| another comment
%another.item: some
data
which
is_read
as_a
list
%more.options: 12
This is **not**
|Comment
%config.item: Date |Comment
Configuration Options
---------------------
Incoming ears: These are the ports that the proxy server listens for
requests on.
You should set the proxy port number in the proxy setup for
your web browser to this number, and the proxy host name
to the name or IP address of the machine the proxy is
running on.
For the telnet server you need to telnet to the host on the
telnet ear e.g *telnet quercus 8023
Theses options have been set to sensible port numbers,
so you shouldn't need to alter these.
Enabled Proxy These set whether a certain a proxy ear is enabled, 0 for off
1 for on. Usefull if you only want to run the telet of http
proxy.
Machine type Guess what, the type of machine that the proxy is running on.
This is for displaying in the 'Unknown Host' page sent back
to the WWW browser when a page is requested from an unknown
host.
Web Admin Again for display in the unknown host page.
Max requests This sets the maximum number of connections that are allowed
to the proxy server. The higher this is the more load that can
potential be placed on the serving machine.
Note, the Acorn stack has a max of 96 sockets and the freenet
stack has a max of 128 socks, so you can't really have more
than 50 connections active.
Buffer Size This is the size of the buffer used for transfering data.
The larger this is the faster data will be transferred (in
theory).
Note: Some web browsers appear to have problems when buffers
larger than 1K are used. These manifest themselves in
corrupted interlaced GIFs.
Poll Time This value is the time between polls in centiseconds. The
smaller it is, the faster sockets will be polled and the
faster data will be transferred, but the more load will
placed on the serving machine.
For a small network, wanting low load on a Risc PC 600,
25 is recommended.
Debug Level Sets the amount of data written to the debug file.
0 - off
1 - on (lots of it)
Log Dir Where the all the logging files are stored
Log options 0 - Everything in ProxyLog
1 - Logging in ProxyLog, debuggin in ProxyDebug
2 - Each sort of request in its own file ie http, ftp etc.
External network checking (%ext.net.check, %ext.net.check.host)
The proxy server checks for an external network connection
by sending echo requests to an external host.
If it gets a reply, obviously the host is reachable and
a connection exists.
If you want to use this set %ext.net.check to 1, if not set
it to 0
If you are using it you must specify a remote machine to
send echo requests to.
The address placed in %ext.net.check.host must be in quad
notation (e.g 1.2.3.4)
I recommend you use one of your Internet service providers
news or mail servers for this. You can probably find this out
from the documentation from your Internet Service Provider,
or your login script.
Module Commands
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The only commands that should be used are:-
ProxyStatus: Display info about proxy status
ProxyLimit: Changes the value of max requests.
Allows you to limit the number of requests allowed hence
reducing load on the machine.
Other commands may be reported by *help proxyserver, but they are not
implemented.
Chris Audley, Thu 09th May 1996