Solved

Port forwarding or DNS\Bind?

Posted on 2006-10-25
6
483 Views
Last Modified: 2010-03-18
HI All-
I have 2 public IP addresses. Say, 67.50.3.60 & 67.50.3.61. Currently the traffic from each of those addresses is fed into a router, which then uses port forwarding to send the http traffic from 67.50.3.60 to a web server on my local network, at 192.168.5.2. Http traffic on 67.50.3.61 is sent to a machine on my local network at 192.168.5.3. This has been tested and has worked very well for a couple of years.
A friend of mine wants to hosts a new domain on one of my public IP addresses, from his own dedicated machine. His machine has been placed on my local network at 192.168.5.4.
If I wanted to use port forwarding to direct traffic for his domain to his machine, I would need to get another public IP address and set up forwarding rules on my firewall. Unfortunately, I cannot get another public IP address. So my question is, can I use BIND (or djbdns) to route traffic for his domain to his machine, or would I have to host his domain from one of my existing web servers? I am hoping that someone will know a way to use BIND to help.
To summarize, is it possible to change:

domainA.com -> 67.50.3.60:80 -> router/firewall -> 192.168.5.2
domainB.com -> 67.50.3.61:80 -> router/firewall -> 192.168.5.3

in to:

domainA.com -> 67.50.3.60:80 -> router/firewall -> 192.168.5.2
domainB.com -> 67.50.3.61:80 -> BIND -> 192.168.5.3
domainC.com -> 67.50.3.61:80 -> BIND -> 192.168.5.4


If DNAT or SNAT would be required on the firewall, let me know how I might accomplish that as well.
Also, if you have any questions about my current setup, feel free to ask. I will be as helpful as possible.
0
Comment
Question by:hnodine
  • 3
  • 3
6 Comments
 
LVL 26

Expert Comment

by:jar3817
ID: 17804919
You can't do anything about this situation with DNS. If you only have (and can get) 2 IPs, and you already have 2 sites (one on each IP), there is no way you can get your friends site working on one of those IPs unless you use a different port for his site, like 8080 or 81 and forward that port to his internal server.  This isn't a great solution because it'll require people to access his site using a url like http://hissite.com:8080

You might suggest to your friend he buy webhosting at one of the bazillion companies out there. I've seen it as low as $4 a month for decent bandwidth and storage.
0
 

Author Comment

by:hnodine
ID: 17805105
That is terrible, but what I thought. I now completely understand why the IPv4 address space is being used up so quickly. I wish there was some way to use masquerading to accomplish this. It seems like that would help avoid the consumption of IPv4 public addresses, too. Oh well.
Thanks for the input.
0
 
LVL 26

Expert Comment

by:jar3817
ID: 17805144
you could set up a redirect from one of your sites, but you probably don't want to mix business with your friend's personal site
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:hnodine
ID: 17805162
what do you mean by that? a redirect on my firewall? on the webserver? sorry, you lost me there.
0
 
LVL 26

Accepted Solution

by:
jar3817 earned 150 total points
ID: 17805350
on the webserver...

someone requests http://yourfriendssite.com and since all web traffic for that ip goes to your current business site, it will answer the request and redirect the client to http://yourfriendssite.com:8080 which would get to your friends server.  It's a dirty hack and usually breaks with stuff like http://yourfriendssite.com/somewhere/somepage.html, but it can work.
0
 

Author Comment

by:hnodine
ID: 17805368
yeah, that is what I thought you meant, and that is really cheesy. thanks for the tips, though.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now