Skip to content

Commit

Permalink
fix(wg-ns): podman pod
Browse files Browse the repository at this point in the history
  • Loading branch information
rwxd committed Nov 24, 2023
1 parent b576f5b commit e65708f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Misc/wireguard-vpn-namespace.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,3 +188,27 @@ random=$(openssl rand -hex 10)
ip netns exec vpn curl -4 -s "https://$session-$random.ipleak.net/dnsdetection/"
ip netns exec vpn curl -6 -s "https://$session-$random.ipleak.net/dnsdetection/"
```

### Example Podman Pod

Quadlet file in `/etc/containers/systemd/deluge.kube`

Notice the `After` and `Network` directives.

```ini
[Install]
WantedBy=default.target

[Unit]
After=ns-vpn.service

[Kube]
Yaml=/opt/container/deluge/deluge.kube.yaml
Network=ns:/var/run/netns/vpn

[Service]
# Restart service when sleep finishes
Restart=always
# Extend Timeout to allow time to pull the image
TimeoutStartSec=900
```

0 comments on commit e65708f

Please sign in to comment.