Network Services

Friday, March 16, 2012

Lock program Hotspot Shield in Mikrotik?

how work clos the program "HotspotShield" in Mikrotik ?
Lock port used in the program to the communication process .
The script to close the port 


/ip firewall mangle
add action=add-dst-to-address-list address-list=WhiteList \
address-list-timeout=4w2d chain=prerouting comment=WhiteList content=\
!127.0.0.1:895 disabled=no dst-port=80 protocol=tcp
add action=add-src-to-address-list address-list=HotSpotShieldUsers \
address-list-timeout=1h chain=prerouting comment=HotSpotShieldUsers \
content=127.0.0.1:895 disabled=no dst-port=80 protocol=tcp
add action=add-dst-to-address-list address-list=WhiteList \
address-list-timeout=4w2d chain=prerouting comment=WhiteList content=\
!127.0.0.1:895 disabled=no dst-port=443 protocol=tcp




/ip firewall filter
add action=log chain=forward comment="Allow WhiteLists" disabled=no \
dst-address-list=WhiteList log-prefix=WhiteLists
add action=accept chain=forward comment="" disabled=no dst-address-list=\
WhiteList
add action=log chain=forward comment="\"Block HotSpot Shield\"" disabled=no \
log-prefix=HotSpotShield src-address-list=HotSpotShieldUsers
add action=drop chain=forward comment="\"Block HotSpot Shield\"" disabled=no \
src-address-list=HotSpotShieldUsers



Images after the completion of the script.



























See you in the next lesson

with you

Mohamed Samir



0 comments:

Post a Comment