Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can PIX501 relay DNS queries to inet and back?

Status
Not open for further replies.

JWalkI

Technical User
Jun 14, 2005
12
0
0
CZ
Hello to all,
topic says it all. Is PIX501 able to relay DNS queries from inside interface to outside (xDSL router) and back? I am trying to have PIX501 ip address entered as my gateway and also as my one and only DNS entry on our workstations. But after trying to query something through DNS, the only result is a message in PIX-log: "UDP request discarded from INTERNAL_IP to inside:10.0.0.140/domain" Is there a way to relay DNS network traffic to our ISP through PIX? What do I have to add to my configuration? Thanks for your help.

Building configuration...
PIX Version 6.3(1)
interface ethernet0 auto
interface ethernet1 100full
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password **** encrypted
passwd ****** encrypted
hostname host
domain-name host.com
clock timezone CEST 1
clock summer-time CEDT recurring last Sun Mar 2:00 last Sun Oct 3:00
fixup protocol ftp 21
fixup protocol h323 h225 1720
fixup protocol h323 ras 1718-1719
fixup protocol http 80
fixup protocol icmp error
fixup protocol ils 389
fixup protocol rsh 514
fixup protocol rtsp 554
fixup protocol sip 5060
fixup protocol sip udp 5060
fixup protocol skinny 2000
fixup protocol smtp 25
fixup protocol sqlnet 1521
names
access-list nonat permit ip 10.0.0.0 255.255.255.0 10.0.5.0 255.255.255.0
access-list ping_out permit icmp any any echo-reply
access-list 101 permit ip 10.0.1.0 255.255.255.0 10.0.5.0 255.255.255.0
access-list 102 permit icmp any any
access-list 102 permit udp any any
access-list 102 permit tcp any any
access-list outside_access_in permit icmp any any
pager lines 24
logging on
logging timestamp
logging buffered debugging
logging trap warnings
icmp permit any echo-reply outside
icmp permit any traceroute outside
icmp permit any inside
mtu outside 1492
mtu inside 1492
ip address outside 10.0.1.140 255.255.255.0
ip address inside 10.0.0.140 255.255.255.0
ip verify reverse-path interface outside
ip audit name ATCK1 attack action alarm drop
ip audit interface outside ATCK1
ip audit info action alarm
ip audit attack action alarm
ip local pool comp_ip 10.0.5.110-10.0.5.120
pdm location 10.0.5.0 255.255.255.0 outside
pdm location 10.0.0.0 255.0.0.0 inside
pdm location 10.0.5.0 255.255.255.0 inside
pdm location 0.0.0.0 255.0.0.0 inside
pdm location IP_ADDR 255.255.255.255 outside
pdm logging informational 100
pdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list nonat
nat (inside) 1 10.0.0.0 255.255.255.0 dns 3000 500
nat (inside) 0 0.0.0.0 255.0.0.0 dns 3000 500
access-group outside_access_in in interface outside
access-group 102 in interface inside
route outside 0.0.0.0 0.0.0.0 10.0.1.138 1
timeout xlate 0:05:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h225 1:00:00
timeout h323 0:05:00 mgcp 0:05:00 sip 0:30:00 sip_media 0:02:00
timeout uauth 0:05:00 absolute
aaa-server TACACS+ protocol tacacs+
aaa-server RADIUS protocol radius
aaa-server LOCAL protocol local
aaa authentication ssh console LOCAL
http server enable
http 10.0.1.0 255.255.255.0 outside
http 10.0.5.0 255.255.255.0 inside
http 10.0.0.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
snmp-server community public
no snmp-server enable traps
floodguard enable
sysopt connection tcpmss 0
sysopt connection permit-ipsec
sysopt ipsec pl-compatible
sysopt noproxyarp outside
sysopt noproxyarp inside
crypto ipsec transform-set test esp-des esp-md5-hmac
crypto dynamic-map dynmap 10 set transform-set test
crypto dynamic-map dynmap 30 set transform-set test
crypto dynamic-map outside_dyn_map 1 set transform-set test
crypto map gtpmap 10 ipsec-isakmp dynamic dynmap
crypto map gtpmap interface outside
crypto map outside_map 65535 ipsec-isakmp dynamic outside_dyn_map
isakmp enable outside
isakmp identity address
isakmp nat-traversal 20
isakmp policy 10 authentication pre-share
isakmp policy 10 encryption des
isakmp policy 10 hash md5
isakmp policy 10 group 2
isakmp policy 10 lifetime 86400
vpngroup gtppix address-pool comp_ip
vpngroup gtppix idle-time 1800
vpngroup gtppix secure-unit-authentication
vpngroup gtppix password ***
telnet timeout 5
ssh 10.0.1.0 255.255.255.0 outside
ssh 10.0.5.0 255.255.255.0 inside
ssh 10.0.0.0 255.255.255.0 inside
ssh timeout 30
management-access inside
console timeout 0
dhcpd dns 194.228.2.1 194.228.41.113
dhcpd auto_config outside
username USER password PASS encrypted privilege 15
terminal width 80
Cryptochecksum:******
: end
 
I dont know if the question is correctly asked... The one thing I need to know how to set our PIX501 to permit DNS responses to resolve correctly through this PIX Firewall, because we have no local DNS server (only our ISP at outside interface does). I read something about aliases but I dont know how to set it up or if there is a better way than aliases. Thx for any comments.
 
Your workstations should be set up with the ISP's DNS server addresses, not the Pix itself.
 
Some of the gateway/firewall appliances out there can serve as DNS resolvers, but the PIX isn't one of them.
 
Thx for your answers. I had set it up so, that our workstations have as primary DNS our xDSL router which can relay DNS (act as DNS Proxy) to our ISP and it works OK. The only thing I wanted was to make it easier for users - to only have 1 IP address for both Gateway/DNS, but as I see, PIX cant relay DNS to anything :-(.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top