Mengganti req ip client

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
rijanarko
Posts: 54
Joined: 09 Nov 2011, 00:57

Mengganti req ip client

Postby rijanarko » 02 Aug 2015, 09:31

tolong pencerannya gan
log squid

1438042471.029 451 [color:#FF0000]192.168.87.1[/color] TCP_MISS/200 230 POST http://vl.ff.avast.com/F/AAH3vFplEolChZbtzKdqOU0y - DIRECT/77.234.41.53 application/octet-stream
1438042475.242 438 [color:#FF0000]192.168.87.1[/color] TCP_MISS/200 229 POST http://vl.ff.avast.com/F/AAH3vFplEolChZbtzKdqOU0y - DIRECT/77.234.41.55 application/octet-stream
1438042476.586 490 [color:#FF0000]192.168.87.1[/color] TCP_MISS/200 229 POST http://vl.ff.avast.com/F/AAH3vFplEolChZbtzKdqOU0y - DIRECT/77.234.41.54 application/octet-stream
1438042481.158 449 [color:#CC0000]192.168.87.1[/color] TCP_MISS/200 230 POST http://vl.ff.avast.com/F/AAH3vFplEolChZbtzKdqOU0y - DIRECT/77.234.41.53 application/octet-stream


yg aku kasih warna merah itu ip mikrotik
yang menjadi pertanyaan gmn merubah ip mikrotik menjadi ip client
yang request ke squid
jadi yg kelihatan d log squid request ip client

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

Re: Mengganti req ip client

Postby bang_andi » 10 Aug 2015, 08:31

paste disini rule nat di mikrotiknya
User avatar
rijanarko
Posts: 54
Joined: 09 Nov 2011, 00:57

Re: Mengganti req ip client

Postby rijanarko » 18 Aug 2015, 21:46

ini mas isi nat

add action=masquerade chain=srcnat comment=MASQUERADE disabled=no src-address-list=Client
add action=dst-nat chain=dstnat comment=PROXY content=!android.clients.google.com disabled=no dst-port=80,3128,8080 in-interface=5-local \
protocol=tcp src-address-list=Client-proxy to-addresses=192.168.87.2 to-ports=3128
add action=dst-nat chain=dstnat comment=PROXY content=!android.clients.google.com disabled=no dst-port=80,3128,8080 in-interface=3-hotspot \
protocol=tcp src-address-list=Client-proxy to-addresses=192.168.87.2 to-ports=3128
add action=redirect chain=dstnat comment=TOS disabled=no in-interface=5-local protocol=icmp
add action=redirect chain=dstnat disabled=no in-interface=3-hotspot protocol=icmp
add action=dst-nat chain=dstnat comment="DNS Redirected" disabled=no dst-port=53 in-interface=5-local protocol=tcp to-ports=53
add action=dst-nat chain=dstnat disabled=no dst-port=53 in-interface=5-local protocol=udp to-ports=53

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

Re: Mengganti req ip client

Postby bang_andi » 17 Sep 2015, 20:30

Maaf lama baru balas om,

Itu IP address proxy dengan network tersendiri ya ?

Seharusnya jgn di tulis IP proxy nya saja tulislah sub network proxy nya itu misalnya 192.168.87.0/24

Lalu dst port cukup di isi port 80.

BTW coba gelar juga routing di proxy nya disini ?

Return to “Ubuntu Server”

Who is online

Users browsing this forum: No registered users and 3 guests