Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /interface ethernet
- set [ find default-name=ether1 ] comment="to ISP1"
- set [ find default-name=ether2 ] comment="to LAN1"
- /interface list
- add comment="For Internet" name=WAN
- add comment="For Local Area" name=LAN
- /interface wireless security-profiles
- set [ find default=yes ] supplicant-identity=MikroTik
- /interface list member
- add comment=ISP1 interface=ether1 list=WAN
- add comment=LAN1 interface=ether2 list=LAN
- /ip address
- add address=192.168.2.111/24 comment="ISP1 IP" interface=ether1 network=192.168.2.0
- add address=192.168.0.1/25 interface=ether2 network=192.168.0.0
- /ip firewall mangle
- add action=route chain=prerouting passthrough=yes route-dst=192.168.2.1 src-address-list=Via_ISP1
- add action=route chain=prerouting passthrough=no route-dst=192.168.2.1 src-address=192.168.0.0/25
- /ip firewall nat
- add action=masquerade chain=srcnat out-interface-list=WAN
- [admin@MikroTik] >
Add Comment
Please, Sign In to add comment