I only changed the --default-gateway=192.168.1.44 option for the daemon.
To give more background: My LAN is on 192.168.1.0/24. My docker host IP is 192.168.1.50/24. My regular default gateway is my router, 192.168.1.1/24, and the desired target gateway is 192.168.1.44/24.
I have tried
sudo docker network create --gateway 192.168.1.44 --subnet 192.168.1.0/24 netx
and then
sudo docker run --name vpn --cap-add=NET_ADMIN --network netx -i -t base/archlinux /bin/bash
I have also tried
sudo docker network create --aux-address "DefaultGatewayIPv4=192.168.1.44" --subnet 192.168.1.0/24 nety
and then
sudo docker run --name vpn --cap-add=NET_ADMIN --network nety -i -t base/archlinux /bin/bash
I know I’m probably missing something fundamental about bridging here. I don’t have much knowledge of the subject. I’m not sure how to create the bridge network.
Is this something that can be done or should I consider trying the PPTP option?