2020-05-08 08:57:10 +00:00
|
|
|
Diplonat
|
|
|
|
========
|
|
|
|
|
2020-05-09 14:56:39 +00:00
|
|
|
## Feature set
|
|
|
|
|
|
|
|
* [ ] (Re)Configure NAT via UPNP/IGD (prio: high)
|
|
|
|
* [ ] (Re)Configure nftable (prio: low)
|
|
|
|
* [ ] (Re)Configure DNS via ??? (prio: low)
|
|
|
|
|
|
|
|
## Operate
|
|
|
|
|
2020-05-08 08:57:10 +00:00
|
|
|
```bash
|
|
|
|
cargo build
|
2020-05-08 08:58:04 +00:00
|
|
|
consul agent -dev # in a separate terminal
|
2020-05-08 08:57:10 +00:00
|
|
|
|
2020-05-08 08:58:04 +00:00
|
|
|
# adapt following values to your configuratio
|
2020-05-08 08:57:10 +00:00
|
|
|
export DIPLONAT_PRIVATE_IP="192.168.0.18"
|
|
|
|
export DIPLONAT_REFRESH_TIME="60"
|
|
|
|
export DIPLONAT_EXPIRATION_TIME="300"
|
|
|
|
export DIPLONAT_CONSUL_NODE_NAME="lheureduthe"
|
|
|
|
cargo run
|
|
|
|
```
|