Another docker experience on Proxmox

One other note... any new overlay networks you create have to get the same sysctl -w net.ipv4.ip_forward=1 treatment, or they don't work.

I've moved the fix.ingress.start script into "/etc/periodic/15min" cron folder (on alpine) That way I create one - just wait a few minutes, and it works. All mine seem to start with "lb_" so I modified the script.

Code:
#!/bin/bash
sysctl -w net.ipv6.conf.all.disable_ipv6=1
for lp in {1..60};do
        if exists=$(test -f /run/docker/netns/ingress_sbox)
        then
                nsenter --net=/run/docker/netns/ingress_sbox sysctl -w net.ipv4.ip_forward=1
                for name in $(find /run/docker/netns/ | grep -i lb_);do
                        nsenter --net="${name}" sysctl -w net.ipv4.ip_forward=1
                done
                exit
        else
                echo "waiting $lp/60 - ingress_sbox does not exist"
                sleep 1
        fi
done

any reason why ip_forward shouldn't be set on everything in that folder?


@Drallas - it's starting to feel like we have a few more things to add to your awesome page.
 
Last edited:
  • Like
Reactions: Drallas