Sign inSign up

juguerre/alpine-proxy

By juguerre

Updated over 6 years ago

Alpine proxy and DNS server for bridged Ubuntu VMs

Image
0

551

juguerre/alpine-proxy repository overview

Get started

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 

Services

The container will have access to host networking and will run 2 services:

  • Squid proxy server on port [3128]
  • dnsmasq server on port [53]

Note: These ports must not be in use on the host.

Ubuntu systemd-resolved.service on port 53

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.

Networking

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

Tag summary

Content type

Image

Digest

Size

14 MB

Last updated

over 6 years ago

docker pull juguerre/alpine-proxy