Auto Off Roxy

You might also like

Download as rtf, pdf, or txt
Download as rtf, pdf, or txt
You are on page 1of 2

============asli=========================================== =========== setting nat: /ip firewall nat add chain=dstnat protocol=tcp dst-port=81 action=dst-nat toaddress=192.168.3.

2 \ to-port=8080 comment=Untuk-IpCop /ip firewall nat add chain=dstnat protocol=tcp dst-port=445 action=dst-nat toaddress=192.168.3.2 \ to-port=8080 comment=Untuk-Https-IpCop /ip firewall nat add chain=dstnat protocol=tcp dst-port 80 src-address=!192.168.3.0/24 \ action=dst-nat to-address=192.168.3.2 to-port=8080 /ip firewall nat add chain=srcnat out-interface=speedy action=masquerade SETTING MANGLE PROXY: PROXY HIT : /ip firewall mangle add chain=forward protocol=tcp action=mark-connection new-connectionmark=Hit \ in-interface=proxy out-interface=lokal passthrough=yes comment=Proxy-Hit /ip firewall mangle add chain=forward protocol=tcp action=mark-packet new-packet-mark=Hit in-interface=proxy \ out-interface=lokal passthrough=no connection-mark=Hit Download From Lan : /ip firewall mangle add chain=forward protocol=tcp action=mark-connection \ new-connection-mark=Down-Lan in-interface=speedy out-interface=lokal passthrough=yes comment=Download-From-Lan /ip firewall mangle add chain=forward protocol=tcp action=mark-packet new-packetmark=Download-Lan in-interface=speedy \ out-interface=lokal passthrough=no connection-mark=Down-Lan Download From Proxy : /ip firewall mangle add chain=forward protocol=tcp action=mark-connection \ new-connection-mark=Down-Proxy in-interface=speedy out-interface=proxy passthrough=yes comment=Download-From-Proxy /ip firewall mangle add chain=forward protocol=tcp action=mark-packet new-packetmark=Download-Proxy in-interface=speedy \ out-interface=proxy passthrough=no connection-mark=Down-Proxy

========================================================== =================================

1. redirect port 80 ke proxy dan kasih coment yang gunanya untuk auto on dan off ---------------------------/ip firewall nat add action=dst-nat chain=dstnat comment=RedirectToProxy disabled=no \

dst-address=!192.168.55.1 dst-port=80 in-interface=LOCAL protocol=tcp \ src-address=!192.168.55.0/24 to-addresses=192.168.55.1 to-ports=3128 2. buat script untuk mencari comment -----------------------------------/system script add name=ProxyDown policy=\ ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api \ source="/ip firewall nat set [find comment=RedirectToProxy] disabled=yes" add name=ProxyUp policy=\ ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api \ source="/ip firewall nat set [find comment=RedirectToProxy] disabled=no" 3. buat netwatch untuk cek computer proxy nya hidup atau mati -----------------------/tool netwatch add disabled=no down-script=ProxyDown policy host=192.168.55.1 interval=5s timeout=\ 1s up-script=ProxyUp policy

You might also like