add adapter vmnet 8 = nat setting network interfaces services network nano /etc/sysctl.conf (cari ipforwap # di hapus) iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE iptables-save nano /etc/rc.local( ip tables -t nat -A POSTROUTING -o eth0 -j MASQUERADE) eject atp-cdrom add apt-get install squid nano /etc/squid/squid.conf(cari acl conn acl xxx url_regex -i "/etc/squid/hasim" acl lan src 192.168.10.0/24 http_access deny xxx http_access allow lan http_access allow all) nano /etc/squid/hasim (kompas.com, 1cak.com) iptables -t nat -A PREROUTING -s 192.168.10.0/24 -p tcp --dport 80 -j REDIRECT --to-port 3128 nano /etc/rc.local iptables -t nat -A PREROUTING -s 192.168.10.0/24 -p tcp --dport 80 -j REDIRECT --to-port 3128 services squid restart reboot. nano /usr/share/squid/errors/English/ERR_ACCESS_DENIDED (cari kata error)
0 Komentar untuk " "