Solved

Public IP to a host on a private network.

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
nmap scanner? 7 78
Wireshark 7 53
HP comware router, configure multiple IP's on WAN interface 1 31
Nic to NIC 5 46
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
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…
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…

707 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

12 Experts available now in Live!

Get 1:1 Help Now