Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # aug/05/2020 10:52:36 by RouterOS 6.47.1
- # software id = 8KPE-WSPG
- #
- # model = RB1100x4
- /ip firewall filter add action=passthrough chain=unused-hs-chain comment="place hotspot rules here"
- /ip firewall filter add action=accept chain=input comment="defconf: accept established,related,untracked" connection-state=established,related,untracked
- /ip firewall filter add action=drop chain=input comment="defconf: drop invalid" connection-state=invalid disabled=yes
- /ip firewall filter add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
- /ip firewall filter add action=accept chain=input comment="accept Winbox" dst-port=8291 log=yes log-prefix=Winbox_accept protocol=tcp src-address-list=Trust_IP
- /ip firewall filter add action=accept chain=input comment="accept ssh" dst-port=22 log=yes log-prefix=Winbox_accept protocol=tcp src-address-list=Trust_IP
- /ip firewall filter add action=accept chain=input dst-port=1701,500,4500 in-interface-list=WAN log-prefix=Input_VPN protocol=udp
- /ip firewall filter add action=accept chain=input in-interface-list=WAN log-prefix=Input_VPN protocol=ipsec-esp
- /ip firewall filter add action=accept chain=input dst-port=53 log-prefix=DNS_req protocol=udp src-address=172.30.0.0/24
- /ip firewall filter add action=accept chain=input dst-port=161 log-prefix=DNS_req protocol=udp src-address=172.30.0.0/24
- /ip firewall filter add action=drop chain=input in-interface-list=!LAN log-prefix=Drop_inpit
- /ip firewall filter add action=accept chain=forward comment="defconf: accept in ipsec policy" ipsec-policy=in,ipsec
- /ip firewall filter add action=accept chain=forward comment="defconf: accept out ipsec policy" ipsec-policy=out,ipsec
- /ip firewall filter add action=fasttrack-connection chain=forward comment="defconf: fasttrack" connection-state=established,related disabled=yes
- /ip firewall filter add action=accept chain=forward comment="defconf: accept established,related, untracked" connection-state=established,related,untracked
- /ip firewall filter add action=drop chain=forward comment="defconf: drop invalid" connection-state=invalid
- /ip firewall filter 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 hotspot profile set [ find default=yes ] login-by=http-pap
- /ip hotspot profile add hotspot-address=10.50.56.1 login-by=http-pap,mac-cookie name=glhsprof use-radius=yes
- /ip hotspot profile add hotspot-address=10.50.50.1 html-directory=HS_Hostel login-by=http-pap name=hsprof1-10.50.50.1-hostel radius-location-id=PL174207_3472 use-radius=yes
- /ip hotspot add address-pool=hs-pool-3 addresses-per-mac=10 disabled=no interface=vlan31-br-main name=glhotspot profile=glhsprof
- /ip hotspot add address-pool=hs-pool-Hostel addresses-per-mac=10 disabled=no interface=vlan32-br-main name=hs-HS_bridge_Hostel profile=hsprof1-10.50.50.1-hostel
- /ip hotspot user profile set [ find default=yes ] keepalive-timeout=4d shared-users=3
- /ip hotspot user profile add address-pool=hs-pool-3 !idle-timeout keepalive-timeout=4d name=uprof1 shared-users=3
- /ip hotspot user profile add address-pool=hs-pool-Hostel !idle-timeout keepalive-timeout=4d name=uprof2-hostel shared-users=3
- /ip hotspot user add disabled=yes name=admin
- /ip hotspot user add name=user1 profile=uprof1 server=glhotspot
- /ip hotspot user add name=user2-hostel profile=uprof2-hostel server=hs-HS_bridge_Hostel
- /ip hotspot walled-garden add comment="place hotspot rules here" disabled=yes
- /ip hotspot walled-garden add dst-host=*.global-hotspot.ru
- /ip hotspot walled-garden add dst-host=v8.global-hotspot.ru
- /ip hotspot walled-garden add dst-host=*.glhs.ru
- /ip hotspot walled-garden ip add action=accept disabled=no dst-address=5.101.126.175
- /ip hotspot walled-garden ip add action=accept disabled=no dst-address=91.230.211.75
- /ip hotspot walled-garden ip add action=accept disabled=no dst-address=46.229.213.165
- /ip hotspot walled-garden ip add action=accept disabled=no dst-address=188.225.18.2
- /ip hotspot walled-garden ip add action=accept disabled=no dst-address=188.225.73.64
- /ip hotspot walled-garden ip add action=accept disabled=no dst-address=87.236.23.242
- /ip hotspot walled-garden ip add action=accept disabled=no dst-address=8.8.4.4 !dst-address-list !dst-port !protocol !src-address !src-address-list
- /ip hotspot walled-garden ip add action=accept disabled=no dst-address=8.8.8.8 !dst-address-list !dst-port !protocol !src-address !src-address-list
- /ip hotspot walled-garden ip add action=accept disabled=no dst-address=77.88.8.7 !dst-address-list !dst-port !protocol !src-address !src-address-list
- /ip hotspot walled-garden ip add action=accept disabled=no dst-address=77.88.8.3 !dst-address-list !dst-port !protocol !src-address !src-address-list
- /ip hotspot walled-garden ip add action=accept disabled=no dst-address=10.50.56.1
- /ip firewall mangle add action=mark-connection chain=input in-interface=pppoe-out-Rostelecom new-connection-mark=cin_ISP1
- /ip firewall mangle add action=mark-connection chain=input in-interface=pppoe-out-Rostelecom2 new-connection-mark=cin_ISP2
- /ip firewall mangle add action=mark-routing chain=output connection-mark=cin_ISP1 new-routing-mark=rout_ISP1 passthrough=no
- /ip firewall mangle add action=mark-routing chain=output connection-mark=cin_ISP2 new-routing-mark=rout_ISP2 passthrough=no
- /ip firewall mangle add action=mark-routing chain=prerouting new-routing-mark=lan_out_ISP2 passthrough=no protocol=tcp src-address=10.50.50.0/24
- /ip firewall nat add action=passthrough chain=unused-hs-chain comment="place hotspot rules here" disabled=yes
- /ip firewall nat add action=src-nat chain=srcnat ipsec-policy=out,none out-interface=pppoe-out-Rostelecom src-address=10.50.56.0/21 to-addresses=xxx.xxx.xxx.xxx
- /ip firewall nat add action=masquerade chain=srcnat comment="masquerade hotspot network Hostel" src-address=10.50.50.0/24
- /ip firewall nat add action=masquerade chain=srcnat out-interface-list=WAN
Add Comment
Please, Sign In to add comment