Alpine proxy and DNS server for bridged Ubuntu VMs
551
This image is expected to be run this way on an Ubuntu server:
docker run --rm --name proxy --cap-add NET_ADMIN --network host juguerre/alpine-proxy
The container will have access to host networking and will run 2 services:
Note: These ports must not be in use on the host.
You can stop local DNS service in ubuntu with:
sudo systemctl start systemd-resolved.service
Now you can run this image that will run dnsmasq on port 53.
Note: you probably won't have internet conection if you stop systemd-resolved.service and do not run this image in its place.
During container initialization iptables will be edited. Once the container is running iptables should look like:
route -n
# Destino Pasarela Genmask Indic Métric Ref Uso Interfaz
# 0.0.0.0 10.124.64.1 0.0.0.0 UG 0 0 0 enp0s8
# 10.0.0.0 10.0.2.2 255.0.0.0 UG 1000 0 0 enp0s3
# 10.124.64.0 0.0.0.0 255.255.192.0 U 0 0 0 enp0s8
Content type
Image
Digest
Size
14 MB
Last updated
over 6 years ago
docker pull juguerre/alpine-proxy