LinuxQuestions.org
Help answer threads with 0 replies.
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 05-19-2011, 02:45 PM   #1
syrex
LQ Newbie
 
Registered: May 2011
Posts: 4

Rep: Reputation: Disabled
fwbuilder config not allowing http access using URL, only local IP


OK, I believe this is due to a firewall rule.

I have a dual-nic firewall box, using fwbuilder. On my local net, I have a vm running a webserver open to the world via a dyndns URL name.

When behind my firewall, I can only reach that httpd server via the local IP address, but the world can find it by URL name.

Shouldn't I be able to reach it locally by URL name? What would that rule look like?

Thx
 
Old 05-21-2011, 08:14 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
It's not a firewall issue, it's a DNS issue. Edit /etc/hosts on each machine inside the firewall and add the domain name with its local ip address there.

This assumes you're using linux on the client machines. Under windows XP Win7 the hosts file is under the \windows\system32\drivers\etc directory.

Last edited by smoker; 05-21-2011 at 08:30 AM.
 
Old 06-01-2011, 10:22 AM   #3
syrex
LQ Newbie
 
Registered: May 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
I don't see how this can be a DNS resolution issue. Doing a nslookup of my dyndns name resolves to my external IP address.

I think this is perhaps a routing issue, in that the traffic is getting the IP address, and redirecting to the firewall box, but never actually leaving my internal network. For example, I drop ping requests from outside, but I can ping my external IP address by DNS name internally, meaning the firewall is handling the traffic internally.
 
Old 06-01-2011, 04:26 PM   #4
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Of course nslookup resolves - that is where the domain resolves to. nslookup does not check the link to your local address - it just checks the registered entries for that domain. Which in your case is your external address. Unless you run a local dns server, you will not resolve your domain locally without entries in the host file.

You can't point a domain at two ip addresses - so how can you expect it to work with an internal and an external address ?
 
  


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
Access public url using local ip ????????????????? winxandlinx Linux - General 5 07-10-2009 05:53 AM
Suse 9.0 Firewall not allowing local access gSalsero Linux - Security 3 04-19-2004 09:24 PM
allowing FTP and HTTP nautilus_1987 Linux - Networking 2 06-27-2003 03:28 AM
allowing http, smtp, irc from private lan munisp Linux - Networking 1 12-17-2001 04:35 AM

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

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