Sunday, July 29, 2007

Instalasi pc router linux

persiapan:
1. pc dengan
- 2 buah NIC (Tricom recomended)
- hardisk min. 1 buah (SCSI atau SATA recomended)
- memory min. 128 Mb (> 256 Mb recomended)

2. GNU/Linux OS
- Processor 800MHz =< Fedora Core 2 (Slackware =< 9 recomended)
- Processor 1 GHz > Fedora Core 2/3 (Slackware >= 10.1 recomended)


Langkah-langkah Instalasi:
1. Partisi hardisk (Manual recomended)
- / 3000 Mb
- /var/log 200 Mb
- /tmp 200 Mb
- /swap 2 x Mem
- /cache sisa Mb
2. Format Partisi ext3 (reiserfs recomended)
3. Paket minimal + development
4. Install (tunggu sambil ngemil or nonton tv Smile)
5. Setting NAT
- # iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to-source $IP_LOCAL
- # iptables -t nat -A PREROUTING -d $IP_PUBLIC -j DNAT --to-destination $IP_LOCAL
- # iptables -t nat -A PREROUTING -t tcp -dport 80 -j REDiRECT --to-port 3128 (for proxy ONLY!)
6. Install SQUID (if Needed)
- extract source
- go to source directory
- # ./configure --prefix=/opt/nusanet/squid --enable-snmp --enable-storeio=diskd --enable-async-io --enable-dl-malloc \
--enable-time-hack --enable-cache-digests --enable-delay-pools --enable-pool --enable-truncate
- # make && make install
- copy squid.conf (as atachment)
- # echo "/opt/nusanet/squid/sbin/squid -z" >> /etc/rc.d/rc.local
- # echo "/opt/nusanet/squid/sbin/squid" >> /etc/rc.d/rc.local
- # chmod 755 /etc/rc.d/rc.local
- # /etc/rc.d/rc.local
7. Install SNMP
Fedora Core 2:
- wget http://ftp.iasi.rdsnet.ro/mirrors/reb00t.com/fedora-2/RPMS/net-snmp-5.1.1-3.n0i.2.i686.rpm
- wget http://ftp.iasi.rdsnet.ro/mirrors/reb00t.com/fedora-2/RPMS/net-snmp-utils-5.1.1-3.n0i.2.i686.rpm
or
- wget http://jaist.dl.sourceforge.net/sourceforge/net-snmp/net-snmp-5.2.1-3.fc2.i686.rpm

# rpm -ivh $PAKET-NETSNMP
# copy snmpd.conf ke /etc/snmp/ (as attachement)
# /sbin/chkconfig --level 2345 snmpd on
#/etc/init.d/snmpd start

good luck!


if you have any question or want to fix my configuration, please e-mail me to firman@bdl.nusa.net.id

0 komentar: