Browse Source

my config changes

master
Dirk Köhler 3 years ago
parent
commit
5a102ede42
  1. 1
      UdpPipe/README
  2. 15
      sample/client/udppipe.ini
  3. 50
      sample/server/udppipe.ini
  4. 20
      systemd/udppipe-client.service
  5. 20
      systemd/udppipe-server.service

1
UdpPipe/README

@ -1 +0,0 @@
Look at http://www.liebrandapps.com/udppipe-a-udp-traffic-routing-utility for a description.

15
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=<hostname>
# optional key - 10 = debug, 20 = info
# logLevel=10

50
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_<n>]
#id=<string identifier, something meaningfull for you>
#listenPort=<port the head application should listen on for incoming udp packets>
#forwardHost=<hostname in the local network tail is running>
#forwardPort=<port number where the target service is running in the LAN>
#enableAdmin=yes
#adminPort=16002
#certificate=key/publickey.cer
#publicKey=key/publickey.pem
#privateKey=key/private.pem
#instanceName=My UdpPipe

20
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

20
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
Loading…
Cancel
Save