Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # jul/27/2020 12:44:22 by RouterOS 6.44.5
- # software id = 6TID-ZMFN
- #
- # model = CRS109-8G-1S-2HnD
- /interface bridge
- add admin-mac=CC:2D:E0:99:EF:0A auto-mac=no comment=defconf name=bridge
- add name=bridge2
- /interface list
- add comment=defconf name=WAN
- add comment=defconf name=LAN
- /interface wireless
- set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-XX disabled=no distance=indoors frequency=auto installation=indoor mode=ap-bridge security-profile=profile1 ssid=\
- MikroTik-99EF12 wireless-protocol=802.11
- /ip pool
- add name=default-dhcp ranges=192.168.88.10-192.168.88.254
- add name=pool2 ranges=192.168.77.10-192.168.77.254
- /ip dhcp-server
- add address-pool=default-dhcp disabled=no interface=bridge name=defconf
- add address-pool=pool2 disabled=no interface=bridge2 name=server2
- /port
- set 1 name=usb2
- set 2 name=usb3
- /interface ppp-client
- add add-default-route=no apn=internet.cp comment=P dial-on-demand=no disabled=no info-channel=1 name=ppp-out1 port=usb2 use-peer-dns=no
- add add-default-route=no apn=internet comment="PLAY K" dial-on-demand=no disabled=no info-channel=1 name=ppp-out2 port=usb3 use-peer-dns=no
- /system logging action
- add name=PPP target=memory
- add name=Bridge target=memory
- add name=Firewall target=memory
- add name=Interface target=memory
- add name=Packet target=memory
- add name=Route target=memory
- add name=IPSec target=memory
- add name=Error target=memory
- add name=Warning target=memory
- add name=System target=memory
- add name=DHCP target=memory
- add name=Info target=memory
- add name=Debug target=memory
- add name=Wireless target=memory
- add name=DNS target=memory
- /interface bridge port
- add bridge=bridge comment=defconf interface=ether2
- add bridge=bridge comment=defconf interface=ether3
- add bridge=bridge comment=defconf interface=ether4
- add bridge=bridge2 comment=defconf interface=ether5
- add bridge=bridge2 comment=defconf interface=ether6
- add bridge=bridge2 comment=defconf interface=ether7
- add bridge=bridge comment=defconf interface=ether8
- add bridge=bridge comment=defconf interface=sfp1
- add bridge=bridge comment=defconf interface=wlan1
- /interface bridge settings
- set use-ip-firewall=yes use-ip-firewall-for-vlan=yes
- /ip neighbor discovery-settings
- set discover-interface-list=LAN
- /interface ethernet switch vlan
- add disabled=yes ports=ether5,ether6,ether7,switch1-cpu vlan-id=4092
- add ports=ether2,ether3,ether4,switch1-cpu vlan-id=4090
- /interface list member
- add comment=defconf interface=bridge list=LAN
- add comment=defconf interface=ether1 list=WAN
- /ip address
- add address=192.168.88.1/24 comment=defconf interface=bridge network=192.168.88.0
- add address=192.168.77.1/24 interface=bridge2 network=192.168.77.0
- /ip dhcp-client
- add comment=defconf dhcp-options=hostname,clientid disabled=no interface=ether1
- /ip dhcp-server network
- add address=192.168.77.0/24 dns-server=8.8.8.8,8.8.4.4 gateway=192.168.77.1
- add address=192.168.88.0/24 comment=defconf dns-server=8.8.8.8,8.8.4.4 gateway=192.168.88.1
- /ip dns
- set servers=8.8.8.8,8.8.4.4
- /ip dns static
- add address=192.168.88.1 name=router.lan
- /ip firewall address-list
- add address=192.168.88.10-192.168.88.254 list=Local_P
- add address=192.168.77.10-192.168.77.254 list=Local_PLAY_K
- /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
- add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
- add action=drop chain=input comment="defconf: drop all not coming from LAN" in-interface-list=!LAN
- 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
- 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
- add action=add-dst-to-address-list address-list=Local_PLAY_Keris address-list-timeout=none-dynamic chain=input connection-mark=conn-ppp-out2 log=yes
- /ip firewall mangle
- add action=mark-connection chain=prerouting connection-mark=no-mark new-connection-mark=conn-ppp-out1 passthrough=yes per-connection-classifier=both-addresses-and-ports:2/0
- add action=mark-connection chain=prerouting connection-mark=no-mark new-connection-mark=conn-ppp-out2 passthrough=yes per-connection-classifier=both-addresses-and-ports:2/1
- add action=mark-routing chain=prerouting connection-mark=conn-ppp-out2 dst-address-list=!Local_PLAY_K new-routing-mark=routing-ppp-out2 passthrough=yes
- add action=mark-packet chain=prerouting dst-address-list=!Local_PLAY_Keris new-packet-mark=Packet_PPP2 passthrough=yes routing-mark=routing-ppp-out2
- add action=mark-routing chain=prerouting connection-mark=conn-ppp-out1 dst-address-list=!Local_P new-routing-mark=routing-ppp-out1 passthrough=yes
- add action=mark-packet chain=prerouting dst-address-list=!Local_POLSAT log=yes new-packet-mark=Packet-PPP1 passthrough=yes routing-mark=routing-ppp-out1
- /ip firewall nat
- add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none log=yes log-prefix=NAT_PPP1 out-interface=ppp-out1
- add action=masquerade chain=srcnat log=yes log-prefix=NAT_PPP2 out-interface=ppp-out2
- add action=dst-nat chain=dstnat dst-port=24100 in-interface=ppp-out1 log=yes log-prefix=DST-NAT protocol=tcp to-addresses=192.168.88.10-192.168.88.254 to-ports=24131
- add action=dst-nat chain=dstnat dst-port=24100 in-interface=ppp-out1 log=yes log-prefix=DST-NAT protocol=udp to-addresses=192.168.88.10-192.168.88.254 to-ports=24131
- add action=dst-nat chain=dstnat dst-port=24300 in-interface=ppp-out1 log=yes log-prefix=DST-NAT protocol=tcp to-addresses=192.168.88.10-192.168.88.254 to-ports=24331
- add action=dst-nat chain=dstnat dst-port=24300 in-interface=ppp-out1 log=yes log-prefix=DST-NAT protocol=udp to-addresses=192.168.88.10-192.168.88.254 to-ports=24331
- add action=dst-nat chain=dstnat dst-port=24500 in-interface=ppp-out1 log=yes log-prefix=DST-NAT protocol=tcp to-addresses=192.168.88.10-192.168.88.254 to-ports=24507
- add action=dst-nat chain=dstnat dst-port=24500 in-interface=ppp-out1 log=yes log-prefix=DST-NAT protocol=udp to-addresses=192.168.88.10-192.168.88.254 to-ports=24507
- add action=dst-nat chain=dstnat disabled=yes dst-port=433 in-interface=ppp-out1 log=yes log-prefix=DST-NAT protocol=tcp to-addresses=192.168.88.10-192.168.88.254 to-ports=0
- /ip route
- add distance=2 gateway=ppp-out2 routing-mark=routing-ppp-out2
- add distance=2 dst-address=192.168.77.0/24 gateway=bridge2 pref-src=192.168.77.1 routing-mark=routing-ppp-out2 scope=10
- add distance=1 gateway=ppp-out1 routing-mark=routing-ppp-out1
- add distance=1 dst-address=192.168.88.0/24 gateway=bridge pref-src=192.168.88.1 routing-mark=routing-ppp-out1 scope=10
- /ip service
- set telnet disabled=yes
- /lcd interface pages
- set 0 interfaces=wlan1
- /system clock
- set time-zone-name=Europe/Warsaw
- /system logging
- set 1 action=Error prefix=ERROR
- set 3 prefix=CRITICAL
- add action=PPP prefix=PPP topics=ppp
- add action=Bridge prefix=BRIDGE topics=bridge
- add action=Firewall prefix=FWL topics=firewall
- add action=Route prefix=ROUTE topics=route
- add action=Packet prefix=PACK topics=packet
- add action=Interface prefix=INTERFACE topics=interface
- add action=IPSec prefix=IPSEC topics=ipsec
- add action=Info prefix=Info topics=info
- add action=DHCP prefix=DHCP topics=dhcp
- add action=Debug prefix=Debug topics=debug
- add action=System prefix=SYS topics=system
- add action=Warning prefix=WARN topics=warning
- add prefix=WIFI topics=wireless
- add action=DNS prefix=DNS topics=dns
- /system ntp client
- set enabled=yes primary-ntp=194.146.251.100 secondary-ntp=194.146.251.101
- /tool bandwidth-server
- set enabled=no
- /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