I’m trying to set up a container that will use a machine in my LAN as the default gateway. This machine is an Odroid XU4 running Arch Linux currently connected to a VPN.
I have IP forwarding set and have added the iptables rules necessary to the XU4. IP forwarding is also enabled on the Fedora 26 machine (docker host) running docker 1.13.1
I have tried passing --default-gateway=192.168.1.44 in the docker.service file but this causes the service to fail to load. I have a feeling I have to create a bridge by specifying more parameters but I’m unsure how to do that. Also, I may run more than one container so I’d rather change the gateway setting per container individually.
I have also considered setting up a PPTP connection locally without encryption (to spare resources – I’m not scared of a local attack).
Does anyone know what needs to be done?
Docker is running on Fedora 26, build 27e468e/1.13.1
Thank you very much!