HN-Community
Scrip Automatic Changed jika proxy down - Printable Version

+- HN-Community (https://hacker-newbie.org)
+-- Forum: Miscellaneous (https://hacker-newbie.org/forum-86.html)
+--- Forum: Miscellaneous computer talk (https://hacker-newbie.org/forum-20.html)
+--- Thread: Scrip Automatic Changed jika proxy down (/thread-7981.html)



Scrip Automatic Changed jika proxy down - captain_force - 04-05-2011

Konfigurasinya
Modem
||
Mikrotik == Proxy
||
Client

proxy yg saya pakai menggunakan 2 lancard
eth0 untuk koneksi ke internet (sebagai internet client)
dan eth1 untuk koneksi ke client (sebagai proxy server)
Quote:/system script
add name=proxy policy=ftp,reboot,read,write,policy,test,winbox,pa ssword,sniff \
source=":if ([/ping 192.168.3.2 count=1]=1 && [/ping 192.168.4.1 count=1]=\
1) do={:log info \"PROXY UP\"\r\
\n/ip firewall mangle enable [/ip firewall mangle find comment=\"Route HTT\
P traffic to proxy\"]\r\
\n/ip firewall mangle disable [/ip firewall mangle find comment=\"Route By\
pass\"]\r\
\n/ip firewall nat enable [/ip firewall nat find comment=\"masquarade pro\
xy\"]\r\
\n/ip firewall nat enable [/ip firewall nat find comment=\"redirect proxy\
\"]\r\
\n} else {:log info \"PROXY DOWN\" \r\
\n/ip firewall mangle disable [/ip firewall mangle find comment=\"Route HT\
TP traffic to proxy\"] \r\
\n/ip firewall mangle enable [/ip firewall mangle find comment=\"Route Byp\
ass\"]\r\
\n/ip firewall nat disable [/ip firewall nat find comment=\"masquarade pr\
oxy\"]\r\
\n/ip firewall nat disable [/ip firewall nat find comment=\"redirect prox\
y\"]\r\
\n}"

maaf klo thread ini ada kesalahan.. mohon kiranya di perbaikiGantengGantengGanteng



RE: Scrip Automatic Changed jika proxy down - nesta - 04-05-2011

cara make'nya gimana om?? bisa di perjelas lagi??


RE: Scrip Automatic Changed jika proxy down - cmd.exe - 06-15-2011

ap ni yg disebut PAC file?