LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-17-2012, 05:19 AM   #1
cbtshare
Member
 
Registered: Jul 2009
Posts: 610

Rep: Reputation: 42
Nat Iptables Server Issue


I am having a weird problem and my last resort is this forum.I have a server hosting a bunch of websites using apache.All of the work expect one from my LAN.

In my LAN I have a linux webserver using NAT iptables to provide internet connectivity to my other nodes on the network.

The problem is,none of my nodes from within the LAN can access that one website on the server (in the Netherlands) , but my iptables proxy server can.

DNS is not being blocked,recursive queries are allowed and the only firewall is iptables on the NAT server.

When I try to ping the website in question, I get unknown host,but I can ping and browse any other website on the SAME server (in the netherlands),but if I try from the NAT server, I can ping and browse.So there is something that is not coming through from the NAT to the nodes and I dont know what.

On one of my linux boxes inside the LAN bind was configured and I disabled it and then everything started to work, but then 10minutes later it just stopped.


Its not the server(in the Netherlands) because I can access every other site on the server except that one site, and because everyone else can view all the sites on the server.
 
Old 04-17-2012, 05:29 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,404

Rep: Reputation: Disabled
Quote:
Originally Posted by cbtshare View Post
When I try to ping the website in question, I get unknown host,but I can ping and browse any other website on the SAME server (in the netherlands),but if I try from the NAT server, I can ping and browse.
"Unknown host" is a name resolution error. The DNS server you're using is unable to resolve the name.

Is the domain name properly registered? What does nslookup <hostname> return (replace <hostname> with the name of the web site)? How about nslookup <hostname> 8.8.8.8?
 
Old 04-17-2012, 07:13 AM   #3
cbtshare
Member
 
Registered: Jul 2009
Posts: 610

Original Poster
Rep: Reputation: 42
the DNS server is the NAT server.And that can see the website just fine, and ping it as well.I will do the test and paste my return here.
 
Old 04-17-2012, 04:17 PM   #4
cbtshare
Member
 
Registered: Jul 2009
Posts: 610

Original Poster
Rep: Reputation: 42
Ah, yes I get a dns error.This is from the linux node inside the LAN.The NAT server works and the windows boxes can ping and browse the website.

nslookup www.domain.com
Server: 111.111.111.1
Address: 111.111.111.1#53

** server can't find www.domain.com: NXDOMAIN


But this works sometimes and then do not work few hrs or minutes after :


when it does work I get :


nslookup www.domain.com
Server: 111.111.111.1
Address: 111.111.111.1#53

Non-authoritative answer:
Name: www.domain.com
Address: 95.xxx.xxx.xxx

Last edited by cbtshare; 04-17-2012 at 04:19 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
NAT and iptables issue deep27ak Linux - Networking 9 10-11-2011 04:28 AM
iptables nat prerouting redirect issue - rhel 5.5 64-bit wischad Linux - Networking 1 11-12-2010 09:29 AM
cant get iptables nat/server script correct furryhit Linux - Networking 2 03-14-2004 10:00 AM
FTP server (Windows) behind NAT (IPtables) SWAT Linux - Newbie 10 01-08-2004 01:54 PM
iptables NAT issue. onina Linux - Networking 1 02-26-2003 05:58 AM


All times are GMT -5. The time now is 07:04 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration