0% found this document useful (0 votes)
15 views

NTH

Uploaded by

foashbond007
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)
15 views

NTH

Uploaded by

foashbond007
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/ 2

/ip dns

set allow-remote-requests=yes servers=208.67.222.222,208.67.220.220

/interface pppoe-client
add comment=1Mbps disabled=no interface=ether2 max-mru=1492 max-mtu=1492
name=Modem_P-1 password=1 user=1
add comment=1Mbps disabled=no interface=ether2 max-mru=1492 max-mtu=1492
name=Modem_P-2 password=2 user=2

/ip hotspot profile


add dns-name=smart.net hotspot-address=192.168.73.1 login-by=http-pap,mac-cookie
name=HSP_73 split-user-domain=yes

/ip hotspot
add disabled=no idle-timeout=1d interface=ether1 name=Ser_73 profile=HSP_73

/ip pool
add name=POL_73_Hotspot ranges=192.168.73.2-192.168.73.250
add name=POL_74_PPPoe ranges=192.168.74.2-192.168.74.250

/ip dhcp-server
add address-pool=POL_73_Hotspot disabled=no interface=ether1 lease-time=3d
name=DH_74

/ip address
add address=192.168.73.1/24 comment=Hotspot interface=ether1 network=192.168.73.0
add address=192.168.74.1/24 comment=PPPoe interface=ether1 network=192.168.74.0

/ip dhcp-server network


add address=192.168.73.0/24 dns-server=208.67.222.222,208.67.220.220
gateway=192.168.73.1 netmask=24

/ip firewall address-list


add address=192.168.73.2-192.168.73.250 list=List_73_Hotspot
add address=192.168.74.2-192.168.74.250 list=List_74_PPPoe

/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=For_PPPoe new-routing-mark=MRR_P-1
nth=2,1 passthrough=yes src-address-list=List_74_PPPoe
add action=mark-routing chain=prerouting new-routing-mark=MRR_P-2 nth=2,2
passthrough=yes src-address-list=List_74_PPPoe
add action=mark-routing chain=prerouting comment=For_Hotspot hotspot=auth new-
routing-mark=MRR_HSP-1 nth=2,1 passthrough=yes src-address-list=List_73_Hotspot
add action=mark-routing chain=prerouting hotspot=auth new-routing-mark=MRR_HSP-2
nth=2,2 passthrough=yes src-address-list=List_73_Hotspot

/ip firewall nat


add action=passthrough chain=unused-hs-chain comment="place hotspot rules here"
disabled=yes
add action=masquerade chain=srcnat out-interface=Modem_P-1
add action=masquerade chain=srcnat out-interface=Modem_P-2
add action=masquerade chain=srcnat src-address-list=List_74_Hotspot
add action=masquerade chain=srcnat comment="For PPPoe" src-address-list=List_73

/ip route
add check-gateway=ping distance=1 gateway=192.168.41.1%Modem_P-1 routing-
mark=MRR_P-1
add check-gateway=ping distance=1 gateway=192.168.41.1%Modem_P-2 routing-
mark=MRR_P-2
add check-gateway=ping distance=1 gateway=192.168.41.1%Modem_P-1 routing-
mark=MRR_HSP-1
add check-gateway=ping distance=1 gateway=192.168.41.1%Modem_P-2 routing-
mark=MRR_HSP-2
add check-gateway=ping distance=5 gateway=192.168.41.1%Modem_P-1

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