update rinetd

This commit is contained in:
kev 2018-02-06 18:21:49 +08:00
parent 77f2d957c3
commit 09c50fd29f
2 changed files with 21 additions and 4 deletions

View File

@ -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

View File

@ -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