Skip to content

Instantly share code, notes, and snippets.

@therevoman
Created July 28, 2021 03:32
Show Gist options
  • Save therevoman/8d12e48b2c59d0b036ccc242b377e735 to your computer and use it in GitHub Desktop.
Save therevoman/8d12e48b2c59d0b036ccc242b377e735 to your computer and use it in GitHub Desktop.

While trying to set up the k8s submariner project I realized I needed a UDP proxy.

I had to forward 3 ports through my firewall to the server running podman, port 4800, 4501, 501.

udp_backends="compute1 compute2 compute3 compute4 compute5 compute6 compute7"
podman run -d --name ocs_submariner_4800 -p 4800:4800 -e BACKENDS="$udp_backends" -e PORT_BACKEND=4800 -e PORT_LISTEN=4800 instantlinux/udp-nginx-proxy
podman run -d --name ocs_submariner_4501 -p 4501:4501 -e BACKENDS="$udp_backends" -e PORT_BACKEND=4501 -e PORT_LISTEN=4501 instantlinux/udp-nginx-proxy
podman run -d --name ocs_submariner_501 -p 501:501 -e BACKENDS="$udp_backends" -e PORT_BACKEND=501 -e PORT_LISTEN=501 instantlinux/udp-nginx-proxy

Then update the firewall on the box

firewall-cmd --add-port=4800/udp
firewall-cmd --add-port=4501/udp
firewall-cmd --add-port=501/udp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment