0% found this document useful (0 votes)
19 views1 page

Script LBPCC 2lane

This document contains firewall configuration commands that add address lists, NAT rules, routing rules, and mangle rules to classify traffic by interface and address lists and mark connections and routing.

Uploaded by

junukmirktik
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views1 page

Script LBPCC 2lane

This document contains firewall configuration commands that add address lists, NAT rules, routing rules, and mangle rules to classify traffic by interface and address lists and mark connections and routing.

Uploaded by

junukmirktik
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

/ip firewall address-list add address=10.0.0.

0/8 list=LOKAL
/ip firewall address-list add address=172.16.0.0/12 list=LOKAL
/ip firewall address-list add address=192.168.0.0/16 list=LOKAL
/ip firewall nat add action=masquerade chain=srcnat comment="Global NAT Remote AP /
Modem" place-before=*0
/ip route add distance=1 dst-address=103.39.50.123/32 gateway=192.168.58.1
/ip route add distance=1 dst-address=103.39.50.124/32 gateway=192.168.1.1
/ip route add check-gateway=ping distance=1 gateway=103.39.50.123 target-scope=30
/ip route add check-gateway=ping distance=2 gateway=103.39.50.124 target-scope=30
/ip route add check-gateway=ping distance=1 gateway=103.39.50.123 routing-
mark="ISPMEGAHUB" target-scope=30
/ip route add check-gateway=ping distance=1 gateway=103.39.50.124 routing-
mark="ISPBMU" target-scope=30
/ip firewall mangle add action=accept chain=prerouting comment="PCC" dst-address-
list=LOKAL src-address-list=LOKAL
/ip firewall mangle add action=accept chain=postrouting dst-address-list=LOKAL src-
address-list=LOKAL
/ip firewall mangle add action=accept chain=forward dst-address-list=LOKAL src-
address-list=LOKAL
/ip firewall mangle add action=accept chain=input dst-address-list=LOKAL src-
address-list=LOKAL
/ip firewall mangle add action=accept chain=output dst-address-list=LOKAL src-
address-list=LOKAL
/ip firewall mangle add action=mark-connection chain=input in-
interface="ISPMEGAHUB" new-connection-mark="ISPMEGAHUB" passthrough=yes
/ip firewall mangle add action=mark-connection chain=input in-interface="ISPBMU"
new-connection-mark="ISPBMU" passthrough=yes
/ip firewall mangle add action=mark-routing chain=output connection-
mark="ISPMEGAHUB" new-routing-mark="ISPMEGAHUB" passthrough=yes
/ip firewall mangle add action=mark-routing chain=output connection-mark="ISPBMU"
new-routing-mark="ISPBMU" passthrough=yes
/ip firewall mangle add action=mark-connection chain=prerouting dst-address-type=!
local new-connection-mark="ISPMEGAHUB" passthrough=yes per-connection-
classifier=both-addresses-and-ports:2/0 dst-address-list=!LOKAL src-address-
list=LOKAL
/ip firewall mangle add action=mark-connection chain=prerouting dst-address-type=!
local new-connection-mark="ISPBMU" passthrough=yes per-connection-classifier=both-
addresses-and-ports:2/1 dst-address-list=!LOKAL src-address-list=LOKAL
/ip firewall mangle add action=mark-routing chain=prerouting connection-
mark="ISPMEGAHUB" new-routing-mark="ISPMEGAHUB" passthrough=yes dst-address-list=!
LOKAL src-address-list=LOKAL
/ip firewall mangle add action=mark-routing chain=prerouting connection-
mark="ISPBMU" new-routing-mark="ISPBMU" passthrough=yes dst-address-list=!LOKAL
src-address-list=LOKAL
/

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy