Hello,
I have mikrotik router and I want to set different ip for each server behind it. And router should pass all traffic to server (don’t block ports) except trafic rejectred by firewall. The router shouldn’t have public ip because I have only two of them. And one more question - how to access router control panel after this configuration.
I dont know if is it possible, but I don’t want to assign local ip and then connect it with public ip, but i want to use public ip instead of local. I want to make something like bridge but with firewall and possibility to access it’s interface without public ip.I want to configure this router as hardware firewall.
Can someone explain me how to do this, please?
Thank you for help
There’s no concept of public or private addresses when it comes to routing.
Is it perfectly possible (and in fact common practice) to use private addressing for transit as you are asking for, but… your ISP has to support it, you need to coordinate with them to agree on the private /30 or /29 for transit between the router and your ISP.
e.g. Your ISP hands you out 10.0.10.2/30 for the point to point addressing between you and them; you’ll setup your wan as 10.0.10.2/30, and set 10.0.10.1 as default Gateway.
Once that’s agreed on and setup:
- your ISP will send traffic addressed to your public IPs through 10.0.10.2
- you’ll be able to assign those public IPs wherever you want inside your network as long as you keep these IPs reachability via your internal routing
- traffic exiting via WAN not addressed to 10.0.10.1 itself should be masqueraded as the public IP.
Hello,
Thank you for your reply.
I will contact ISP to ask if they support it, but can you explain how to assign ip given by ISP to the devices?
I mean for they give me two IPs and gateway and how to configure router to pass traffic from ip A to device (server) 1 and from ip B to device (server) 2. Servers also should have IP given by ISP in network card configuration (the config shown after ipconfig / ifconfig command)(not IP assigned by Mikrotik’s DHCP).
If you can, please explain me it step by stem because I have just started learning how to configure MikroTik router.
Thank you for help