Share your knowledge at the LQ Wiki.
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 10-27-2010, 02:35 PM   #1
Registered: Dec 2008
Posts: 41

Rep: Reputation: 15
CentOS 5.5 box unable to access a live web service on the Interwebs

From my office and home, I can access a web service, no problem. However, from my server at the data center, I cannot. Could this be a DNS issue? I've tried with iptables enabled and disabled. selinux is disabled. This server has multiple network interfaces, one public and two private. The public has a WAN IP address (, the private is and the other private is connected via crossover cable to another server I think route -n tells me the WAN interface is used to access the internet, as its gateway is my ISP's upstream gateway. CentOS 5.5

route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface U     0      0        0 eth2   U     0      0        0 eth1   U     0      0        0 eth0     U     0      0        0 eth2         UG    0      0        0 eth2
search localdomain
(I've also tried inserting two lines at the top of /etc/resolve.conf with my data center's recommended DNS, but that didn't work either

lynx site.iam.trying/service.asmx
Making HTTP connection to site.iam.trying
Alert!: Unable to connect to remote host.
lynx: Can't access startfile http://site.iam.trying/service.asmx
here are the kickers, lynx works from three other servers behind the firewall (only one network interface, LAN-only) no problem. lynx also works from the problem box fine when i surf to,, etc.

What else can I try?
Old 10-27-2010, 02:49 PM   #2
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
Just couple of questions.

What happens when you try to ping the service by its name?

Does it resolve to the correct IP address?

Can you surf to the service by using the IP instead of its name?


Old 10-27-2010, 02:59 PM   #3
Registered: Dec 2008
Posts: 41

Original Poster
Rep: Reputation: 15
ping correctly resolves the site.iam.trying.

the web server on which the service is hosted contains multiple websites, so it would need a header, right? i don't think it's possible to surf to it by IP address unless it was in windoze's default website (it is not hosted there)
Old 10-27-2010, 05:26 PM   #4
Registered: Dec 2008
Posts: 41

Original Poster
Rep: Reputation: 15
I had to add a route to make it work. There was another router in the subnet and traffic wasn't being directed correctly.

However, this new route disappears on reboot or /etc/init.d/network restart. How do I make this route stick?
Old 10-27-2010, 05:36 PM   #5
Registered: Dec 2008
Posts: 41

Original Poster
Rep: Reputation: 15 CentOS, the file has to be created

/etc/sysconfig/network-scripts/route-eth2 (eth2 is my WAN)
then add
Hope this helps someone in the future with as silly a network setup as mine!


dns, linux, lynx

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
LXer: Web Based Ubuntu And Debian Custom Installation / Live CD Creation Service LXer Syndicated Linux News 0 01-16-2010 09:00 PM
Unable to access Linux Box PartY Linux - Newbie 8 05-07-2009 06:58 PM
Failed to launch VMware Web Access: unable to find a graphical web browser. rob0t Linux - Server 0 03-18-2009 03:32 PM
Microsoft shuts down access to some or all live service features to linux users InMiserysShadow Linux - General 12 12-06-2008 11:10 AM
Unable to access NTFS on linux box from windows... MrLizard Linux - Networking 3 09-11-2005 04:56 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:03 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration