LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-19-2006, 08:38 PM   #1
chucktilbury
LQ Newbie
 
Registered: Sep 2006
Location: left coast
Distribution: Fedora 5
Posts: 3

Rep: Reputation: 0
linux router/dns client config problem


I am a new poster here. I am a SW engineer by day, mostly on embedded linux stuff. I am not a very experenced sysadmin, though.

I am trying to switch to Linux from a linksys router. I have gotten routing working, iptables, and DHCP. I can ping any numerical address on the internet from a dorkstation behind the router, but I cannot resolve any names. I have checked to be sure that I am giving the contents of the /etc/resolv.conf (on the router) to the workstations (via DHCP). I can ping the addresses of the name servers in question from the workstation. I can access a SSH server that is outside the router from a workstation using the numerical address. I have tried disabling iptables (which seems to kill the router). Everything I can think of seems OK, except I cannot get any names resolved.

I am running a fresh installation of Fedora 5 on a fairly new computer with plenty of disk and memory. I am using the instructions in the "Fedora 5 Bible" to do the config.

Anyone seen this kind of problem?

Thanks,
-=ChuckT=-
 
Old 09-20-2006, 12:26 AM   #2
sal_paradise42
Member
 
Registered: Jul 2003
Location: Utah
Distribution: Gentoo FreeBSD 5.4
Posts: 150

Rep: Reputation: 16
Is your DNS server inside the network or is it your ISPs?
If its your ISPs, you maybe blocking it with your iptables config.
You can try tcpdump on the LAN facing interface to see if the traffic is been send out to your hosts
Code:
tcpdump -i eth1  -s 2000 "src port 53"
that is assuming that eth1 is your private LAN.
If you don't see anything, then make sure that is leaving the router
Code:
tcpdump -i eth0  -s 2000 "dst port 53"
that is assuming that eth0 is your WAN facing interface.
If you see traffic going out, then it may be your iptables configuration. If you can post an `iptables -nL -t filter` output from the router, may help out
 
Old 09-20-2006, 11:43 PM   #3
chucktilbury
LQ Newbie
 
Registered: Sep 2006
Location: left coast
Distribution: Fedora 5
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for responding!

Am I correct when I read between the lines that my workstation needs to be able to connect to UDP port 53 through the firewall? I think that I have it wide open for outgoing connections and pretty closed for incomming connections. Does that make sense? (is it even true? The `iptables -nL -t filter` output follows at the end) I had to switch back to the linksys router to make this post, so I will have to check the tcpdump later.

The DNS servers belong to my ISP. Also, the router functions normally for DNS resolution. All workstation have the problem, though.

Here is the dump:
------------
Chain INPUT (policy DROP)
target prot opt source destination
RH-Firewall-1-INPUT all -- 0.0.0.0/0 0.0.0.0/0
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:22 flags:0x17/0x02
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state NEW
ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0 icmp type 8

Chain FORWARD (policy DROP)
target prot opt source destination
RH-Firewall-1-INPUT all -- 0.0.0.0/0 0.0.0.0/0
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp flags:!0x17/0x02 state NEW
DROP all -- 0.0.0.0/0 0.0.0.0/0 state INVALID

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain RH-Firewall-1-INPUT (2 references)
target prot opt source destination
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0 icmp type 255
ACCEPT esp -- 0.0.0.0/0 0.0.0.0/0
ACCEPT ah -- 0.0.0.0/0 0.0.0.0/0
ACCEPT udp -- 0.0.0.0/0 224.0.0.251 udp dpt:5353
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:631
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:631
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 state NEW udp dpt:68
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 state NEW udp dpt:67
REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
 
Old 09-21-2006, 12:26 AM   #4
chucktilbury
LQ Newbie
 
Registered: Sep 2006
Location: left coast
Distribution: Fedora 5
Posts: 3

Original Poster
Rep: Reputation: 0
I just reconfigured to use the linux router again to see if I can get the tcpdump;s sugested earlier and I found that my eth1 (local lan) card was not being recognized. I gonna go get a 3com card and put that in. I will post more data when I get it.
 
  


Reply

Tags
config, routing



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
slackware router config problem meesterexx Slackware 9 02-27-2008 08:46 AM
DNS problem with linksys router acaho Linux - Networking 4 12-07-2006 08:13 AM
bad dns packets from netgear router - dhcp client fc4 rhoffman Linux - Networking 0 01-12-2006 09:14 AM
router config problem jrfly Linux - Networking 1 10-30-2004 09:58 AM
Kppp DNS config problem Ando Linux - Software 1 03-02-2004 02:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration