iptables untuk squid | java php laravel linux mysql sql bootstrap html css query java php laravel linux mysql sql bootstrap html css query: iptables untuk squid

Saturday, November 30, 2013

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

[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

saifiahmada.com adalah blog belajar programming Indonesia, membahas lengkap materi bahasa pemrograman: code HTML, CSS, Bootstrap, Desain, PHP, MySQL, coding Java, Query, SQL, dan dunia linux