LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-22-2005, 06:37 PM   #1
Bobson
LQ Newbie
 
Registered: Feb 2004
Location: Southampton, UK
Distribution: FC3, RH9, IPCop
Posts: 6

Rep: Reputation: 0
Cannot ping linux web server from different network


Good evening people. Some background info to this problem can be found on the IPCop forums but I don't have enough posts to include a link . The general gist of it is quoted below...

Quote:
Hi,

I've been having problems configuring my ipcop box...

I have a green interface (eth0 - 192.168.0.1) and an orange interface (eth1 - 192.168.1.1 with a webserver directly connected via crossover at 192.168.1.2).

From the ipcop box it is possible to ping all computers on the green and orange networks.

From any computer on the green network it is possible to ping both eth0 and eth1 of the ipcop box but it is not possible to ping the webserver.

There is nothing wrong with the crossover cable since i have attatched it to various computers with great success.

It's not anything to do with the addresses I've chosen is it? Any ideas???

Bobson
Quote:
OK we've come a little closer to figuring out what is wrong. First I will go through the setup...

IPCop Box (homer):

GREEN Interface = 192.168.0.1 > Connected to switch > connected to network computers

ORANGE Interface = 192.168.1.1 > Connected to hub > connected to web server (homer - 192.168.1.2) and to testing laptop (phoenix - 192.168.1.3).

After placing another computer onto the ORANGE network we found that we were able to:

Ping marge from homer & phoenix
Ping homer from marge & phoenix
Ping phoenix from homer & marge

Which is what you would expect on any network.

We can...
Ping phoenix from the GREEN network

We can't...
Ping marge from the GREEN network

There is obviously something wrong with marge, or homer is doing something to p*** her off. Either way, the marriage is failing Very Happy

Any ideas????

Since the last post on that forum I logged in locally to marge and logged the packets that were going through the INPUT and OUTPUT chains of iptables to see whether the packets from the green network were actually getting to marge at all. When we pinged marge from a green machine there were indeed entries coming up so i restricted the logging solely to the OUTPUT chain. Nothing came up.

I then pinged marge with phoenix and a string of log entries started to appear.

This leads me to assume that marge will happily return ping requests to computers on her own network, but not from other networks. Does anyone know how to fix this???

Bobson

P.S. Sorry about the bible-length post but I wanted to make sure you gurus have all the info you need
 
Old 03-23-2005, 12:58 AM   #2
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Rep: Reputation: 33
hmm, so marge is your webserver? 192.168.1.2 right? what kind of firewall are you using? i believe ping uses udp port 137 (that's what tcpdump showed when i tried just now), so make sure that's open for both INPUT and OUTPUT on both interfaces.

how are your services working, btw? can you access the internet from all your machines? can you access the webpage marge is serving up?
 
Old 03-23-2005, 03:48 AM   #3
Bobson
LQ Newbie
 
Registered: Feb 2004
Location: Southampton, UK
Distribution: FC3, RH9, IPCop
Posts: 6

Original Poster
Rep: Reputation: 0
I don't actually have any iptables rules configured on marge. At the moment the only rule is to log the packets and everything else is accepted.
You bring up an interesting point with the internet access, I kinda assumed that you couldn't access the net from the orange network but after closer inspection of the IPCop faq you should be able to.
You can access the webpage marge is serving up but only from phoenix. Still no communication from the green network.
 
Old 03-23-2005, 06:59 AM   #4
David_Moses
LQ Newbie
 
Registered: Jul 2004
Location: uk
Distribution: Ubuntu
Posts: 27

Rep: Reputation: 15
Hi baby,

bumped into your housemate on the way home today, i chatted a bit about your problem.

Its strange that tcp-dump show that you are recieving the frames from the other network but it is dropping them.

Try completly turning off iptables and see if you can ping the other network,

.
 
Old 03-23-2005, 08:08 AM   #5
Bobson
LQ Newbie
 
Registered: Feb 2004
Location: Southampton, UK
Distribution: FC3, RH9, IPCop
Posts: 6

Original Poster
Rep: Reputation: 0
Hey it's all fixed now!

I bit the bullet and typed 'startx' in the console (it takes about 10 minutes to load up ).

I used the redhat network config application to change all the settings exactly the way they should be. One of the most significant things i did was to change the dns server address to the ISP's (as outlined in the 'Orange Mantra')
Perhaps I should've done this at the very beginning, trouble is you don't learn anything about the various text files that are edited etc, etc.

Oh well, thanks for all your help and happy easter!

Bobson
 
  


Reply



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
Configuring Network For Web Server 3333 Linux - Networking 5 10-04-2004 09:54 PM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 06:21 AM
how do i ping my server , what is my server name , web hosting waheedrafiq Linux - Software 7 12-03-2003 11:35 AM
Can't access Linux web server web pages from LAN client jaydave Linux - Networking 4 03-16-2003 02:38 AM
Small Network -- Linux Web, DNS, SAMBA server -- Help/suggestions please! Bungo2000 Linux - Networking 2 03-30-2002 09:55 AM

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

All times are GMT -5. The time now is 05:04 PM.

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