BANTU DONG..KONFIGURASI SQUID EXTERNAL + MIKROTIK

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
bang_andi
Posts: 398
Joined: 03 Sep 2010, 09:07
Location: Di sekitar sungai musi...
Contact:

BANTU DONG..KONFIGURASI SQUID EXTERNAL + MIKROTIK

Postby bang_andi » 01 May 2012, 15:21

jaringan di tempat saya menggunakan Mikrotik + Squid proxy external ubntu server 10.04

- Topologi network Mikrotik sejajar dg Squid Proxy

isp (192.168.1.1) -----Mikrotik ---- squid proxy (192.168.10.1)
|
|
Lokal network (10.5.50.0/24)
Note :
ip GW mikrotik ke modem = 192.168.1.2
ip GW mikrotik ke lokal network = 10.5.50.1
1p GW mikrotik ke squid proxy = 192.168.10.2

Semuanya sdh terkonfigurasi dg baik..client di lan lokal bisa browsing internet...naaah yg jdi masalah pd saat sy liat "tail -f /var/log/squid/access.log | ccze " yang terecord hanya ip squid server-nya saja..nah loh pada kemana ip local range 10.5.50.0/24 ??

Apa ada routing yg harus sy tambahkan..iptables-nya mungkin..?
saat ini iptables-nya masih default (blm ada)

Atau nat firewall saya yg slah di mikrotik ?
User avatar
fathayu
Posts: 2
Joined: 15 May 2012, 02:25
Location: bekasi, indonesia

Re: BANTU DONG..KONFIGURASI SQUID EXTERNAL + MIKROTIK

Postby fathayu » 15 May 2012, 04:32

ym ane add gan... mumpung lagi ol sekarang

ym: fathayu
User avatar
bang_andi
Posts: 398
Joined: 03 Sep 2010, 09:07
Location: Di sekitar sungai musi...
Contact:

Re: BANTU DONG..KONFIGURASI SQUID EXTERNAL + MIKROTIK

Postby bang_andi » 16 May 2012, 23:24

Akhirnya ada yang mw bantuin ane...tpi..waduh..pas ente ol di forum..ane kagak ol di forum gan.... oke..sy add ym-nya...ini ym ane gan > wong_284
User avatar
yudiarbi
Posts: 627
Joined: 22 Mar 2011, 09:31
Location: Probolinggo, Jawa Timur
Contact:

Re: BANTU DONG..KONFIGURASI SQUID EXTERNAL + MIKROTIK

Postby yudiarbi » 17 May 2012, 02:59

iptables di sisi server gmn?di sisi mikrotik jg gimana?
User avatar
bang_andi
Posts: 398
Joined: 03 Sep 2010, 09:07
Location: Di sekitar sungai musi...
Contact:

Re: BANTU DONG..KONFIGURASI SQUID EXTERNAL + MIKROTIK

Postby bang_andi » 18 May 2012, 13:36

Oke..masbro yudiarbi ini sy gelar konfigurasinya...

1. Iptables di sisi ubuntu server...sy cek dengan iptables -t nat -L

Chain PREROUTING (policy ACCEPT)
target prot opt source destination

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- localnet/24 anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

2. nat firewall disisi mikrotik ke parent proxy

ip firewall nat add chain srcnat action masquerade

dan

ip firewall nat add action=dst-nat chain=dstnat comment=�ke proxy� src-address=!192.168.10.1 disabled=no dst-port=80,8080 protocol=tcp to-addresses=192.168.10.1 to-ports=3128
User avatar
antoniusgenta
Posts: 103
Joined: 29 Dec 2011, 14:40
Location: jakarta

Re: BANTU DONG..KONFIGURASI SQUID EXTERNAL + MIKROTIK

Postby antoniusgenta » 22 May 2012, 00:12

[quote=andi_wong]Oke..masbro yudiarbi ini sy gelar konfigurasinya...

1. Iptables di sisi ubuntu server...sy cek dengan iptables -t nat -L

Chain PREROUTING (policy ACCEPT)
target prot opt source destination

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- localnet/24 anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

2. nat firewall disisi mikrotik ke parent proxy

ip firewall nat add chain srcnat action masquerade

dan

ip firewall nat add action=dst-nat chain=dstnat comment=�ke proxy� src-address=!192.168.10.1 disabled=no dst-port=80,8080 protocol=tcp to-addresses=192.168.10.1 to-ports=3128


sudah tambahkan rule di squidnya mas?
acl localnet (ip local)

regards
genta