Skip to content

Instantly share code, notes, and snippets.

@rinrinne
Last active August 29, 2015 13:56
Show Gist options
  • Save rinrinne/9317413 to your computer and use it in GitHub Desktop.
Save rinrinne/9317413 to your computer and use it in GitHub Desktop.
LXC on Ubuntu desktop inside firewall
#/!bin/bash
#
# If you use docker, you should update /etc/default/docker.
# --
# DOCKER_OPTS="-dns ${LXC_ADDR}"
#
LXC_ADDR=
if [ -f /etc/default/lxc-net ]; then
. /etc/default/lxc-net
echo sudo ufw allow in on docker0 proto udp to ${LXC_ADDR} port 53
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment