LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-27-2006, 09:25 AM   #1
NetAX
Member
 
Registered: Mar 2004
Location: Boston, MA
Distribution: SuSE Linux Open/Enterprise, Red Hat, Ubuntu
Posts: 147

Rep: Reputation: 17
hostname routing


Is it possible?

I have a linux router doing NAT for one external static IP address. I want to be able to access the machines behind it by hostname. I already have a decent setup where I can access any of the machines. I want to keep the inside machines listening on the same ports, i.e. 4834.

Is it possible for iptables to diffentiate between the hostnames I put in? Is this more of a DNS issue?
 
Old 03-27-2006, 11:31 AM   #2
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
Hi,
that's definitely a DNS thing... if your DNS points to the correct IP address(es), the packets will come with the correct destination IP and nat/forwarding rules will send them to the right host.
Note that you can register a domain for free, and organisms like dyndns.org enable your domain name to point to the correct IP when you get a dynamic one (basically, you install a script that will update your IP address in dydns.org DNS servers).
Also, as far as web servers are concerned, you can set up virtual hosts with apache to redirect to the correct server according to the url.
Hope this helps.
 
  


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
Firewall routing by hostname - possible? jread Linux - Networking 3 09-16-2005 11:34 AM
Hostname/Routing problems with home network robintw SUSE / openSUSE 15 01-08-2005 07:55 AM
Hostname changes Verbal Kint Linux - Networking 6 04-08-2004 03:59 PM
real routing under nat routing nothingmuch Linux - Networking 4 10-27-2003 03:11 PM
hostname command vs. $HOSTNAME env. variable Silly22 Linux - Networking 2 03-29-2002 05:01 PM

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

All times are GMT -5. The time now is 05:01 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