![]() ![]() You can use src-nat instead on masquerade when you need to specify the external ip address. Out-interface=ether1-gateway to-addresses=1.2.3.4Īdd action=src-nat chain=srcnat out-interface=ether1-gateway to-addresses=1.2.3.5 ip addressĪdd address=1.2.3.4/29 interface=ether1-gatewayĪdd address=1.2.3.5/29 interface=ether1-gatewayĪdd dst-address=0.0.0.0/0 gateway=1.2.3.3/29Īdd action=src-nat chain=srcnat dst-address-list=alt-ip-list \ The info below should help get your on your way to what you're looking to do. The firewall rules work using IP addresss rather than dns names.Ī somewhat similar example would be 1 router with multiple subnets and different IP addresses per subnet but rather than use the src-address in the nat rule, you're basing it of the dst-address. #MIKROTIK ADDRESS LIST TO ROUTE UPDATE#For dns names you'll want to create a script to run using the scheduler which will update an address-list with the ip addresses the website uses. for the default ip, copy the rule and don't set a dest. You should be able do this by using src-nat with destination address lists and setting to-address to the desired ip. I've seen some forum post where the first part can be solved by just connecting 2 cables and then assign different IP for each interface.Īs you may notice, I'm really raw in networking and routing, so any GUI/Winbox instruction is appreciated, but CLI commands would be just fine. The device that gives me the WAN link only has 1 "out" port, so there is no way to put 2 cables from the "modem" to the Mikrotik, right now there is 1 cable going from the modem to the Mikrotik device. #MIKROTIK ADDRESS LIST TO ROUTE PC#What I'm trying to achieve is to add a second WAN ip to the same interface, and route traffic to a specific server to use that IP.Īny PC from .X should use WAN IP1 and use internet with it.Īny PC from .X trying to access INSERT RANDOM SITE/IP HERE should use WAN IP2 to browse and navigate to that website (while all the rest of the traffic goes through WAN IP1). So far I've configured the network to use one of those public IP and use it for 2 subnets (192.168.85.X and 192.168.5.X) wich are isolated from each other and both can access internet. I have a network with static IP and some public IP (248 mask). ![]() After 20 pages of SO results about Mikrotik and some more google results, I'm come here, down on my knees to request some enlightment. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |