mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -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
|
||||
|
||||
# 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="$str --state ESTABLISHED,RELATED -j ACCEPT"
|
||||
echo "$str" >> $tmp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue