#!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. touch /var/lock/subsys/local echo "1" > /proc/sys/net/ipv4/ip_forward ifconfig eth1:1 192.168.1.81 netmask 255.255.255.240 broadcast 192.168.1.95 #echo "1" > /proc/sys/net/ipv4/tcp_syncookies /sbin/iptables -t nat -A POSTROUTING -s 192.168.1.0/29 -d 0/0 -j MASQUERADE /sbin/iptables -t nat -A POSTROUTING -s 192.168.1.80/28 -d 0/0 -j MASQUERADE ifconfig eth1:0 151.125.241.2 netmask 255.255.255.0 #jalankan squid /usr/local/squid/sbin/squid -D #jalankan ftp /usr/local/sbin/proftpd start #transparent /sbin/iptables -t nat -A PREROUTING -s 192.168.1.0/29 -p tcp --dport 80 -j REDIRECT --to-ports 3128 /sbin/iptables -t nat -A PREROUTING -s 192.168.1.0/29 -p udp --dport 80 -j REDIRECT --to-ports 3128 /sbin/iptables -t nat -A PREROUTING -s 192.168.1.80/28 -p tcp --dport 80 -j REDIRECT --to-ports 3128 /sbin/iptables -t nat -A PREROUTING -s 192.168.1.80/28 -p udp --dport 80 -j REDIRECT --to-ports 3128 /bin/ganti #/bin/block.ip.bts /bin/block.ip.ilegal #dns lokal /usr/local/named/sbin/named -u named -c /usr/local/named/etc/named.conf /sbin/route add -net 192.168.1.64 netmask 255.255.255.248 gw 192.168.1.82 /sbin/route add -net 192.168.1.160 netmask 255.255.255.224 gw 192.168.1.82