2018-02-06 12:08:53 +02:00
|
|
|
rinetd
|
|
|
|
======
|
|
|
|
|
|
|
|
[rinetd][1] is used to efficiently redirect connections from one IP
|
|
|
|
address/port combination to another. It is useful when operating virtual
|
|
|
|
servers, firewalls and the like.
|
|
|
|
|
2018-02-06 12:21:49 +02:00
|
|
|
## docker-compose.yml
|
|
|
|
|
|
|
|
```yaml
|
2023-03-17 05:47:02 +02:00
|
|
|
version: "3.8"
|
|
|
|
services:
|
|
|
|
rinetd:
|
|
|
|
image: vimagick/rinetd
|
|
|
|
volumes:
|
|
|
|
- ./data:/etc/rinetd
|
|
|
|
network_mode: host
|
|
|
|
restart: unless-stopped
|
2018-02-06 12:21:49 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
## up and running
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ docker-compose up -d
|
|
|
|
$ dig @127.0.0.1 -p 5353 google.com +short
|
|
|
|
$ docker-compose logs
|
|
|
|
```
|
|
|
|
|
2018-02-06 12:08:53 +02:00
|
|
|
[1]: https://github.com/samhocevar/rinetd
|