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
[sourcecode language="bash"]iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE[/sourcecode]
[sourcecode language="bash"]iptables -t nat -A PREROUTING -p tcp -s 168.168.0.0/21 --dport 80 -j REDIRECT --to-port 3128[/sourcecode]
[sourcecode language="bash"]exit 0[/sourcecode]
q> ketika merubah iptables, di-restart dulu biar ada effect nya :)
Alhamdulillah
No comments:
Post a Comment