From 09c50fd29f95d99a1b2c373e35c76a9f6484ff01 Mon Sep 17 00:00:00 2001 From: kev Date: Tue, 6 Feb 2018 18:21:49 +0800 Subject: [PATCH] update rinetd --- rinetd/README.md | 19 +++++++++++++++++++ rinetd/data/rinetd.conf | 6 ++---- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/rinetd/README.md b/rinetd/README.md index 797bb6f..dc55e7c 100644 --- a/rinetd/README.md +++ b/rinetd/README.md @@ -5,4 +5,23 @@ rinetd address/port combination to another. It is useful when operating virtual servers, firewalls and the like. +## docker-compose.yml + +```yaml +rinetd: + image: vimagick/rinetd + volumes: + - ./data:/etc/rinetd + net: host + restart: always +``` + +## up and running + +```bash +$ docker-compose up -d +$ dig @127.0.0.1 -p 5353 google.com +short +$ docker-compose logs +``` + [1]: https://github.com/samhocevar/rinetd diff --git a/rinetd/data/rinetd.conf b/rinetd/data/rinetd.conf index 25bdf4a..05cab78 100644 --- a/rinetd/data/rinetd.conf +++ b/rinetd/data/rinetd.conf @@ -21,12 +21,10 @@ # 127.0.0.1 4000/udp 127.0.0.1 22 [timeout=1200] # 127.0.0.1 8000/udp 192.168.1.2 8000/udp [src=192.168.1.2,timeout=1200] -127.0.0.1 5353/udp 8.8.8.8 53/udp +127.0.0.1 5353/udp 8.8.8.8 53/udp # logging information -# logfile /var/log/rinetd.log - logfile /dev/stdout # uncomment the following line if you want web-server style logfile format -# logcommon +logcommon