Solved

Public IP to a host on a private network.

Posted on 2004-08-01
5
230 Views
Last Modified: 2013-12-23
I have been assigned an 4 IP address block. This only leaves me with 2 usable IPs, one for router and one for server. The server has been manually setup as 10.0.0.2/8 and my Public IP/30. As the Freebsd server would have to be routing everything to 10.0.0.138 how would I go about this?
0
Comment
Question by:ZuG
  • 3
  • 2
5 Comments
 
LVL 6

Expert Comment

by:de2Zotjes
ID: 11687868
I don't really get the question.

What are you trying to accomplish?

I understand you have a tiny public address range. I also suppose that the router you speak off, is in fact the router that conects your private network to the world via this tiny public range.

Next is that you want to use the remainging address to make a host reachable by the outside world.

I see 2 (easy) solutions to get that going:

1) put an extra nic in the bsd server, configure the public address on that and stick it on the same network as where the public interface of the router sits.

2) use static nat on the router to forward all packets for the public to your bsd server (I know static nat is not really a routing function, but most routers support it anyway)


As far as I can tell from your posting you configured the address on the bsd server as an alias on the same nic as the 10.0.0.x address. If you start setting it up like that, you would have to add a host route on the router box, use some sort of arp-proxying to fool the network into sending traffic for the server to your router... Don't go there, stick with the easy solutions.  
0
 

Author Comment

by:ZuG
ID: 11688691
but if i did it like that, surely my 2nd NIC in the server(82.xx.xx.78) wouldnt see the router 10.0.0.138? As you can tell I am not the best on this subject.

So if i set up my 2nd nic as a static IP of 82.xx.xx.78 and have the DNS and gateway as my routers external address of 82.xx.xx.77, would that work fine then?
0
 

Author Comment

by:ZuG
ID: 11689089
OK let me explain a bit more.


There are 8 PCs on a home LAN including one server. These are connected to a switch that is connected to an Alcatel Speedtouch 530. I have been given a block of 4 IPs and I want to have the router to have one, which is then shared out to the other & PCs on NAT. I also want my Freebsd server to have one. It doesnt really matter how I do it I guess. The freebsd box doesnt even need to be on the 10.0.0.0/8 IP range atm.
0
 
LVL 6

Accepted Solution

by:
de2Zotjes earned 250 total points
ID: 11694133
I looked up the Speedtouch. Seems like a decent router. It should support static nat.

I would definitely go with s-nat. You can then use the firewall capabilities of the alcatel, so your bsd box won't be completely naked on the net :-)

The manual for the router was not online, so I cannot give you exact directions on how to set up the router, but if your browse around in the config interface looking for static nat you should come across it eventually.
0
 

Author Comment

by:ZuG
ID: 11699026
I installed the latest firmware which had "Multi-NAT". I used this to map all traffic on my .78 IP to my servers internal address. Works fine :)
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

770 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