LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack Search this Thread
Old 08-02-2003, 04:05 AM   #1
gkhewitt
Member
 
Registered: Jun 2003
Distribution: ClarkConnect (RH9)
Posts: 41

Rep: Reputation: 15
Network access OK but server cannot use internet


Ok hoping someone can help me, I have little hair left after this one...

I have a home network set up with a Redhat 8 box and 3 client PCs. The redhat box has eth0 connected to the cable modem for Internet and eth1 as the LAN which goes to a hub.

I have IP tables setup for NAT with Masquerading and forwards are accepted from eth1. Inputs are also always accepted from eth1. Output policy is ACCEPT, except for netbios stuff on eth0 which is dropped.

The problem is that client machines can use the internet no problem through the server, but the server can not use the internet itself?!? Pages and things keep timing out etc. Cannot ping using name or IP. My mailserver on the box can receive mail but cannot send at all (DNS failiure).

Any ideas??
 
Old 08-02-2003, 07:54 AM   #2
soob
Member
 
Registered: May 2003
Location: A country town, Australia
Distribution: Debian
Posts: 72

Rep: Reputation: 15
Does sound weird. If the clients can get webpages thru the server, then iptables' FORWARD rules are passing traffic. If the mailserver receives (I guess you mean from the internet?) the the INPUT rules are accepting, at least on port 25. Do your INPUT rules allow related packets, to allow for DNS and ping responses? How about posting the iptables rules you're using?
 
Old 08-02-2003, 08:28 AM   #3
gkhewitt
Member
 
Registered: Jun 2003
Distribution: ClarkConnect (RH9)
Posts: 41

Original Poster
Rep: Reputation: 15
Here's iptables -L's output:

Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere tcp multiport dports telnet,smtp,domain,http,81,pop3,7025,7443,7080,webcache,10000,20000

Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
DROP tcp -- anywhere anywhere tcp spts:netbios-ns:netbios-ssn
DROP udp -- anywhere anywhere udp spts:netbios-ns:netbios-ssn

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
DROP tcp -- anywhere anywhere tcp multiport sports printer,ms-sql-s,135,netbios-ns,netbios-dgm,netbios-ssn,microsoft-ds
DROP udp -- anywhere anywhere multiport sports 135,netbios-ns,netbios-dgm,netbios-ssn,microsoft-ds,593,ms-sql-m udp

Let me know if you need any more info..

Cheers,
 
Old 08-02-2003, 01:05 PM   #4
gkhewitt
Member
 
Registered: Jun 2003
Distribution: ClarkConnect (RH9)
Posts: 41

Original Poster
Rep: Reputation: 15
Solved! Got a response on another forum. If anyone else has the same problem, you just need to add the following to IPtables to allow responses back in the input chain:

iptables -A INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
 
Old 08-03-2003, 07:18 PM   #5
soob
Member
 
Registered: May 2003
Location: A country town, Australia
Distribution: Debian
Posts: 72

Rep: Reputation: 15
OK... glad it's solved. I was worried about this rule in INPUT - first, it seems to allow everything from everywhere. second, it can't be working. Or I misunderstood the rule.

ACCEPT all -- anywhere anywhere
 
Old 08-04-2003, 06:16 AM   #6
gkhewitt
Member
 
Registered: Jun 2003
Distribution: ClarkConnect (RH9)
Posts: 41

Original Poster
Rep: Reputation: 15
Sorry, just copied it out of iptables -L, the rule you are looking at is restricted to "eth1," so all computers on the LAN have unrestricted access.
 
Old 08-04-2003, 08:13 PM   #7
soob
Member
 
Registered: May 2003
Location: A country town, Australia
Distribution: Debian
Posts: 72

Rep: Reputation: 15
thanks for explaining. 'iptables -L' doesn't tell you about what interface the rule applies to.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftp - Can access FTP within office network BUT cant access via Internet! kokfei77 Red Hat 2 03-07-2012 07:24 PM
can access network but not internet lowriderdog37 Linux - Networking 3 09-23-2005 11:09 PM
Connection to access point OK, but cannot access the network/internet Nymphetamine Linux - Wireless Networking 29 01-13-2005 02:59 PM
help on network and internet access new2itall Linux - Networking 5 10-29-2004 03:54 PM
Unable to access my ssh server and ftp server from the Internet, but smtp works foxone Linux - Networking 1 05-28-2004 05:17 PM


All times are GMT -5. The time now is 08:54 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration