Re: DNS on the Linux iptables box

From: Andres Bohren (info_at_icewolf.ch)
Date: 04/28/03


Date: Mon, 28 Apr 2003 15:24:12 +0200


> I want my linux box to be the iptables box and the DNS in the same time.
> In a dmz network environment, do I need to forward the dns packet to the
> linux box itself? or the INPUT / OUTPUT chain will receieve and send out?
> Any help will be appreciated.

#For external DNS Requests
iptables -A INPUT -d $EXT_IP --dport 53 -p udp -j ACCEPT
iptables -A OUTPU -s $EXT_IP --sport 53 -p udp -j ACCEPT

# For external ZONE Transfers to your 2ndary DNS Server
iptables -A INPUT -s $2DNS_IP -d $EXT_IP --dport 53 -p tcp -j ACCEPT
iptables -A OUTPU -s $EXT_IP -d $2DNS_IP --sport 53 -p tcp -j ACCEPT

#Enable IP Forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward

# Forward DNS Requests from your DMZ
iptables -A FORWARD -s $DMZ_NET -d $EXT_DNS_IP -p udp -dport 53 -j ACCEPT
iptables -A FORWARD -s $EXT_DNS_IP -d $DMZ_NET -p udp -dport 53 -j ACCEPT

mfg
Andres Bohren



Relevant Pages

  • Re: Networking problems (again) tough one
    ... The problem *only* occurs on my Linux machines. ... DNS numbers, ... all systems start working again whether setup manually or with DHCP. ... If theu are shoing good, and yet things dont work, you may have a misconfigured router. ...
    (comp.os.linux.setup)
  • Re: Networking problems (again) tough one
    ... The problem *only* occurs on my Linux machines. ... DNS numbers, ... Turned out the only reason my manual settings had worked was simply because I had been fooling with it for two ... all systems start working again whether setup manually or with DHCP. ...
    (comp.os.linux.setup)
  • Re: Networking problems (again) tough one
    ... The problem *only* occurs on my Linux machines. ... DNS numbers, ... all systems start working again whether setup manually or with DHCP. ... I assume the linux machines are getting DHCP stuff right? ...
    (comp.os.linux.setup)
  • RE: DNS not responding
    ... The Cisco commands simply accomplish port mapping, ... so that all DNS requests are sent to my linux box (since obviously the ... router isn't serving my dns zone). ... > router, which is why I've moved to this setup. ...
    (RedHat)
  • Re: Linux still surfs slower than Windows
    ... That wouldn't explain why the Linux browser chokes on any given ... >>up with the same DNS configurations. ... > although it seems they do work properly with MS requests. ...
    (comp.os.linux.networking)