Compare commits
4 Commits
11d703efcb
...
323db065ad
Author | SHA1 | Date | |
---|---|---|---|
323db065ad | |||
ca9507e26f | |||
5860e53690 | |||
111d316802 |
20
README.md
20
README.md
@ -36,13 +36,23 @@ In case routes clash or cant be added to Wireguard, Warnings will be logged.
|
|||||||
|
|
||||||
## 1.2. Install
|
## 1.2. Install
|
||||||
|
|
||||||
|
### 1.2.1. Environment
|
||||||
|
|
||||||
|
Variable|Description|Default
|
||||||
|
-|-|-
|
||||||
|
`INTERFACE`* | Wireguard-Interface Name |
|
||||||
|
`FILTER_PROTOCOL` | Protocol to react on | All
|
||||||
|
`FILTER_TABLE` | Table to react on | All
|
||||||
|
|
||||||
|
*\* Required*
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
### 1.2.1. Docker
|
### 1.2.2. Docker
|
||||||
|
|
||||||
Depending on the needs, the Container can be run in `network_mode: host` to be able to accessrouting-tables and interfaces of the host.
|
Depending on the needs, the Container can be run in `network_mode: host` to be able to access routing-tables and interfaces of the host.
|
||||||
|
|
||||||
|
Additionally the capability `NET_ADMIN` is required for interacting with interfaces.
|
||||||
|
|
||||||
<details><summary><code>docker-compose.yml</code></summary>
|
<details><summary><code>docker-compose.yml</code></summary>
|
||||||
|
|
||||||
@ -53,7 +63,9 @@ services:
|
|||||||
routingTableWGTranslator:
|
routingTableWGTranslator:
|
||||||
image: ruakij/RoutingTableWGTranslator
|
image: ruakij/RoutingTableWGTranslator
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
network_mode: "host"
|
network_mode: host
|
||||||
|
cap_add:
|
||||||
|
- NET_ADMIN
|
||||||
environment:
|
environment:
|
||||||
- INTERFACE="<wgInterfaceName or empty for wg0>"
|
- INTERFACE="<wgInterfaceName or empty for wg0>"
|
||||||
```
|
```
|
||||||
@ -61,7 +73,7 @@ services:
|
|||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
### 1.2.2. Without Docker
|
### 1.2.3. Without Docker
|
||||||
|
|
||||||
Clone the Repository `git clone <URI>` and build the Program with `go build cmd/app`
|
Clone the Repository `git clone <URI>` and build the Program with `go build cmd/app`
|
||||||
|
|
||||||
|
2
build/docker-multiarch.sh
Normal file → Executable file
2
build/docker-multiarch.sh
Normal file → Executable file
@ -5,5 +5,5 @@ EXTRA_ARGS="$@"
|
|||||||
docker buildx build \
|
docker buildx build \
|
||||||
--platform $PLATFORM \
|
--platform $PLATFORM \
|
||||||
--tag $TAG \
|
--tag $TAG \
|
||||||
$EXTRA_ARGS
|
$EXTRA_ARGS \
|
||||||
.
|
.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user