I’m trying to setup a router such that WAN comes in on port 1 and that ports 2-10 are for customers that will have unique bandwidth limitations setup for each individual port, and that there can not be any communication in between ports. Except for port 1 to get the internet.
I’ve done as much already, but with private IPs and using NAT. I’ve been struggling to find a way to make this work without NAT and private IPs, which is confusing to me because it seems like it shouldn’t be that hard to set up. But I do consider myself to be very much a novice when it comes to Mikrotiks, so I’m probably overlooking something or am completely unaware of some setting I need to make.
Each customer needs their own public IP so they can remote into their router/device.
Now for details and what I’ve done.
Hardware: RB3011 UiAS-RM
Let’s say I have the following block of public IPs of 11.0.0.0/28
Route/Gateway: 11.0.0.1
Useable Addresses: 11.0.0.2-11.0.0.14
Subnet: 255.255.255.240
I primarily use WinBox, but I’m not against using the terminal when and where I need to. The GUI is just faster and easier.
I’ve tried using Quick Set and configured the internet for static ip and set it up as such…
IP Addr: 11.0.0.2
Netmask: 255.255.255.240
Gateway: 11.0.0.1
DNS: 8.8.8.8
And then set the Local Network to be…
IP Addr: 11.0.0.3
Netmask: 255.255.255.240
Disable both DHCP and NAT
Router can ping 8.8.8.8 and google.com, so it seems to get the internet alright.
Connected a laptop configured as such…
IP Addr: 11.0.0.4
Netmask: 255.255.255.240
Gateway: 11.0.0.3
it does not get the internet and it is not able to ping the gateway, which confuses me because they’re both on the same subnet.
I’ve tried adding static routes (might be setting them up incorrectly) and changing the laptop’s gateway to 10.0.0.2 and 10.0.0.1, but still couldn’t get anything to work correctly.
I managed to get things to ‘kinda’ work when I set the Internet and Local Network’s IP Address to the same address. At times the laptop got the internet, and at times it didn’t. I’m sure the issue was that there were two MAC addresses (ether1 and bridge) trying to use the same IP address.
The only way I could get the laptop to get the internet without problems while using a public IP is when I switch the router to Bridge Mode, which from my understanding turns the router into a glorified managed switch.
The problem with this is that it doesn’t really utilize the firewall rules, which means no Simple Queues to limit bandwidth or ability to prevent communication between ports.
It seems like this can be resolved through the use of VLANs, but correct me if I’m wrong… It feels like I’ll need two public IP addresses per port or vlan, one for the device connecting to the port and one for the VLAN itself?
What am I doing wrong? Or how do I accomplish this goal?