HI I try to implement a traefick reverse proxy on MY VPS to connect my selft hosted application my VPS is connected in my homeserver via Wireguard
I would Like traefick admin page availlable only on wireguard iterface and that traefick HTTPS port listen on both wireguard and public adress in purpose to go throught wiregard if I access to my site from my home
for that I had two host_network on my VPS nomad config
client {
enabled = true
host_network "private" {
interface = "wg0"
}
host_network "public" {
interface = "enp1s0"
}
}
and in my traefik job I have add
network {
mode = "host"
port "http" {
static = 80
}
port "https" {
static = 443
}
port "admin" {
static = 9080
host_network = "private"
}
}
but when I plan my job I have this issue
+/- Job: "traefik-ingress"
+/- Task Group: "traefik-ingress" (1 create/destroy update)
+ Network {
Hostname: ""
+ MBits: "0"
+ Mode: "host"
+ Static Port {
+ HostNetwork: "default"
+ Label: "http"
+ To: "0"
+ Value: "80"
}
+ Static Port {
+ HostNetwork: "private"
+ Label: "admin"
+ To: "0"
+ Value: "9080"
}
+ Static Port {
+ HostNetwork: "default"
+ Label: "https"
+ To: "0"
+ Value: "443"
}
}
- Network {
Hostname: ""
- MBits: "0"
- Mode: "host"
- Static Port {
- HostNetwork: "private"
- Label: "admin"
- To: "0"
- Value: "9080"
}
- Static Port {
- HostNetwork: "public"
- Label: "https"
- To: "0"
- Value: "443"
}
- Static Port {
- HostNetwork: "public"
- Label: "http"
- To: "0"
- Value: "80"
}
}
Task: "server"
Scheduler dry-run:
- WARNING: Failed to place all allocations.
Task Group "traefik-ingress" (failed to place 1 allocation):
* Constraint "missing host network \"default\" for port \"http\"": 1 nodes excluded by filter
Job Modify Index: 46618
To submit the job with version verification run:
nomad job run -check-index 46618 traefik-ingress.nomad
When running the job with the check-index flag, the job will only be run if the
job modify index given matches the server-side version. If the index has
changed, another user has modified the job and the plan's results are
potentially invalid.