Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # mar/05/2022 11:46:38 by RouterOS 7.1.3
- # software id = 43HK-WYHZ
- #
- # model = RBD53iG-5HacD2HnD
- # serial number = E7290E8134F3
- /interface bridge
- add admin-mac=2C:C8:1B:A5:B2:D9 auto-mac=no comment=defconf name=bridge
- /interface pppoe-client
- add add-default-route=yes disabled=no interface=ether1 max-mtu=1500 name=\
- WAN1-PPPOE_OUT use-peer-dns=yes user=natrajr_101
- add add-default-route=yes disabled=no interface=ether2 name=WAN2-PPPOE_OUT \
- use-peer-dns=yes user=aw688
- /interface list
- add comment=defconf name=WAN
- add comment=defconf name=LAN
- /interface lte apn
- set [ find default=yes ] ip-type=ipv4
- /interface wireless security-profiles
- set [ find default=yes ] supplicant-identity=MikroTik
- add authentication-types=wpa2-psk eap-methods="" mode=dynamic-keys name=\
- mokashi supplicant-identity=""
- /interface wireless
- set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-XX \
- country=india disabled=no distance=indoors frequency=auto installation=\
- indoor mode=ap-bridge security-profile=mokashi ssid=Dominus \
- wireless-protocol=802.11
- # no supported channel
- # no supported channels
- set [ find default-name=wlan2 ] band=5ghz-a/n/ac channel-width=\
- 20/40/80/160mhz-XXXXXXXX country=india disabled=no distance=indoors \
- frequency=auto installation=indoor mode=ap-bridge security-profile=\
- mokashi ssid=InfinityB_5G wireless-protocol=802.11
- /ip pool
- add name=default-dhcp ranges=10.11.1.10-10.11.1.254
- /ip dhcp-server
- add address-pool=default-dhcp interface=bridge name=defconf
- /routing table
- add fib name=TO_WAN1
- add fib name=TO_WAN2
- /interface bridge port
- add bridge=bridge comment=defconf ingress-filtering=no interface=ether3
- add bridge=bridge comment=defconf ingress-filtering=no interface=ether4
- add bridge=bridge comment=defconf ingress-filtering=no interface=ether5
- add bridge=bridge comment=defconf ingress-filtering=no interface=wlan1
- add bridge=bridge comment=defconf ingress-filtering=no interface=wlan2
- /ip neighbor discovery-settings
- set discover-interface-list=LAN
- /ipv6 settings
- set disable-ipv6=yes max-neighbor-entries=8192
- /interface list member
- add comment=defconf interface=bridge list=LAN
- add comment=defconf interface=ether1 list=WAN
- add interface=ether2 list=WAN
- add interface=WAN1-PPPOE_OUT list=WAN
- add interface=WAN2-PPPOE_OUT list=WAN
- /ip address
- add address=10.11.1.1/24 comment=defconf interface=bridge network=10.11.1.0
- /ip dhcp-client
- add comment=defconf interface=ether1
- /ip dhcp-server network
- add address=10.11.1.0/24 comment=defconf dns-server=10.11.1.1 gateway=\
- 10.11.1.1
- /ip dns
- set allow-remote-requests=yes
- /ip dns static
- add address=192.168.88.1 comment=defconf name=router.lan
- /ip firewall address-list
- add address=10.11.1.0/24 list=not_in_internet
- add address=192.168.2.0/24 list=not_in_internet
- /ip firewall filter
- add action=accept chain=input comment=\
- "defconf: accept established,related,untracked" connection-state=\
- established,related,untracked
- add action=drop chain=input comment="defconf: drop invalid" connection-state=\
- invalid log=yes log-prefix="INVALID DROP"
- add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
- add action=accept chain=input comment=\
- "defconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1
- add action=drop chain=input comment="defconf: drop all not coming from LAN" \
- in-interface-list=!LAN log=yes log-prefix="NOT IN LAN BRIDGE"
- add action=accept chain=forward comment="defconf: accept in ipsec policy" \
- ipsec-policy=in,ipsec
- add action=accept chain=forward comment="defconf: accept out ipsec policy" \
- ipsec-policy=out,ipsec
- add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
- connection-state=established,related hw-offload=yes
- add action=accept chain=forward comment=\
- "defconf: accept established,related, untracked" connection-state=\
- established,related,untracked
- add action=drop chain=forward comment="defconf: drop invalid" \
- connection-state=invalid
- add action=drop chain=forward comment=\
- "defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
- connection-state=new in-interface-list=WAN
- /ip firewall mangle
- add action=mark-connection chain=prerouting comment="WAN1 Connection Marking" \
- connection-mark=no-mark in-interface=WAN1-PPPOE_OUT new-connection-mark=\
- WAN1_CONN passthrough=no
- add action=mark-connection chain=prerouting comment="WAN2 Connection Marking" \
- connection-mark=no-mark in-interface=WAN2-PPPOE_OUT new-connection-mark=\
- WAN2_CONN passthrough=no
- add action=mark-connection chain=prerouting comment=\
- "PCC Rule for WAN1 HTTP, HTTPS traffic" connection-mark=no-mark \
- dst-address-list=!not_in_internet dst-address-type=!local dst-port=80,443 \
- in-interface=bridge new-connection-mark=WAN1_CONN passthrough=yes \
- per-connection-classifier=both-addresses-and-ports:2/0 protocol=tcp
- add action=mark-connection chain=prerouting comment=\
- "PCC Rule for WAN1 HTTP3, QUIC traffic" connection-mark=no-mark \
- dst-address-list=!not_in_internet dst-address-type=!local dst-port=80,443 \
- in-interface=bridge new-connection-mark=WAN1_CONN passthrough=yes \
- per-connection-classifier=both-addresses-and-ports:2/0 protocol=udp
- add action=mark-connection chain=prerouting comment="NTH Rule for WAN1" \
- connection-mark=no-mark dst-address-list=!not_in_internet \
- dst-address-type=!local in-interface=bridge new-connection-mark=WAN1_CONN \
- nth=2,1 passthrough=yes
- add action=mark-connection chain=prerouting comment=\
- "PCC Rule for WAN2 HTTP, HTTPS traffic" connection-mark=no-mark \
- dst-address-list=!not_in_internet dst-address-type=!local dst-port=80,443 \
- in-interface=bridge new-connection-mark=WAN2_CONN passthrough=yes \
- per-connection-classifier=both-addresses-and-ports:2/1 protocol=tcp
- add action=mark-connection chain=prerouting comment=\
- "PCC Rule for WAN2 HTTP3, QUIC traffic" connection-mark=no-mark \
- dst-address-list=!not_in_internet dst-address-type=!local dst-port=80,443 \
- in-interface=bridge new-connection-mark=WAN2_CONN passthrough=yes \
- per-connection-classifier=both-addresses-and-ports:2/1 protocol=udp
- add action=mark-connection chain=prerouting comment="NTH Rule for WAN2" \
- connection-mark=no-mark dst-address-list=!not_in_internet \
- dst-address-type=!local in-interface=bridge new-connection-mark=WAN2_CONN \
- nth=2,2 passthrough=yes
- add action=mark-routing chain=prerouting comment="LAN Routing for WAN1" \
- connection-mark=WAN1_CONN in-interface=bridge new-routing-mark=TO_WAN1 \
- passthrough=no
- add action=mark-routing chain=prerouting comment="LAN Routing for WAN2" \
- connection-mark=WAN2_CONN in-interface=bridge new-routing-mark=TO_WAN2 \
- passthrough=no
- add action=mark-routing chain=output comment=\
- "Routing for Incoming traffic from WAN1" connection-mark=WAN1_CONN \
- new-routing-mark=TO_WAN1 out-interface=WAN1-PPPOE_OUT passthrough=no
- add action=mark-routing chain=output comment=\
- "Routing for Incoming traffic from WAN2" connection-mark=WAN2_CONN \
- new-routing-mark=TO_WAN2 out-interface=WAN2-PPPOE_OUT passthrough=no
- /ip firewall nat
- add action=masquerade chain=srcnat out-interface=WAN1-PPPOE_OUT src-address=\
- 10.11.1.0/24
- add action=masquerade chain=srcnat out-interface=WAN2-PPPOE_OUT src-address=\
- 10.11.1.0/24
- add action=dst-nat chain=dstnat comment="HTTP DST NAT" dst-port=\
- 80,443,22000,25000 in-interface=WAN2-PPPOE_OUT protocol=tcp to-addresses=\
- 10.11.1.228
- add action=dst-nat chain=dstnat comment="VPN Port Forward" dst-port=\
- 500,1701,4500 in-interface=WAN2-PPPOE_OUT protocol=udp to-addresses=\
- 10.11.1.228
- add action=dst-nat chain=dstnat comment="iPerf Testing" disabled=yes \
- dst-port=5201 in-interface=all-wireless protocol=udp to-addresses=\
- 10.11.1.228 to-ports=5201
- /ip route
- add check-gateway=ping comment="Load balancing Route to ISP1" disabled=no \
- dst-address=0.0.0.0/0 gateway=WAN1-PPPOE_OUT routing-table=TO_WAN1
- add check-gateway=ping comment="Load balancing Route to ISP2" disabled=no \
- distance=2 dst-address=0.0.0.0/0 gateway=WAN2-PPPOE_OUT routing-table=\
- TO_WAN2
- /system clock
- set time-zone-name=Asia/Kolkata
- /system routerboard settings
- set cpu-frequency=auto
- /tool mac-server
- set allowed-interface-list=LAN
- /tool mac-server mac-winbox
- set allowed-interface-list=LAN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement