Tanya,.apakah squid ane udah jalan..?

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
chitoz
Posts: 86
Joined: 11 May 2012, 16:38

Tanya,.apakah squid ane udah jalan..?

Postby chitoz » 01 Dec 2012, 17:05

- Topologi network Mikrotik dg Squid Proxy

isp (111.222.123.21) -----Mikrotik ---- squid proxy (IP: 192.168.10.2)
|
|
Lokal network (192.168.2.0/24)


Gini gan ane bingung dengan squid ane

di mikrotik udah aku seting kek gini
/ip firewall nat add chain=dstnat src-address=!192.168.10.0/24 protocol=tcp dst-port=80 action=dst-nat to-address=192.168.10.2 to-ports=3128

Ketika mesin Proxy di matikan (PC squid Mati) Internet tidak jalan (ngga bisa browsing)
Tapi
Ketika Mesin Proxy di hidupkan (PC di nyalain) Internet Jalan (bisa browsing)
tapi kenapa ane membuka situs http://www.whatismyip.com kog di situ NO PROXY DETECTED
Apakah Proxy ane belum jalan..?

klo mau cek jalan/ngganya di mesin proxy ge mana yahh.?

Thanks,..
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: Tanya,.apakah squid ane udah jalan..?

Postby q_p » 01 Dec 2012, 17:40

Saya coba2 bantu ya mas :)
Tampilkan
tapi kenapa ane membuka situs http://www.whatismyip.com kog di situ NO PROXY DETECTED
Mungkin karena squid.conf disetting untuk tidak ter-detect.
Apakah Proxy ane belum jalan..?
klo mau cek jalan/ngganya di mesin proxy ge mana yahh.?
1. Jika 'jalan' diartikan running process bisa seperti ini contohnya :

Code: Select all

root@warnetersa:~# ps aux | grep squid
root      1876  0.0  0.0  23508   788 ?        Ss   Nov20   0:00 /usr/sbin/squid -D -YC
proxy     1879  2.2  0.8 116900 64648 ?        Sl   Nov20 374:19 (squid) -D -YC
proxy    19023  0.0  0.2  25504 17004 ?        S    Nov26   2:37 (squidGuard) -c /usr/local/squidGuard/squidGuard.conf
proxy    19024  0.0  0.1  17252  8744 ?        S    Nov26   0:34 (squidGuard) -c /usr/local/squidGuard/squidGuard.conf
proxy    19025  0.0  0.0  16080  7552 ?        S    Nov26   0:16 (squidGuard) -c /usr/local/squidGuard/squidGuard.conf
proxy    19026  0.0  0.0  15704  7128 ?        S    Nov26   0:10 (squidGuard) -c /usr/local/squidGuard/squidGuard.conf
proxy    19027  0.0  0.0  15444  6932 ?        S    Nov26   0:07 (squidGuard) -c /usr/local/squidGuard/squidGuard.conf
proxy    19028  0.0  0.0  16984  1936 ?        S    Nov26   0:03 /usr/bin/perl /etc/squid/storeurl.pl
proxy    19029  0.0  0.0  16984  1928 ?        S    Nov26   0:00 /usr/bin/perl /etc/squid/storeurl.pl
root     24930  0.0  0.0   7640   968 pts/0    S+   17:31   0:00 grep --color=auto squid
root@warnetersa:~#
2. Jika 'jalan' diartikan sesuai dengan yang kita kehendaki, itu butuh proses dan sifatnya kondisional sekali.
CMIIW.
User avatar
chitoz
Posts: 86
Joined: 11 May 2012, 16:38

Re: Tanya,.apakah squid ane udah jalan..?

Postby chitoz » 01 Dec 2012, 18:07

PragolaPati wrote:Saya coba2 bantu ya mas :)
Tampilkan
tapi kenapa ane membuka situs http://www.whatismyip.com kog di situ NO PROXY DETECTED
Mungkin karena squid.conf disetting untuk tidak ter-detect.
Apakah Proxy ane belum jalan..?
klo mau cek jalan/ngganya di mesin proxy ge mana yahh.?
1. Jika 'jalan' diartikan running process bisa seperti ini contohnya :

Code: Select all

root@warnetersa:~# ps aux | grep squid
root      1876  0.0  0.0  23508   788 ?        Ss   Nov20   0:00 /usr/sbin/squid -D -YC
proxy     1879  2.2  0.8 116900 64648 ?        Sl   Nov20 374:19 (squid) -D -YC
proxy    19023  0.0  0.2  25504 17004 ?        S    Nov26   2:37 (squidGuard) -c /usr/local/squidGuard/squidGuard.conf
proxy    19024  0.0  0.1  17252  8744 ?        S    Nov26   0:34 (squidGuard) -c /usr/local/squidGuard/squidGuard.conf
proxy    19025  0.0  0.0  16080  7552 ?        S    Nov26   0:16 (squidGuard) -c /usr/local/squidGuard/squidGuard.conf
proxy    19026  0.0  0.0  15704  7128 ?        S    Nov26   0:10 (squidGuard) -c /usr/local/squidGuard/squidGuard.conf
proxy    19027  0.0  0.0  15444  6932 ?        S    Nov26   0:07 (squidGuard) -c /usr/local/squidGuard/squidGuard.conf
proxy    19028  0.0  0.0  16984  1936 ?        S    Nov26   0:03 /usr/bin/perl /etc/squid/storeurl.pl
proxy    19029  0.0  0.0  16984  1928 ?        S    Nov26   0:00 /usr/bin/perl /etc/squid/storeurl.pl
root     24930  0.0  0.0   7640   968 pts/0    S+   17:31   0:00 grep --color=auto squid
root@warnetersa:~#
2. Jika 'jalan' diartikan sesuai dengan yang kita kehendaki, itu butuh proses dan sifatnya kondisional sekali.
CMIIW.


wuihh ini agan Pragola_pati slalu nongkrong di UI
Thanks atas masukannya gan
udah ane coba keluar kayak gini
ps aux | grep squid
proxy 794 0.1 1.6 20832 16372 ? Ss 16:55 0:04 /usr/sbin/squid -N -D
root 1113 0.0 0.0 3324 800 pts/0 S+ 18:03 0:00 grep --color=auto squid

ane liat di Mikrotik eth2 (ke Proxy) dan eth4 (keLAN) trafiknya sama2 gede,..padahal si proxy cuma ndongkrong (ngga ada aktifitas browsing)
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: Tanya,.apakah squid ane udah jalan..?

Postby q_p » 01 Dec 2012, 19:07

Saya suka pakai ini kalau mau lihat aktifitas browsing klien di LAN :

Code: Select all

tail -f /var/log/squid/access.log | ccze
tapi 'ccze' mesti terinstall dulu mas.
User avatar
chitoz
Posts: 86
Joined: 11 May 2012, 16:38

Re: Tanya,.apakah squid ane udah jalan..?

Postby chitoz » 13 Dec 2012, 10:33

PragolaPati wrote:Saya suka pakai ini kalau mau lihat aktifitas browsing klien di LAN :

Code: Select all

tail -f /var/log/squid/access.log | ccze
tapi 'ccze' mesti terinstall dulu mas.


baru sempet coba gan,.keluar gini
tail -f /var/log/squid/access.log | ccze
hp? - DIRECT/119.81.19.150 text/html
1355369372.669 516 192.168.2.2 TCP_MISS/200 409 GET http://1-act.channel.facebook.com/
ping? - DIRECT/69.171.246.16 image/gif
1355369373.051 71589 192.168.2.2 TCP_MISS/502 1472 GET http://1-act.channel.facebook.com
/pull? - DIRECT/69.171.246.16 text/html
1355369373.096 371 192.168.2.2 TCP_MISS/200 633 POST http://www.facebook.com/ajax/merc
ury/thread_sync.php - DIRECT/31.13.79.23 application/x-javascript
1355369454.982 275 192.168.2.2 TCP_MISS/200 1138 GET http://www.facebook.com/ajax/presence/recon
nect.php? - DIRECT/31.13.79.23 application/x-javascript
1355369455.091 522 192.168.2.2 TCP_MISS/200 409 GET http://0-act.channel.facebook.com/ping? - DI
RECT/69.171.246.16 image/gif
1355369455.380 277 192.168.2.2 TCP_MISS/200 1138 GET http://apps.facebook.com/ajax/presence/reco
nnect.php? - DIRECT/31.13.79.23 application/x-javascript
1355369455.595 57 192.168.2.2 TCP_MISS/200 365 POST http://ipokerid.coalaa.com/json.php? - DIRE
CT/119.81.19.151 text/html
1355369458.448 85727 192.168.2.2 TCP_MISS/502 1472 GET http://1-act.channel.facebook.com/pull? - D
IRECT/69.171.246.16 text/html
1355369458.465 383 192.168.2.2 TCP_MISS/200 633 POST http://www.facebook.com/ajax/mercury/thread
_sync.php - DIRECT/31.13.79.23 application/x-javascript
1355369458.812 396 192.168.2.2 TCP_MISS/200 633 POST http://apps.facebook.com/ajax/mercury/threa
d_sync.php - DIRECT/31.13.79.23 application/x-javascript
1355369458.816 88928 192.168.2.2 TCP_MISS/502 1472 GET http://0-act.channel.facebook.com/pull? - D
IRECT/69.171.246.16 text/html
1355369462.004 55 192.168.2.2 TCP_MISS/200 365 POST http://ipokerid.coalaa.com/json.php? - DIRE
CT/119.81.19.149 text/html
1355369476.223 30552 192.168.2.2 TCP_MISS/200 297 GET http://su.ff.avast.com/R/AzsKEGz0cKgDFf9Eu9s
raocap2ASBAIREhIYsAkiACoECAMQACoHCAQQ45emDioECAUQATIHCAAQABiAAg== - DIRECT/77.234.41.51 application
/octet-stream
1355369492.397 80 192.168.2.2 TCP_MISS/200 365 POST http://ipokerid.coalaa.com/json.php? - DIRE
CT/119.81.19.151 text/html
1355369494.958 62 192.168.2.2 TCP_MISS/200 465 POST http://ipokerid.coalaa.com/json.php? - DIRE
CT/119.81.19.150 text/html
1355369506.796 30564 192.168.2.2 TCP_MISS/200 297 GET http://su.ff.avast.com/R/AzsKEGz0cKgDFf9Eu9s
raocap2ASBAIREhIYsAkiACoECAMQACoHCAQQ45emDioECAUQATIHCAAQABiAAg== - DIRECT/77.234.41.52 application
/octet-stream
1355369528.456 71 192.168.2.2 TCP_MISS/200 365 POST http://ipokerid.coalaa.com/json.php? - DIRE
CT/119.81.19.149 text/html
1355369533.688 52 192.168.2.2 TCP_MISS/200 365 POST http://ipokerid.coalaa.com/json.php? - DIRE
CT/119.81.19.151 text/html
1355369537.447 30644 192.168.2.2 TCP_MISS/200 297 GET http://su.ff.avast.com/R/AzsKEGz0cKgDFf9Eu9s
raocap2ASBAIREhIYsAkiACoECAMQACoHCAQQ45emDioECAUQATIHCAAQABiAAg== - DIRECT/77.234.42.56 application
/octet-stream
1355369539.221 61 192.168.2.2 TCP_MISS/200 465 POST http://ipokerid.coalaa.com/json.php? - DIRE
CT/119.81.19.150 text/html
1355369539.301 59 192.168.2.2 TCP_MISS/200 365 POST http://ipokerid.coalaa.com/json.php? - DIRE
CT/119.81.19.149 text/html
1355369542.393 52 192.168.2.2 TCP_MISS/200 465 POST http://ipokerid.coalaa.com/json.php? - DIRE
CT/119.81.19.151 text/html
1355369544.370 504 192.168.2.2 TCP_MISS/200 409 GET http://0-act.channel.facebook.com/ping? - DI
RECT/69.171.246.16 image/gif
1355369544.541 59 192.168.2.2 TCP_MISS/200 365 POST http://ipokerid.coalaa.com/json.php? - DIRE
CT/119.81.19.150 text/html
1355369544.713 325 192.168.2.2 TCP_MISS/200 1138 GET http://apps.facebook.com/ajax/presence/reco
nnect.php? - DIRECT/31.13.79.23 application/x-javascript
1355369548.135 389 192.168.2.2 TCP_MISS/200 633 POST http://apps.facebook.com/ajax/mercury/threa
d_sync.php - DIRECT/31.13.79.23 application/x-javascript
1355369548.338 89923 192.168.2.2 TCP_MISS/502 1472 GET http://0-act.channel.facebook.com/pull? - D
IRECT/69.171.246.16 text/html
1355369548.751 90669 192.168.2.2 TCP_MISS/502 1472 GET http://1-act.channel.facebook.com/pull? - D
IRECT/69.171.246.16 text/html
1355369553.784 519 192.168.2.2 TCP_MISS/200 409 GET http://1-act.channel.facebook.com/ping? - DI
RECT/69.171.246.16 image/gif
1355369554.132 326 192.168.2.2 TCP_MISS/200 1138 GET http://www.facebook.com/ajax/presence/recon
nect.php? - DIRECT/31.13.79.23 application/x-javascript
1355369554.537 59 192.168.2.2 TCP_MISS/200 365 POST http://ipokerid.coalaa.com/json.php? - DIRE
CT/119.81.19.149 text/html
1355369557.580 373 192.168.2.2 TCP_MISS/200 633 POST http://www.facebook.com/ajax/mercury/thread
_sync.php - DIRECT/31.13.79.23 application/x-javascript
1355369568.070 30619 192.168.2.2 TCP_MISS/200 297 GET http://su.ff.avast.com/R/AzsKEGz0cKgDFf9Eu9s
raocap2ASBAIREhIYsAkiACoECAMQACoHCAQQ45emDioECAUQATIHCAAQABiAAg== - DIRECT/77.234.42.53 application
/octet-stream
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: Tanya,.apakah squid ane udah jalan..?

Postby q_p » 13 Dec 2012, 17:20

Ya seperti itulah yang tampil di layar monitor kalau pakai perintah 'tail -f /var/log/squid/access.log | ccze'.

Return to “Ubuntu Server”

Who is online

Users browsing this forum: No registered users and 2 guests