Skip to content

Instantly share code, notes, and snippets.

@tiernano
Created January 2, 2014 11:35
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tiernano/8217968 to your computer and use it in GitHub Desktop.
Save tiernano/8217968 to your computer and use it in GitHub Desktop.
mikrotik script for sending from a particular address list to a particular WAN link
9 ;;; WAN1 address list -> WAN1
chain=prerouting action=mark-routing new-routing-mark=to_WAN1 passthrough=no
dst-address=!192.168.0.0/16 dst-address-list=WAN1
10 ;;; WAN2 address list -> WAN2
chain=prerouting action=mark-routing new-routing-mark=to_WAN2 passthrough=no
dst-address=!192.168.0.0/16 dst-address-list=WAN2
11 ;;; WAN3 address list -> WAN3
chain=prerouting action=mark-routing new-routing-mark=to_WAN3 passthrough=no
dst-address=!192.168.0.0/16 dst-address-list=WAN3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment