about summary refs log tree commit diff stats
path: root/core
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2018-05-06 14:26:55 +0100
committerSilvino Silva <silvino@bk.ru>2018-05-06 14:26:55 +0100
commit807e672437b0da7e9c3afd51e7d863515118c3ef (patch)
tree320588b920f48e11923b576923e6d06d4ceb1af2 /core
parent1bfea776374a665e4e2fd70aa74a145976c4034e (diff)
downloaddoc-807e672437b0da7e9c3afd51e7d863515118c3ef.tar.gz
added dns server to brigde
Diffstat (limited to 'core')
-rw-r--r--core/scripts/iptables.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/scripts/iptables.sh b/core/scripts/iptables.sh
index 3824dab..5d09f00 100644
--- a/core/scripts/iptables.sh
+++ b/core/scripts/iptables.sh
@@ -69,6 +69,8 @@ case $TYPE in
 
         $IPT -A INPUT -i ${BR_IF} -d ${PUB_IP} -s ${BR_NET} -j cli_ssh_in
 
+        $IPT -A INPUT -i ${BR_IF} -d ${PUB_IP} -s ${BR_NET} -m physdev --physdev-in tap2 -j srv_dns_in
+
         $IPT -A INPUT -i ${BR_IF} -m physdev --physdev-in tap2 -j srv_dhcp
         $IPT -A INPUT -i ${BR_IF} -m physdev --physdev-in ${PUB_IF} -s ${GW} -d ${PUB_IP}  -j srv_dhcp
 
@@ -83,6 +85,7 @@ case $TYPE in
         $IPT -A OUTPUT -o ${BR_IF} -s ${PUB_IP} -d ${BR_NET} -j cli_git_out
 
         $IPT -A OUTPUT -o ${BR_IF} -s ${PUB_IP} -d ${BR_NET} -j srv_dhcp
+        $IPT -A OUTPUT -o ${BR_IF} -d ${BR_NET} -s ${PUB_IP} -j srv_dns_out
 
         ####### PostRouting Chain ######
         $IPT -t nat -A POSTROUTING -o lo -s 127.0.0.0/8 -d 127.0.0.0/8 -j ACCEPT