From 807e672437b0da7e9c3afd51e7d863515118c3ef Mon Sep 17 00:00:00 2001 From: Silvino Silva Date: Sun, 6 May 2018 14:26:55 +0100 Subject: added dns server to brigde --- core/scripts/iptables.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/scripts/iptables.sh') 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 -- cgit 1.4.1-2-gfad0