|
|
|
@ -4,7 +4,7 @@ Diplonat
|
|
|
|
|
## Feature set
|
|
|
|
|
|
|
|
|
|
* [X] (Re)Configure NAT via UPNP/IGD (prio: high)
|
|
|
|
|
* [ ] (Re)Configure nftable (prio: low)
|
|
|
|
|
* [X] (Re)Configure iptables (prio: low)
|
|
|
|
|
* [ ] (Re)Configure DNS via ??? (prio: low)
|
|
|
|
|
|
|
|
|
|
## Understand scope
|
|
|
|
@ -17,11 +17,24 @@ Diplonat
|
|
|
|
|
|
|
|
|
|
## Operate
|
|
|
|
|
|
|
|
|
|
You need to add the following to your nomad config file :
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
client {
|
|
|
|
|
[...]
|
|
|
|
|
|
|
|
|
|
options {
|
|
|
|
|
docker.privileged.enabled = "true"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
cargo build
|
|
|
|
|
consul agent -dev # in a separate terminal
|
|
|
|
|
|
|
|
|
|
# adapt following values to your configuratio
|
|
|
|
|
# adapt following values to your configuration
|
|
|
|
|
export DIPLONAT_PRIVATE_IP="192.168.0.18"
|
|
|
|
|
export DIPLONAT_REFRESH_TIME="60"
|
|
|
|
|
export DIPLONAT_EXPIRATION_TIME="300"
|
|
|
|
|