From 5a102ede423b8709f7d4c3223ad104ee17be95bc Mon Sep 17 00:00:00 2001 From: dirk Date: Sat, 9 Mar 2019 16:35:34 +0100 Subject: [PATCH] my config changes --- UdpPipe/README | 1 - sample/client/udppipe.ini | 15 ++++++++++ sample/server/udppipe.ini | 50 ++++++++++++++++++++++++++++++++++ systemd/udppipe-client.service | 20 ++++++++++++++ systemd/udppipe-server.service | 20 ++++++++++++++ 5 files changed, 105 insertions(+), 1 deletion(-) delete mode 100644 UdpPipe/README create mode 100644 sample/client/udppipe.ini create mode 100644 sample/server/udppipe.ini create mode 100644 systemd/udppipe-client.service create mode 100644 systemd/udppipe-server.service diff --git a/UdpPipe/README b/UdpPipe/README deleted file mode 100644 index 581f534..0000000 --- a/UdpPipe/README +++ /dev/null @@ -1 +0,0 @@ -Look at http://www.liebrandapps.com/udppipe-a-udp-traffic-routing-utility for a description. \ No newline at end of file diff --git a/sample/client/udppipe.ini b/sample/client/udppipe.ini new file mode 100644 index 0000000..a78cc7a --- /dev/null +++ b/sample/client/udppipe.ini @@ -0,0 +1,15 @@ +# rename the template to udppipe.ini in order to use it +# once started lock at /tmp/udppipe.log + +[head] + +# Tail connects to this port port via TCP. UDP packets will be relayed through this connection +# this is the only mandatory key +pipePort=16001 + +# optional key - the ip of the connecting client needs to resolve to the hostname provided here +# use a dynamic dns provider to assign if you don't have a fixed ip / hostname +#tailHostname= + +# optional key - 10 = debug, 20 = info +# logLevel=10 diff --git a/sample/server/udppipe.ini b/sample/server/udppipe.ini new file mode 100644 index 0000000..d11d76d --- /dev/null +++ b/sample/server/udppipe.ini @@ -0,0 +1,50 @@ +# rename the template to udppipe.ini in order to use it +# once started look at /tmp/udppipe.log + +[tail] +# the following two keys tell thead app where to connect to +headHost=cloud2.koehlerweb.org +headPort=16001 +# timeout in seconds to wait for a response or the next incoming packet giving up / cleaning up +timeout=60 + + +# see head ini file +#logLevel=20 + + +# portConfigs need to be numberer sequentially starting with index 1. Reading the config will stop at the first "missing" number. +# n - integer +# Example: +[portConfig_1] +id=L2TP_500 +listenPort=500 +forwardHost=192.168.4.51 +forwardPort=500 + +[portConfig_2] +id=L2TP_4500 +listenPort=4500 +forwardHost=192.168.4.51 +forwardPort=4500 + +[portConfig_3] +id=L2TP_1701 +listenPort=1701 +forwardHost=192.168.4.51 +forwardPort=1701 + + + +#[portConfig_] +#id= +#listenPort= +#forwardHost= +#forwardPort= + +#enableAdmin=yes +#adminPort=16002 +#certificate=key/publickey.cer +#publicKey=key/publickey.pem +#privateKey=key/private.pem +#instanceName=My UdpPipe diff --git a/systemd/udppipe-client.service b/systemd/udppipe-client.service new file mode 100644 index 0000000..7a2df4d --- /dev/null +++ b/systemd/udppipe-client.service @@ -0,0 +1,20 @@ +# untested, feedback welcomed. +[Unit] +Description=UdpPipe - UDP Pipe +After=network.target +Requires=network.target + +[Service] +Environment=PYTHONPATH=/usr/local/UdpPipe +WorkingDirectory=/usr/local/UdpPipe +ExecStart=/usr/bin/python /usr/local/UdpPipe/eu/liebrand/udppipe/Pipe.py nodaemon -H +Restart=always +StandardOutput=syslog +StandardError=syslog +SyslogIdentifier=udppipe +Type=simple +User=root + +[Install] +WantedBy=multi-user.target + diff --git a/systemd/udppipe-server.service b/systemd/udppipe-server.service new file mode 100644 index 0000000..e180f0d --- /dev/null +++ b/systemd/udppipe-server.service @@ -0,0 +1,20 @@ +# untested, feedback welcomed. +[Unit] +Description=UdpPipe - UDP Pipe +After=network.target +Requires=network.target + +[Service] +Environment=PYTHONPATH=/usr/local/UdpPipe +WorkingDirectory=/usr/local/UdpPipe +ExecStart=/usr/bin/python /usr/local/UdpPipe/eu/liebrand/udppipe/Pipe.py nodaemon -T +Restart=always +StandardOutput=syslog +StandardError=syslog +SyslogIdentifier=udppipe +Type=simple +User=root + +[Install] +WantedBy=multi-user.target +