• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

restricting ip address with iptables

wuboy

Member

hi all,

i have a configuration where i have a box doing NAT and firewalling two DNS boxes. now i want to restrict ip addresses to access one or the other, depending on which ip address the request is made from, it will resolve queries from either one DNS or the other.

i have something in the form of:

$IPTABLES -t nat -A PREROUTING -p TCP -i $EXTERNAL1 -d $EXT_IP1 --dport 53 -j DNAT --to-destination 192.168.1.2
for universal IPs

and

$IPTABLES -t nat -A PREROUTING -p TCP -s 1.2.3.4/32 -i $EXTERNAL1 -d $EXT_IP1 --dport 53 -j DNAT --to-destination 192.168.1.3
for the 1.2.3.4 IP address

of course i have for TCP and UDP as well.

however, this doesnt seem to work, so when i try to test with two different computers, i get directed to the same DNS. am i missing something?

thanks in advance
 
Back
Top