Squid dengan multiple outgoing interface

Sekedar tips ajah. Klo misalkan squidnya punya banyak interface dan ingin mengalokasikan outgoingnya ke ip tertentu, maka gunakan option tcp_outgoing_address dan jangan lupa baca keterangannya yakz.

# TAG: tcp_outgoing_address
# Allows you to map requests to different outgoing IP addresses
# based on the username or source address of the user making
# the request.
#
# tcp_outgoing_address ipaddr [[!]aclname] …
#
# Example where requests from 10.0.0.0/24 will be forwarded
# with source address 10.1.0.1, 10.0.2.0/24 forwarded with
# source address 10.1.0.2 and the rest will be forwarded with
# source address 10.1.0.3.
#
# acl normal_service_net src 10.0.0.0/24
# acl good_service_net src 10.0.1.0/24 10.0.2.0/24
# tcp_outgoing_address 10.1.0.1 normal_service_net
# tcp_outgoing_address 10.1.0.2 good_service_net
# tcp_outgoing_address 10.1.0.3
#
# Processing proceeds in the order specified, and stops at first fully
# matching line.
#
# Note: The use of this directive using client dependent ACLs is
# incompatible with the use of server side persistent connections. To
# ensure correct results it is best to set server_persistent_connections
# to off when using this directive in such configurations.

Ref : http://www.usenet-forums.com/squid-users/240265-re-squid-users-squid-pintables-forward-out-another-interface.html

squid

Iklan
Ditulis dalam Tutorial. 2 Comments »

2 Tanggapan to “Squid dengan multiple outgoing interface”

  1. wahid Says:

    nah sekarang perrtanyaannya gimana caranya nentuin outgoing address berdasar external server ip yang dipake?
    tidak berdasar user ip

    • hanadi Says:

      kan udah ada disitu.

      contoh :
      – acl dengan nama normal_service_net mau di lempar ke ip local 10.1.0.1
      – dan acl dengan nama good_service_net mau di lempar ke ip local 10.1.0.2
      – sisanya ke 10.1.0.3
      maka :

      tcp_outgoing_address 10.1.0.1 normal_service_net
      tcp_outgoing_address 10.1.0.2 good_service_net
      tcp_outgoing_address 10.1.0.3


Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: