Skip to content

Commit fd45b7c

Browse files
authored
Remove broken config for IPv4 + IPv6 setup (#3)
While using the container in a dual-stack setup I noticed that it's sufficient to bind the IPv6 ports, as IPv4 traffic will reach the application as a translated IPv6 message. Thus using the IPv6-only config actually works for both IPv4 and IPv6.
1 parent 1c70536 commit fd45b7c

2 files changed

Lines changed: 5 additions & 11 deletions

File tree

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ docker run \ # or `podman` or what ever other container runtime you like
1717
-v /path/to/user/data:/etc/crymap/users \ # mount the user data
1818
-v /path/to/crymap.toml:/etc/crymap/crymap.toml \ # mount your config
1919
-v /path/to/privkey.pem:/config/path/to/privkey.pem \ # mount pivkey (make sure to adjust path as in your config)
20-
-v /path/to/fullchain.pem:/config/path/to/fullchain.pem \ # mount fullchein (make sure to adjust path as in your config)
20+
-v /path/to/fullchain.pem:/config/path/to/fullchain.pem \ # mount fullchain (make sure to adjust path as in your config)
2121
ghcr.io/molikuner/crymap-container:latest
2222
```
2323

@@ -27,8 +27,10 @@ The container is configured by default to log to stdout. If that needs to be adj
2727

2828
### IPv6
2929

30-
By default the container only binds IPv4 ports. If host networking is used or the container runtime supports IPv6, simply use the `/etc/inetd46.conf` to bind to IPv4 and IPv6 addresses.
30+
By default the container only binds IPv4 ports. If host networking is used or the container runtime supports IPv6, simply use the `/etc/inetd6.conf` to bind to IPv4 and IPv6 addresses.
31+
32+
Since the entrypoint of the container is `inetd` already, it's sufficient to specify the new config as command:
3133

3234
```shell
33-
docker run <...> ghcr.io/molikuner/crymap-container:latest /etc/inetd46.conf
35+
docker run <...> ghcr.io/molikuner/crymap-container:latest /etc/inetd6.conf
3436
```

config/inetd46.conf

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)