This is an old revision of the document!
/ip firewall address-list add comment="facebook" list="facebook" address=31.13.24.0/21 /ip firewall address-list add comment="facebook" list="facebook" address=31.13.64.0/18 /ip firewall address-list add comment="facebook" list="facebook" address=45.64.40.0/22 /ip firewall address-list add comment="facebook" list="facebook" address=66.220.144.0/20 /ip firewall address-list add comment="facebook" list="facebook" address=69.63.176.0/20 /ip firewall address-list add comment="facebook" list="facebook" address=69.171.224.0/19 /ip firewall address-list add comment="facebook" list="facebook" address=74.119.76.0/22 /ip firewall address-list add comment="facebook" list="facebook" address=103.4.96.0/22 /ip firewall address-list add comment="facebook" list="facebook" address=129.134.0.0/17 /ip firewall address-list add comment="facebook" list="facebook" address=157.240.0.0/17 /ip firewall address-list add comment="facebook" list="facebook" address=173.252.64.0/18 /ip firewall address-list add comment="facebook" list="facebook" address=179.60.192.0/22 /ip firewall address-list add comment="facebook" list="facebook" address=185.60.216.0/22 /ip firewall address-list add comment="facebook" list="facebook" address=204.15.20.0/22 /ipv6 firewall address-list add comment="facebook v6" list="facebookv6" address=2620:0:1c00::/40 /ipv6 firewall address-list add comment="facebook v6" list="facebookv6" address=2a03:2880::/32 /ip firewall filter add chain=forward src-address=LAN-Address dst-address-list=facebook action=drop /ipv6 firewall filter add chain=forward src-address=LAN-Address dst-address-list=facebookv6 action=drop
Zdroj: ipinfo.io
etherX-*-local (Interface properties - remove the Master port).192.168.10.0/24 a 192.168.20.0/24): /ip firewall mangle add action=mark-routing chain=prerouting \
new-routing-mark=routing_mark_office src-address=192.168.10.0/24
/ip firewall mangle add action=mark-routing chain=prerouting \
new-routing-mark=routing_mark_guests src-address=192.168.20.0/24
/ip route add gateway=ether1-wan1 routing-mark=routing_mark_office /ip route add gateway=ether2-wan2 routing-mark=routing_mark_guests
Note: Gateway can also be a PPPoE connection (in case of DSL).
ether1-wan1)./ipv6 firewall filter add action=accept comment="Allow ESTABLISHED (FORWARD)" chain=forward connection-state=established disabled=no add action=accept comment="Allow RELATED (FORWARD)" chain=forward connection-state=related disabled=no add action=accept comment="Allow ICMPv6 (FORWARD)" chain=forward disabled=no in-interface=pppoe-out1 protocol=icmpv6 add action=drop comment="Drop everything else (FORWARD)" chain=forward disabled=no in-interface=pppoe-out1 add action=accept comment="Allow ESTABLISHED (INPUT)" chain=input connection-state=established disabled=no add action=accept comment="Allow RELATED (INPUT)" chain=input connection-state=related disabled=no add action=accept comment="Allow ICMPv6 (INPUT)" chain=input disabled=no in-interface=pppoe-out1 protocol=icmpv6 add action=accept comment="Allow DHCPv6 (INPUT)" chain=input disabled=no in-interface=pppoe-out1 protocol=udp port=546 add action=drop comment="Drop everything else (INPUT)" chain=input disabled=no in-interface=pppoe-out1