Guest User

Untitled

a guest
Jun 27th, 2020
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. /interface ethernet
  2. set [ find default-name=ether1 ] comment="to ISP1"
  3. set [ find default-name=ether2 ] comment="to LAN1"
  4. /interface list
  5. add comment="For Internet" name=WAN
  6. add comment="For Local Area" name=LAN
  7. /interface wireless security-profiles
  8. set [ find default=yes ] supplicant-identity=MikroTik
  9. /interface list member
  10. add comment=ISP1 interface=ether1 list=WAN
  11. add comment=LAN1 interface=ether2 list=LAN
  12. /ip address
  13. add address=192.168.2.111/24 comment="ISP1 IP" interface=ether1 network=192.168.2.0
  14. add address=192.168.0.1/25 interface=ether2 network=192.168.0.0
  15. /ip firewall mangle
  16. add action=route chain=prerouting passthrough=yes route-dst=192.168.2.1 src-address-list=Via_ISP1
  17. add action=route chain=prerouting passthrough=no route-dst=192.168.2.1 src-address=192.168.0.0/25
  18. /ip firewall nat
  19. add action=masquerade chain=srcnat out-interface-list=WAN
  20. [admin@MikroTik] >
Add Comment
Please, Sign In to add comment