J
J
Jeff Lebowski2014-08-14 15:27:36
Mikrotik
Jeff Lebowski, 2014-08-14 15:27:36

How to set different white IP addresses for local machines through 1 Mikrotik router?

There are a number of "white" IP addresses from the provider. All working, determined by testing against RB493AH.
The task is as follows:
Give local machines different external addresses (from the list of leased ones).
I'm trying to do this through NAT: dst-nat to IP ********** - the entire Internet from the client simply disappears.

I would really appreciate any help :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Volkov, 2014-08-14
@StanislavFTW

I had such a case, it was decided by marking the packages.
Here is an example of setting up 2 providers marked . you can take it as a basis.
0:03 - a schematic diagram is displayed according to which traffic from clients to providers will be directed. It displays two providers with WAN1 addresses - 192.168.3.1 and WAN2 - 192.168.2.1, a router that will forward connections to different providers depending on the conditions, and 2 clients with IP 10.0.0.2 and 10.0.0.3 that sit behind NAT to hide their addresses from providers.
0:18 - Assigning names to router interfaces (Mikrotik). Assign a name to the internal LAN interface and the two external interfaces WAN1 and WAN2
0:29 - Address assignment for LAN interface 10.0.0.1/24. "/24" is a way to specify the subnet mask. 24 - equivalent to 255.255.255.0
0:43 - Address assignment for WAN2 interface 192.168.2.2/24.
0:50 - Address assignment for WAN1 interface 192.168.3.2/24.
1:21 - Create a NAT masquerading rule for two WAN interfaces when packets arrive from the 10.0.0.0/24 subnet (client addresses)
1:31 - Create a rule to mark client connections with address 10.0.0.2 and label them with the name mark_WAN1
2:05 - Create a rule for marking client connections with the address 10.0.0.3 and mark them with the name mark_WAN2
2:15 - The rule wraps all connections that are marked as mark_WAN2 to the gateway 192.168.2.1
2:45 - The rule turns to the gateway 192.168.3.1 all connections that are marked as mark_WAN1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question