Last active
August 29, 2015 13:56
-
-
Save rinrinne/9317413 to your computer and use it in GitHub Desktop.
LXC on Ubuntu desktop inside firewall
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/!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