1.3     Configuration

The configuration of IP-Proxy is done by means of a configuration file. This file has to be formatted as the well-known Ini-File format, i.e.

 

[Section_1]

parameter_1 = value_1

parameter_2 = value_2

:

[Section_2]

:

 

Note: there is a sample configuration file 'my_proxy.ini' in the installation directory of IP-Proxy

 

In following an example is shown:

[Log]
 LogAct=1
 :
 
 [General]
 NoOfReceivers=1
 :
 
 [Receiver_1]
 IpAddr =127.0.0.1
 :
 
 [Serial_R_1]
 BaudRate=11
 :
 
 [Receiver_Http_1]
 HttpIpPort=443
 :
 
 [Sender_1]
 IpAddr =192.168.0.11
 :
 
 [Serial_S_1]
 BaudRate=11
 :
 
 [Sender_Http_1]
 HttpClientUrl=https://192.168.0.58/nrdp/
 :
  

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 




 


 

All parameters are described in following:

 

[General]

IniNoOfReceivers

number of receivers, i.e. number of sections [Receiver_x] which have to be provided

IniNoOfSenders

number of senders, i.e. number of sections [Senders_x] which have to be provided

CtrlIp

IP address of monitoring UDP server

CtrlPort

Port of monitoring UDP server

CtrlAct

monitoring server on/off

0 = off, 1 = on

 

[Receiver_X], [Sender_X]

IpAddr   

IP-Address of Client/Server

IpPort   

IP-Port of Client/Server

bBind

Binding of Client/Server

0 = off, 1 = on

BindIp   

Binding IP-Address

BindPort

Binding IP-Port

bMcast   

Multicast (only UDP)

0 = off, 1 = on

McastIP

Multicast IP-Address

Protocol

0 = UDP, 1 = TCP, 2 = Serial

bIpServer

Application (only TCP/UDP)

0 = acts as Client

1 = acts as Server

RcvTimeOut

receiver timeout in msec

Duplex

Duplex Operation Mode (only Serial)

0 = off, 1 = on

ProcFn

file name of an external data-processor library (including path)

ProcParam

list of parameters for the external data-processor

note: the parameters and their format are defined by the

data-processor

bLogHex

the data will be logged as hexa-decimal data string

bLogDpi

the data-output of the data-processor is logged

note: only available for receiver data-processors

IpcId

unique ID for an inter-process communication (IPC)

IpcTime

time in seconds for waiting of an IPC connection

bMonitoring

monitoring on/off

0 = off, 1 = on

iMonTimeout

monitoring message timeout (minutes)

 

 

[Serial_R_X], [Serial_S_X]

BaudeRate

Windows 

0= 110, 1 = 300, 2 = 600, 3 = 1200, 4 = 2400, 5 = 4800,

6 = 9600, 7 = 14400, 8 = 19200, 9 = 38400, 10 = 56000,
11 = 57600, 12 = 115200, 13 = 128000, 14 = 230400,
15 = 256000, 16 = 460800, 17 = 921600

Unix

0 = 0, 1 = 50, 2 = 75, 3 = 110, 4 = 134, 5 = 150, 6 = 200, 7 = 300, 8 = 600, 9 = 1200, 10 = 1800, 11 = 2400,
12 = 4800, 13 = 9600, 14 = 19200 15 = 38400, 16 = 57600,

17 = 115200, 18 = 230400, 19 = 460800, 20 = 500000,
21 = 576000, 22 = 921600, 23 = 1000000, 24 = 1152000,

25 = 1500000, 26 = 2000000, 27 = 2500000, 28 = 3000000,

29 = 3500000, 30 = 4000000

DataBits 

0 = 8bits, 1 = 7bits, 2 = 6bits, 3 = 5bits

StopBits 

0 = 1, 1 = 1,5, 2 = 2

Parity   

0 = none, 1 = Xon/Xoff, 2 = Hardware

Device   

Name of the Serial Device (only Serial)

Windows

e.g. COM1

Unix

e.g. ttyS0

LineCrLf

Line-Feed Control (only Serial)

0 = off, 1 = on

 

 

[Receiver_Http_X]

Https

enable HTTPS

0 = HTTPS disabled

1 = HTTPS enabled

HttpCertFile

HttpCAFile

HttpPrivKey

HttpKeyPw

HTTPS certificate
Note: a decontev certificate is available in the subdirectory 'Certificate' of the IP-Tools installation directory

example using decontev certificate:

HttpCertFile=<install_dir>\Certificate\d-ca-cert.pem

HttpCAFile==<install_dir>\Certificate\d-pub.pem

HttpPrivKey=<install_dir>\Certificate\d-ca-key.pem

HttpKeyPw=decontev_123

HttpClientGetFreq

frequency of HTTP Get requests

HttpClientUrl

URL of the HTTP Get request

 

 

 

 

[Sender_Http_X]

HttpClientUrl

destination URL

HttpClientUserAgent

replace UserAgent in the HTTP header

HttpClientMimeType

replace MimeType in the HTTP header

HttpClientAddHeaderCnt

number of additional HTTP header entries

 

HttpClientAddHeader_x

additional HTTP header entry x

 

[Log]

LogAct

activate Logger

0 = inactive , 1= active

LogPath

log-file path

LogLevel

1 = error, 2 = warning, 3 = info, 4 = debug

DiskSize

minimum disk size in MB for logging

NoOfFiles

number of log-files in the log-file path

ZipArchive

0 = none, 1 = older files are zipped