Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a fiber connection with 5 public ips.

The ips are like this:

The Internet Link is connected to ether2. One of the public ips is used to the LAN. ether1,ether3,ether4,ether5 belongs to my lan, and have the following ips:

I have another computer running Apache, connected to ether6. What I want to do, is to assign one of my publics ip to this server, without nat.

Hope you understand. What should I do?



I need this, because I will install cpanel on the computer used as server. And cpanel won't run well behind NAT.

share|improve this question
  1. Assign the public IP to the server as a loopback IP (not associated with any interface)

  2. Configure the router to route traffic to that public IP to the server's internal IP. (Just add one static route.)

  3. Make sure the router is configured to pass the outbound traffic unmolested. (Don't assume all traffic from the internal network has an internal source IP. Or just add a rule to route traffic from the internal LAN with that particular source IP.)

share|improve this answer
how do i do this? – valter Jan 24 '13 at 20:00
Which part is giving you trouble? – David Schwartz Jan 24 '13 at 20:04
the part of "Configure the router to route traffic to that public IP to the server's internal IP" - Where I do this on mikrotik? ip > routes ? – valter Jan 24 '13 at 21:49
Yes, it's just a single static route. – David Schwartz Jan 24 '13 at 22:07
any idea about where i do this on mikrotik? thks – valter Jan 25 '13 at 14:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.