58 lines
1.8 KiB
Text
58 lines
1.8 KiB
Text
###############################################################################
|
|
#
|
|
# Sample configuration file for WANProxy XTech v3.0
|
|
#
|
|
# Codec definition must include following cache directives:
|
|
# - cache: Memory (default) or COSS (use persistent cache in disk)
|
|
# - cache_path: location for the cache files (if using COSS)
|
|
# - local_size: size in MB for the local cache of the encoder. The decoder
|
|
# will receive this value on the other side and use it for
|
|
# its own cache, so the old parameter remote_size is no
|
|
# longer needed and should not be used any more.
|
|
#
|
|
# Proxy definition can include an additional informative parameter:
|
|
# - role: Client (originates requests) or Server. When not specified,
|
|
# a proxy taking unencoded input and writing encoded output
|
|
# is considered to be a client.
|
|
#
|
|
# Only one proxy may be defined per instance. To host several proxies
|
|
# on the same node different processes must be launched each one with
|
|
# its own configuration.
|
|
#
|
|
# Upon reception of SIGHUP the daemon will reread this file and apply the
|
|
# new values to any subsequent connections.
|
|
#
|
|
###############################################################################
|
|
|
|
create codec codec0
|
|
set codec0.codec XCodec
|
|
set codec0.cache COSS
|
|
set codec0.cache_path "/var/lib/wanproxy"
|
|
set codec0.local_size 2048
|
|
set codec0.compressor zlib
|
|
set codec0.compressor_level 6
|
|
set codec0.byte_counts 1
|
|
activate codec0
|
|
|
|
create interface if0
|
|
set if0.family IPv4
|
|
set if0.host "192.168.1.23"
|
|
set if0.port "3301"
|
|
set if0.proto TCP
|
|
activate if0
|
|
|
|
create peer peer0
|
|
set peer0.family IPv4
|
|
set peer0.host "localhost"
|
|
set peer0.port "3128"
|
|
set peer0.proto TCP
|
|
activate peer0
|
|
|
|
create proxy proxy0
|
|
set proxy0.interface if0
|
|
set proxy0.interface_codec codec0
|
|
set proxy0.peer peer0
|
|
set proxy0.peer_codec None
|
|
set proxy0.role Server
|
|
activate proxy0
|
|
|