Solved

Public IP to a host on a private network.

Posted on 2004-08-01
5
232 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to determine subnet mask? 11 40
Router Question 12 55
Windows 7 Internet issue 14 54
Windows PE .WIM files WDS issue 4 28
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
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…

861 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