iptables untuk squid

Ini iptables ( pada file /etc/rc.local ) untuk squid

Bismillah

q> Topologi squid :

INTERNET – – MODEL ADSL  SPEEDY – – SQUID SERVER UBUNTU 10.10 SERVER – – SWITCH LAN – –  CLIENT2

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -t nat -A PREROUTING -p tcp -s 168.168.0.0/21 --dport 80 -j REDIRECT --to-port 3128
exit 0

q> ketika merubah iptables, di-restart dulu biar ada effect nya🙂

Alhamdulillah

Published by

saifiahmada

Begin a big Process with a bit trying

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s