Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-23-2005, 10:22 PM   #1
LQ Newbie
Registered: Aug 2005
Location: Des Moines, IA
Distribution: SUSE Linux
Posts: 3

Rep: Reputation: 0
Question Email Server Able to see Local Network but not Internet??

Hello! While I have dabbled in Linux for several years now, I am still learning a lot about managing a Linux server. I am in a situation here where I have a SUSE server providing email and a BSD server acting as the firewall and an internal network of Windows XP PC's. All Windows PC's are able to access the internet normally. The BSD Firewall appears to be functioning normally.

The problem is the email server. It is unable to contact any server outside the local network. Regardless of whether I use name or IP address, it cannot make it outside the network. I have one NIC in this server and two IP addresses assigned to the NIC. One is for receiving outside emails which are then filtered through Postfix and SpamAssassin. The other IP is for receiving internal emails which are handed off to Postfix to deliver for the internal users.

The only recent change I have made is to add the second IP to the NIC.

My route -n shows as follows:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface   U     0      0        0 eth0     U     0      0        0 eth0       U     0      0        0 lo         UG    0      0        0 eth0
If I ping an outside address, it says:

ping outsidedomain
ping: unknown host outsidedomain

If I use nslookup, it says:

nslookup outsidedomain
;; connection timed out; no servers could be reached
My /etc/resolv.conf says (with appropriate mangling):

domain mydomain(.com)
I am suspecting some kind of routing issue, but I cannot figure out what changed other than the fact that I added an alias IP yesterday (which incidentally is in the same subnet). I am not running named or routed and have not been. I was running nscd, but turned it off today as part of my test to see if that was a problem. It didn't affect its performance so I have left it off.

Any thoughts at all? I am also checking with my local LUG as well.

We are very dependent on this email server so I would like to get it up and running asap.


Stuart Thiessen
Old 08-23-2005, 10:24 PM   #2
LQ Newbie
Registered: Aug 2005
Location: Des Moines, IA
Distribution: SUSE Linux
Posts: 3

Original Poster
Rep: Reputation: 0
Correction to /etc/resolv.conf

Because of the posting rules here that forbid a url in the post, I had to surround the mydomain(.com) with parenthesis. Those parenthesis are not present in the file. Just so you know.
Old 08-24-2005, 12:41 PM   #3
Registered: Oct 2003
Location: /dev/null > Oklahoma
Distribution: Mepis 3.3.2-test 3, CC Home 3.0, OpenBSD 3.8
Posts: 64

Rep: Reputation: 15
I am going to assume that the BSD firewall is OpenBSD running

If your are using something else then this won't apply..

If so.. use this command on your OpenBSD box (as root of course)

tcpdump -i pflog0
you should be able to see if it is being blocked..

my guess you will need to adjust your pf rules..
Old 08-24-2005, 02:29 PM   #4
LQ Newbie
Registered: Aug 2005
Location: Des Moines, IA
Distribution: SUSE Linux
Posts: 3

Original Poster
Rep: Reputation: 0
After working late last night, I managed to get the problem resolved. Last night, I did try tcpdump. I said:
tcpdump -n ip host IP ADRESS
to check and see if it was being seen by the firewall. It was. I check the rules and then restarted the firewall, but that didn't change anything. So this morning, I rebooted the firewall from the console and that got DNS working again (why, I am not sure??)

Then the email server began to complain about the alias IP address I had set up and so I simply rolled back my Alias IP changes to where it was before that and it began working normally. But strangely enough there were no errors about the alias IP until DNS was working again. Strange and stranger, huh?

So now I go back to studying how IP aliasing is supposed to work with Postfix and wait for my next window of opportunity to work on that so I don't disrupt their work.

Thanks for your suggestions!



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

Similar Threads
Thread Thread Starter Forum Replies Last Post
help: ubuntu as a server connecting local network to internet ctdarksilver Linux - Networking 2 10-26-2005 09:17 PM
Can go Local network, can't go internet!! nectron101 Linux - Hardware 2 11-27-2004 09:03 AM
Email works on local network but internet doesn't nixclueless Linux - Networking 1 07-06-2004 08:12 PM
unable to send email from outside of the local network Andreja Linux - Software 2 06-05-2004 10:53 AM
local network okay - no internet Who Linux - Networking 7 03-26-2003 01:06 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:11 PM.

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