touch /var/lock/subsys/local /etc/rc.d/rc.tw modprobe cls_route modprobe cls_u32 modprobe cls_fw modprobe sch_sfq modprobe sch_htb modprobe ipt_MARK modprobe ipt_TOS modprobe ipt_MASQUERADE modprobe ipt_state modprobe ipt_REJECT modprobe ipt_LOG modprobe ipt_limit modprobe iptable_mangle modprobe iptable_filter modprobe ip_conntrack_irc modprobe ip_nat_irc modprobe ip_conntrack_ftp modprobe ip_nat_ftp modprobe iptable_nat modprobe ip_tables modprobe ip_conntrack echo 1 > /proc/sys/net/ipv4/tcp_syncookies echo "1" > /proc/sys/net/ipv4/ip_forward #iptables NAT Warnet Game Online /sbin/iptables -t nat -A POSTROUTING -s 202.173.95.4/32 -d 0.0.0.0/0 -j MASQUERADE /sbin/iptables -t nat -A POSTROUTING -s 202.173.95.229/32 -d 0.0.0.0/0 -j MASQUERADE #iptables Transparent Proxy /sbin/iptables -t nat -A PREROUTING -s 202.173.95.0/24 -p tcp --dport 80 -j REDIRECT --to-port 8080 /usr/sbin/squid -D /etc/rc.d/init.d/httpd start #/etc/rc.d/padang.sh #portsentry /usr/local/psionic/portsentry/portsentry -atcp /usr/local/psionic/portsentry/portsentry -audp #/sbin/ifconfig eth0:1 69.88.24.226 netmask 255.255.255.240 broadcast 69.88.24.239 /sbin/ifconfig eth1:1 210.23.76.97 netmask 255.255.255.240 broadcast 202.122.163.47 ##################### # Routing IP Baru # ##################### /sbin/route add -net 202.173.95.224 netmask 255.255.255.252 gw 202.173.95.42 /sbin/route add -net 202.173.95.216 netmask 255.255.255.252 gw 202.173.95.42 /sbin/route add -net 202.173.95.220 netmask 255.255.255.252 gw 202.173.95.42 /sbin/route add -net 202.173.95.200 netmask 255.255.255.252 gw 202.173.95.44 /sbin/route add -net 202.173.95.212 netmask 255.255.255.252 gw 202.173.95.42 /sbin/route add -net 202.173.95.236 netmask 255.255.255.252 gw 202.173.95.42 /sbin/route add -net 202.173.95.232 netmask 255.255.255.252 gw 202.173.95.42 /sbin/route add -net 202.173.95.228 netmask 255.255.255.252 gw 202.173.95.42 /sbin/route add -net 202.173.95.208 netmask 255.255.255.252 gw 202.173.95.42 /sbin/route add -net 202.173.95.0 netmask 255.255.255.224 gw 202.173.95.42 /sbin/route add -net 202.122.163.0 netmask 255.255.255.224 gw 202.122.163.42 /sbin/route add -net 210.23.76.64 netmask 255.255.255.224 gw 210.23.76.98 #8ip untuk client /sbin/route add -net 202.173.95.80 netmask 255.255.255.248 gw 202.173.95.42 /sbin/route add -net 202.173.95.88 netmask 255.255.255.248 gw 202.173.95.42 /sbin/route add -net 202.173.95.96 netmask 255.255.255.248 gw 202.173.95.42 /sbin/route add -net 202.173.95.48 netmask 255.255.255.248 gw 202.173.95.42 /sbin/route add -net 202.173.95.128 netmask 255.255.255.248 gw 202.173.95.42 /sbin/route add -net 202.173.95.144 netmask 255.255.255.248 gw 202.173.95.42 /sbin/route add -net 202.173.95.32 netmask 255.255.255.248 gw 202.173.95.42 /sbin/route add -net 202.173.95.136 netmask 255.255.255.248 gw 202.173.95.44 /sbin/route add -net 216.236.107.112 netmask 255.255.255.248 gw 202.173.95.42 # Check quota and then turn quota on. if [ -x /usr/sbin/quotacheck ] then echo "Checking quotas. This may take some time." /sbin/quotacheck -avug echo " Done." fi if [ -x /usr/sbin/quotaon ] then echo "Turning on quota." /sbin/quotaon -avug fi /usr/local/named/sbin/named -u named -c /usr/local/named/etc/named.conf