Solved

Public IP to a host on a private network.

Posted on 2004-08-01
5
241 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Suggested Courses
Course of the Month3 days, 15 hours left to enroll

630 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