mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 13:01:52 -07:00
Fixing DNS issue in LXC virtualization
This commit is contained in:
parent
e7ec63a85f
commit
5be1e2d56d
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ echo "$iptables -P INPUT ACCEPT" >> $tmp
|
||||||
echo "$iptables -F INPUT" >> $tmp
|
echo "$iptables -F INPUT" >> $tmp
|
||||||
|
|
||||||
# Enabling stateful support
|
# Enabling stateful support
|
||||||
if [ "$conntrack" != 'no' ]; then
|
if [ "$conntrack" != 'no' ] || grep --quiet container=lxc /proc/1/environ; then
|
||||||
str="$iptables -A INPUT -m state"
|
str="$iptables -A INPUT -m state"
|
||||||
str="$str --state ESTABLISHED,RELATED -j ACCEPT"
|
str="$str --state ESTABLISHED,RELATED -j ACCEPT"
|
||||||
echo "$str" >> $tmp
|
echo "$str" >> $tmp
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue