HotSpot Service Out From isp1 or isp2 | recursive setting for hotspot user | Mikrotik hotspot
Script:
/interface ethernet
set [ find default-name=ether5 ] name="LAN Out"
set [ find default-name=ether1 ] name=WAN1
set [ find default-name=ether2 ] name=WAN2
/ip address
add address=192.168.102.183/24 interface=WAN2 network=192.168.102.0
/ip firewall address-list
add address=192.168.88.2-192.168.88.254 list=ISP1
add address=192.168.98.2-192.168.98.254 list=ISP2
/ip firewall mangle
add action=mark-routing chain=prerouting new-routing-mark=to_ISP1 \
passthrough=yes src-address-list=ISP1
add action=mark-routing chain=prerouting new-routing-mark=to_ISP2 \
passthrough=yes src-address-list=ISP2
/ip firewall nat
add action=masquerade chain=srcnat src-address-list=ISP1
add action=masquerade chain=srcnat src-address-list=ISP2
/ip route
add distance=1 gateway=10.1.1.1 routing-mark=to_ISP1 scope=20
add distance=2 gateway=1.1.1.1 routing-mark=to_ISP1 scope=20 target-scope=20
add distance=1 gateway=1.1.1.1 routing-mark=to_ISP2 scope=20 target-scope=20
add distance=2 gateway=10.1.1.1 routing-mark=to_ISP2
add distance=1 gateway=10.1.1.1
add check-gateway=ping distance=1 dst-address=1.1.1.1/32 gateway=8.8.4.4 \
scope=20 target-scope=20
add distance=1 dst-address=8.8.4.4/32 gateway=192.168.102.1 scope=20 \
target-scope=20
add distance=1 dst-address=8.8.8.8/32 gateway=192.168.101.1 scope=10
add check-gateway=ping distance=1 dst-address=10.1.1.1/32 gateway=8.8.8.8 \
scope=10
Technical Ahmad
#hotspotrecursivesetting
#pppoerecursivesetting
#isp1isp2recursivesetting
Негізгі бет Ғылым және технология HotSpot Service Out From isp1 or isp2 | recursive setting for hotspot user | Mikrotik hotspot
Пікірлер: 19