Solved

Public IP to a host on a private network.

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

Save on storage to protect fatherhood memories

You're the dad who has everything. This Father's Day, make sure your family memories are protected. My Passport Ultra has automatic backup and password protection to keep your cherished photos and videos safe. With up to 3TB, you have plenty of room to hold the adventures ahead.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux as a middle box 7 64
Read-only SNMP string example ? 7 74
cutting over to a new network 9 68
You are currently not connected to any networks windows 10 5 109
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.
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.
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…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

920 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

14 Experts available now in Live!

Get 1:1 Help Now