Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 21490

Beginner Basics • Re: Two public addresses from one provider

$
0
0
Assuming something near a default configuration

I would create a new bridge, perhaps call it bridgewan2, turn off rstp on this new bridge.
It is only to hold ip addresses.
Code:
/interface bridgeadd name=bridgewan2 protocol-mode=none
Create a new IP address on this bridge 155.133.35.203 network 155.133.35.203
Code:
/ip addressadd address=155.13.35.203 network=155.13.35.203 interface=bridgewan2
Then create a source nat rule to srcnat from this address for the 10.0.0.198 address.
(You could use an address list for multiple)
Code:
/ip firewall natadd chain=srcnat action=src-nat out-interface=ether1 src-address=10.0.0.198 to-addresses=155.13.35.203
**Edit**
You then need to move this firewall rule above the default masquerade rule (either in webfig or winbox)

Statistics: Posted by rplant — Sun May 19, 2024 7:12 am



Viewing all articles
Browse latest Browse all 21490

Trending Articles