LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-14-2014, 02:05 AM   #1
MarHazK
LQ Newbie
 
Registered: May 2008
Posts: 4

Rep: Reputation: 0
Domain forwarder


My friend did the domain forwarder but couldnt ask him again since he's went missing almost 10+ years lol, wanting to ask him how he did it.

Domain forwarder I meant is like similar to "Virtual Host in Apache WebServer", but i'm not talking about any webserver, but im talking about with TCP/IP.

Let see if the case below:
In BIND9 authorized DNS (public domain, reachable through internet users), there are 3 authorized domains named server1.com, server2.com, server3.com, and A-recorded a same WAN IP address (ie. 12.34.45.56), but different LAN machine, but have open-port 21 server on each LAN machine.

Client-Side
int num = RANDOM(1,3)
if (num == 1) connect(server1.com,21)
if (num == 2) connect(server2.com,21)
if (num == 3) connect(server3.com,21)

WAN IP ADDR for server1.com = 12.34.45.56
WAN IP ADDR for server2.com = 12.34.45.56
WAN IP ADDR for server3.com = 12.34.45.56

LAN IP ADDR for server1.com's machine = 192.168.1.1
LAN IP ADDR for server2.com's machine = 192.168.1.2
LAN IP ADDR for server3.com's machine = 192.168.1.3

So I wanting this:

1) connect to server1.com (WANIP: 12.34.45.56:21), reach to machine A
1) connect to server2.com (WANIP: 12.34.45.56:21), reach to machine B
1) connect to server3.com (WANIP: 12.34.45.56:21), reach to machine C



Is it possible to do so since my friend did that work. I try to figure it how but dont know how even iptables wont works on that, i guess, because I've tried.
 
Old 09-06-2014, 04:25 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by MarHazK View Post
Is it possible to do
No, unfortunately it isn't: HTTP supports a "Host" header but FTP doesn't.
 
  


Reply

Tags
tcpip



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
Setting up a personal e-mail forwarder izomiac Linux - Server 4 05-19-2012 08:26 PM
Email Forwarder in Webmin k_oudom Linux - Networking 1 02-10-2010 06:50 AM
named.conf - Adding a forwarder for additional domain elliot01 Linux - Server 6 10-19-2009 12:43 PM
squirrelmail plugin - mail forwarder christopher_c Linux - Newbie 0 09-08-2008 03:28 PM
setting packet forwarder b123coder Linux - Networking 1 05-05-2005 06:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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