Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 2023-06-08 12:18:12 by RouterOS 7.10rc4
- # software id =
- #
- # model =
- # serial number =
- /interface bridge add name=bridge_hotspot
- /interface bridge add ingress-filtering=no name=bridge_lan vlan-filtering=yes
- /interface ethernet set [ find default-name=ether2 ] disabled=yes name=ether2_fried
- /interface ethernet set [ find default-name=ether3 ] disabled=yes name=ether3_fried
- /interface wireless set [ find default-name=wlan2 ] adaptive-noise-immunity=ap-and-client-mode band=2ghz-g/n country="south africa" disabled=no disconnect-timeout=12s frequency=2412 frequency-mode=manual-txpower hw-retries=15 installation=outdoor mode=ap-bridge name=wlan1_5ghz ssid=myhotspot tx-power=30 tx-power-mode=all-rates-fixed wps-mode=disabled
- /interface wireless set [ find default-name=wlan1 ] country="south africa" mode=ap-bridge name=wlan2_2ghz ssid=myhotspot tx-power=7 tx-power-mode=all-rates-fixed
- /interface wireguard add disabled=yes listen-port=24089 mtu=1400 name=wg-cloudfare-warp private-key="censored"
- /interface vlan add interface=bridge_lan name=vlan13_hotspot vlan-id=13
- /interface list add name=wan
- /interface list add name=lan
- /interface wireless security-profiles set [ find default=yes ] supplicant-identity=MikroTik
- /ip pool add name=hotspot_landing ranges=100.124.0.100-100.124.0.199
- /ip pool add name=hotspot_trial ranges=100.124.1.100-100.124.1.199
- /ip pool add name=hotspot_paid ranges=100.124.2.100-100.124.2.199
- /ip pool add name=hotspot_pool ranges=100.124.0.100-100.124.3.199
- /ip dhcp-server add address-pool=hotspot_landing interface=bridge_hotspot lease-time=3d name=dhcp_hotspot_landing
- /ip hotspot user profile set [ find default=yes ] address-pool=hotspot_landing name=hotspot_landing
- /ip hotspot user profile add address-pool=hotspot_trial name=hotspot_trial rate-limit=2M/4M
- /ip hotspot user profile add address-pool=hotspot_paid name=hotspot_paid_4Mx2M rate-limit=2M/4M
- /ip hotspot user profile add address-pool=hotspot_paid name=hotspot_paid_2Mx1M rate-limit=1M/2M
- /ip hotspot user profile add address-pool=hotspot_paid name=hotspot_paid_10Mx10M rate-limit=10M/10M
- /ip hotspot profile add dns-name=portal.myhotspot.co.za hotspot-address=100.124.0.1 login-by=cookie,http-chap,trial name=hsprof1 trial-uptime-limit=15m trial-user-profile=hotspot_trial
- /ip hotspot add address-pool=hotspot_pool disabled=no interface=bridge_hotspot name=hotspot1 profile=hsprof1
- /port set 0 name=serial0
- /queue simple add max-limit=384k/512k name=hotspot_landing queue=pcq-upload-default/pcq-download-default target=100.124.0.0/24
- /routing table add disabled=no fib name=to_warp
- /routing table add disabled=no fib name=to_vlan13
- /interface bridge port add bridge=bridge_hotspot interface=wlan1_5ghz
- /interface bridge port add bridge=bridge_hotspot interface=wlan2_2ghz
- /interface bridge port add bridge=bridge_lan interface=ether1
- /interface bridge port add bridge=bridge_hotspot interface=vlan13_hotspot
- /ip firewall connection tracking set udp-timeout=20s
- /interface bridge vlan add bridge=bridge_lan tagged=bridge_lan,ether1 vlan-ids=13
- /interface list member add interface=ether1 list=lan
- /interface list member add interface=wg-cloudfare-warp list=wan
- /interface list member add interface=vlan13_hotspot list=wan
- /interface wireguard peers add allowed-address=172.16.0.1/32,0.0.0.0/0 disabled=yes endpoint-address=162.159.192.1 endpoint-port=2408 interface=wg-cloudfare-warp public-key="bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo="
- /ip address add address=100.124.0.1/22 comment=hotspot_landing interface=bridge_hotspot network=100.124.0.0
- /ip address add address=172.16.0.2 interface=wg-cloudfare-warp network=172.16.0.2
- /ip address add address=192.168.113.2/24 interface=bridge_lan network=192.168.113.0
- /ip address add address=100.124.2.1/24 comment=hotspot_paid disabled=yes interface=bridge_hotspot network=100.124.2.0
- /ip address add address=100.124.1.1/24 comment=hotspot_trial disabled=yes interface=bridge_hotspot network=100.124.1.0
- /ip dhcp-client add add-default-route=no interface=bridge_lan
- /ip dhcp-server network add address=100.124.0.0/22 comment="hotspot network" dns-server=100.124.0.1 gateway=100.124.0.1 ntp-server=100.124.0.1
- /ip dns set allow-remote-requests=yes servers=1.1.1.1,8.8.8.8,9.9.9.9 use-doh-server=https://1.1.1.1/dns-query verify-doh-cert=yes
- /ip dns static add address=100.124.1.1 disabled=yes name=portal.myhotspot.co.za ttl=5m
- /ip dns static add address=100.124.2.1 disabled=yes name=portal.myhotspot.co.za ttl=5m
- /ip dns static add disabled=yes forward-to=portal.myhotspot.co.za regexp="^*.1.1.124.100.in-addr.arpa\$" type=FWD
- /ip dns static add disabled=yes forward-to=portal.myhotspot.co.za regexp="^*.1.0.124.100.in-addr.arpa\$" type=FWD
- /ip dns static add disabled=yes forward-to=portal.myhotspot.co.za regexp="^*.1.2.124.100.in-addr.arpa\$" type=FWD
- /ip dns static add address=172.17.0.5 name=speedtest.myhotspot.co.za ttl=1m
- /ip firewall filter add action=drop chain=input comment="block tplink router (test for ping watchdog)" disabled=yes src-address=192.168.10.33
- /ip firewall filter add action=accept chain=forward comment="Vodacom VoWiFi" disabled=yes dst-address=41.1.162.233 dst-port=4500,500 out-interface=bridge_lan protocol=udp src-address=192.168.100.0/24
- /ip firewall filter add action=accept chain=forward comment="Vodacom VoWiFi" disabled=yes dst-address=41.1.162.233 dst-port=143 out-interface=bridge_lan protocol=tcp src-address=192.168.100.0/24
- /ip firewall filter add action=accept chain=forward comment="Other VoWiFi" disabled=yes dst-port=4500,500 log=yes out-interface=bridge_lan protocol=udp src-address=192.168.100.0/24
- /ip firewall filter add action=accept chain=forward comment="Other VoWiFi" disabled=yes dst-port=143 log=yes out-interface=bridge_lan protocol=tcp src-address=192.168.100.0/24
- /ip firewall filter add action=accept chain=forward comment="Vodacom VoWiFi" disabled=yes dst-address=192.168.100.0/24 in-interface=bridge_lan protocol=udp src-address=41.1.162.233 src-port=4500,500
- /ip firewall filter add action=accept chain=forward comment="Vodacom VoWiFi" disabled=yes dst-address=192.168.100.0/24 in-interface=bridge_lan protocol=tcp src-address=41.1.162.233 src-port=143
- /ip firewall filter add action=accept chain=forward comment="Other VoWiFi" disabled=yes dst-address=192.168.100.0/24 in-interface=bridge_lan protocol=udp src-port=4500,500
- /ip firewall filter add action=accept chain=forward comment="Other VoWiFi" disabled=yes dst-address=192.168.100.0/24 in-interface=bridge_lan protocol=tcp src-port=143
- /ip firewall filter add action=accept chain=forward comment="block hotspot" dst-address=172.17.0.5 src-address=100.124.0.0/16
- /ip firewall filter add action=drop chain=forward comment="block hotspot" dst-address=192.168.0.0/16 src-address=100.124.0.0/16
- /ip firewall filter add action=drop chain=forward comment="block hotspot" dst-address=172.16.0.0/12 src-address=100.124.0.0/16
- /ip firewall filter add action=drop chain=forward comment="block hotspot" dst-address=10.0.0.0/8 src-address=100.124.0.0/16
- /ip firewall filter add action=passthrough chain=unused-hs-chain comment="place hotspot rules here" disabled=yes
- /ip firewall mangle add action=mark-routing chain=prerouting comment="hotspot through warp" disabled=yes dst-address=!100.124.0.0/22 new-routing-mark=to_warp passthrough=yes src-address=100.124.0.0/22
- /ip firewall mangle add action=mark-routing chain=prerouting comment="hotspot through warp" disabled=yes dst-address=!192.168.100.0/24 new-routing-mark=to_vlan13 passthrough=yes src-address=192.168.100.0/24
- /ip firewall mangle add action=passthrough chain=prerouting comment="hotspot through warp" disabled=yes dst-address=41.1.162.233
- /ip firewall mangle add action=passthrough chain=prerouting comment="hotspot through warp" disabled=yes src-address=41.1.162.233
- /ip firewall nat add action=masquerade chain=srcnat disabled=yes out-interface=wg-cloudfare-warp
- /ip firewall nat add action=masquerade chain=srcnat disabled=yes out-interface-list=wan
- /ip firewall nat add action=dst-nat chain=dstnat disabled=yes dst-address=100.124.2.1 dst-address-type=local protocol=tcp to-addresses=100.124.0.1 to-ports=64874
- /ip firewall nat add action=dst-nat chain=dstnat disabled=yes dst-address=100.124.1.1 dst-address-type=local protocol=tcp to-addresses=100.124.0.1 to-ports=64874
- /ip firewall nat add action=passthrough chain=unused-hs-chain comment="place hotspot rules here" disabled=yes
- /ip firewall nat add action=masquerade chain=srcnat comment="masquerade hotspot network" src-address=100.124.0.0/24
- /ip firewall nat add action=masquerade chain=srcnat comment="masquerade hotspot trial network" src-address=100.124.1.0/24
- /ip firewall nat add action=masquerade chain=srcnat comment="masquerade hotspot paid network" src-address=100.124.2.0/24
- /ip hotspot user add name=admin password=mypassword profile=hotspot_paid_10Mx10M
- /ip hotspot walled-garden add comment="place hotspot rules here" disabled=yes
- /ip hotspot walled-garden add comment=opentime disabled=yes dst-host=*
- /ip hotspot walled-garden add comment="google (hotspot check)" disabled=yes dst-host=google.com
- /ip hotspot walled-garden add comment=test disabled=yes dst-host=*google*
- /ip hotspot walled-garden add action=deny comment="google (hotspot check)" disabled=yes dst-host=www.google.com
- /ip hotspot walled-garden add comment=google dst-host=*google.com
- /ip hotspot walled-garden add comment="google (hotspot check)" disabled=yes dst-host=www.google.com
- /ip hotspot walled-garden add comment=google dst-host=*google.co.za
- /ip hotspot walled-garden add comment="google api (needed by whatsapp)" dst-host=*.googleapis.com
- /ip hotspot walled-garden add comment="google connectivity check (needed by whatsapp)" dst-host=connectivitycheck.gstatic.com
- /ip hotspot walled-garden add comment="google clients (needed by whatsapp)" dst-host=clients*.google.com
- /ip hotspot walled-garden add comment="google play" dst-host=*.gvt2.com
- /ip hotspot walled-garden add comment="google play" dst-host=*.gvt1.com
- /ip hotspot walled-garden add comment="google play" dst-host=ghs.googlehosted.com
- /ip hotspot walled-garden add comment="google android" dst-host=time.android.com
- /ip hotspot walled-garden add comment=youtube dst-host=youtube.com
- /ip hotspot walled-garden add comment=youtube dst-host=*.youtube.com
- /ip hotspot walled-garden add comment=youtube dst-host=youtube-ui.l.google.com
- /ip hotspot walled-garden add comment=youtube dst-host=ytimg.com
- /ip hotspot walled-garden add comment=youtube dst-host=*.ytimg.com
- /ip hotspot walled-garden add comment=youtube dst-host=*.googlevideo.com
- /ip hotspot walled-garden add comment="whatsapp test" dst-host=mobile-gtalk.l.google.com
- /ip hotspot walled-garden add comment="whatsapp test" dst-host=*talk*.google.com
- /ip hotspot walled-garden add comment="whatsapp test" dst-host=*.cloudfront.net
- /ip hotspot walled-garden add comment=whatsapp dst-host=*.whatsapp.net
- /ip hotspot walled-garden add comment=whatsapp dst-host=*.whatsapp.com
- /ip hotspot walled-garden add comment=whatsapp dst-host=*wa.me
- /ip hotspot walled-garden add comment=facebook dst-host=graph.facebook.com
- /ip hotspot walled-garden add comment=facebook dst-host=star.c10r.facebook.com
- /ip hotspot walled-garden add comment=facebook dst-host=*.facebook.com
- /ip hotspot walled-garden add comment=facebook dst-host=*.facebook.net
- /ip hotspot walled-garden add comment=facebook dst-host=*.fbcdn.net
- /ip hotspot walled-garden add comment=instagram dst-host=*.instagram.com
- /ip hotspot walled-garden add comment=instagram dst-host=*.cdninstagram.com
- /ip hotspot walled-garden add comment=twitter dst-host=*twitter.com
- /ip hotspot walled-garden add comment=twitter dst-host=*twimg.com
- /ip hotspot walled-garden add comment=twitter dst-host=t.co
- /ip hotspot walled-garden add comment=twitter dst-host=*.t.co
- /ip hotspot walled-garden add comment=twitter dst-host=*video.twitter.map.fastly.net
- /ip hotspot walled-garden add comment=twitter dst-host=*twimg.twitter.map.fastly.net
- /ip hotspot walled-garden add comment=twitter dst-host=*.edgecastcdn.net
- /ip hotspot walled-garden add comment=twitter dst-host=*.edgecastdns.net
- /ip hotspot walled-garden add comment=twitter dst-host=*.ecdns.net
- /ip hotspot walled-garden add comment=eskomsepush dst-host=esp.info
- /ip hotspot walled-garden add comment=eskomsepush dst-host=*.esp.info
- /ip hotspot walled-garden add comment=truecaller dst-host=*.truecaller.com
- /ip hotspot walled-garden add comment=vowifi dst-host=*.3gppnetwork.org
- /ip hotspot walled-garden add comment=vodacom dst-host=*vodacom*
- /ip hotspot walled-garden add comment=telkom dst-host=*telkom*
- /ip hotspot walled-garden add comment=mtn dst-host=*mtn*
- /ip hotspot walled-garden add comment=cellc dst-host=*cellc*
- /ip hotspot walled-garden add comment=myhotspot disabled=yes dst-host=*.myhotspot.co.za
- /ip hotspot walled-garden ip add action=accept comment=vowifi disabled=no !dst-address !dst-address-list dst-port=4500 protocol=udp !src-address !src-address-list
- /ip hotspot walled-garden ip add action=accept comment=vowifi disabled=no !dst-address !dst-address-list dst-port=500 protocol=udp !src-address !src-address-list
- /ip hotspot walled-garden ip add action=accept comment=vowifi disabled=no !dst-address !dst-address-list dst-port=143 protocol=tcp !src-address !src-address-list
- /ip hotspot walled-garden ip add action=accept comment=ntp disabled=no !dst-address !dst-address-list dst-port=123 protocol=udp !src-address !src-address-list
- /ip hotspot walled-garden ip add action=accept comment=librespeed disabled=no dst-address=172.17.0.5 !dst-address-list !dst-port !protocol !src-address !src-address-list
- /ip route add comment=to_warp disabled=no distance=1 dst-address=0.0.0.0/0 gateway=wg-cloudfare-warp pref-src="" routing-table=to_warp scope=30 suppress-hw-offload=no target-scope=10
- /ip route add disabled=no distance=1 dst-address=1.1.1.1/32 gateway=wg-cloudfare-warp pref-src="" routing-table=main scope=30 suppress-hw-offload=no target-scope=10
- /ip route add comment=to_warp disabled=yes distance=1 dst-address=192.168.100.0/24 gateway=bridge_hotspot pref-src="" routing-table=to_warp scope=30 suppress-hw-offload=no target-scope=10
- /ip route add comment=to_vlan13 disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.113.1 pref-src="" routing-table=to_vlan13 scope=30 suppress-hw-offload=no target-scope=10
- /ip route add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.113.1 pref-src="" routing-table=main scope=30 suppress-hw-offload=no target-scope=10
- /routing rule add action=lookup disabled=yes src-address=192.168.100.0/24 table=to_warp
- /system clock set time-zone-name=Africa/Johannesburg
- /system identity set name=myhotspot_jhb1
- /system note set show-at-login=no
- /system package update set channel=development
- /system routerboard settings set auto-upgrade=yes enter-setup-on=delete-key
- /tool graphing set store-every=24hours
- /tool graphing interface add allow-address=192.168.10.0/24
- /tool graphing queue add allow-address=192.168.10.0/24
- /tool graphing resource add allow-address=192.168.10.0/24
- /tool romon set enabled=yes secrets=censored
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement