Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a fiber connection with 5 public ips.

The ips are like this:

200.195.169.xxx/29

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: 192.168.55.1/24

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?

thanks.

Edit

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
add comment

1 Answer

  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
add comment

Your Answer

 
discard

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.