LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 10-27-2010, 01:35 PM   #1
gr33d
Member
 
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 (1.1.1.1), the private is 10.1.10.2 and the other private is connected via crossover cable to another server 192.168.100.1. 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
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
ISP.netwpork.no 0.0.0.0         255.255.255.240 U     0      0        0 eth2
192.168.100.0   0.0.0.0         255.255.255.0   U     0      0        0 eth1
10.1.10.0       0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth2
0.0.0.0         up.stream.gw    0.0.0.0         UG    0      0        0 eth2
/etc/resolve.conf
Code:
nameserver 8.8.8.8
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
Code:
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 google.com, slashdot.org, etc.

What else can I try?
 
Old 10-27-2010, 01:49 PM   #2
fordeck
Member
 
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?

Regards,

Fordeck
 
Old 10-27-2010, 01:59 PM   #3
gr33d
Member
 
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, 04:26 PM   #4
gr33d
Member
 
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, 04:36 PM   #5
gr33d
Member
 
Registered: Dec 2008
Posts: 41

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

/etc/sysconfig/network-scripts/route-eth2 (eth2 is my WAN)
then add
Code:
GATEWAY0=2ND.ROUTER.IP.ADDRESS
NETMASK0=255.255.255.255
ADDRESS0=IP.OF.WEB.SERVER
Hope this helps someone in the future with as silly a network setup as mine!
 
  


Reply

Tags
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 08:00 PM
Unable to access Linux Box PartY Linux - Newbie 8 05-07-2009 05:58 PM
Failed to launch VMware Web Access: unable to find a graphical web browser. rob0t Linux - Server 0 03-18-2009 02:32 PM
Microsoft shuts down access to some or all live service features to linux users InMiserysShadow Linux - General 12 12-06-2008 10:10 AM
Unable to access NTFS on linux box from windows... MrLizard Linux - Networking 3 09-11-2005 03:56 AM


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