Nikmatilah Ilmu dan Hargai

route

Rename interface Linux

leave a comment »

Example:


[root@rr ~]# cat /etc/sysconfig/hwconf | grep -A 16 NETWORK

-
class: NETWORK
bus: PCI
detached: 0
device: eth12
driver: e1000e
desc: "Intel Corporation 82572EI Gigabit Ethernet Controller (Copper)"
network.hwaddr: 00:15:17:4b:76:2c
vendorId: 8086
deviceId: 10b9
subVendorId: 8086
subDeviceId: 1093
pciType: 1
pcidom: 0
pcibus: 5
pcidev: 0
pcifn: 0
-


[root@rr ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth6

# Intel Corporation 82572EI Gigabit Ethernet Controller (Copper)
DEVICE=eth12
BOOTPROTO=static
HWADDR=00:15:17:4B:76:2C
ONBOOT=yes

Written by agusr

July 29, 2009 at 8:44 pm

Posted in Linux

TTN MTK

leave a comment »

Kepanjangan di atas bisa dibilang, Tidur Tak Nyenyak Makan Tak Kenyang. Itu mungkin tanda-tanda stress (termasuk penulis “stress-red”).

Read the rest of this entry »

Written by agusr

July 12, 2009 at 8:02 pm

Posted in Atitude, Uncategorized

How to disable ipv6?

leave a comment »

Stickies from centos.org/

Edit 2 file berikut:
[root@pandaren ~]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
GATEWAY=xxx.xxx.xxx.xxx
HOSTNAME=xxx.xxx.co.id
DOMAINNAME=xxx.co.id
[root@pandaren ~]#


[root@pandaren ~]# more /etc/modprobe.conf
alias eth0 tg3
alias scsi_hostadapter ata_piix
alias ipv6 off
alias net-pf-10 off

[root@pandaren ~]#

Written by agusr

June 12, 2009 at 4:29 pm

Posted in Linux, Network

exclude domain in modsec

leave a comment »

Using Apache/2.2.11 PHP 5.2.9 (cPanel) and mod_security2.

add this line after default action.
SecRule SERVER_NAME "yourdomain0.com" phase:1,nolog,allow,ctl:ruleEngine=off
SecRule SERVER_NAME "yourdomain1.com" phase:1,nolog,allow,ctl:ruleEngine=off
SecRule SERVER_NAME "yourdomain2.com" phase:1,nolog,allow,ctl:ruleEngine=off

Written by agusr

May 24, 2009 at 7:14 am

Posted in General

file size routing table

leave a comment »

Kurang kerjaan nganalisa bgp v4 RoS.

[agusr@rr.bgp]
[agusr@rr.bgp] /ip route pr count-only
296607
[agusr@rr.bgp] /ip route print detail file=route.txt
[agusr@rr.bgp] /file print
# NAME TYPE SIZE CREATION-TIME
0 route.txt .txt file 73037417 may/15/2009 09:40:40
[agusr@rr.bgp]

routing table bgp (international) jika di jadikan file sekitar 72 MB, ada yang mengklaim dengan router 128MB ram cukup untuk menangani proccess ini. Non router machine and network proccessor ? I don’t think so.

Configurasi di atas menggunakan RoS MT dengan RAM 2GB, Q2Quad 8200 dan butuh waktu sekitar 20 detik untuk mengExport routing table untuk 1 Peering International multi hop n full route advertise. Bagai mana dengan 2 Peering International ? ( 20detik x 2 ) atau 4 Peering ? ( mungkin berasap kali ya )

Written by agusr

May 15, 2009 at 10:35 am

Posted in Network

Tagged with

Max connection squid

with 2 comments

Berdasarkan case Sat Mar 21 03:25:33 WIT 2009, posisi client menggunakan download manager dengan 60 thread simultaneous connection, sekitar 4 bilik. Tidak perlu dbahas apa yang terjadi dengan mesin proxy server @_@.

# buka squid.conf
# vim -N /etc/squid/squid.conf

# code
acl localnet 192.168.0.0/24
acl limitconn maxconn 20
http_access deny localnet limitconn

# reconfigure / restart squid.
squid -k reconfigure atau /etc/init.d/squid restart
Read the rest of this entry »

Written by agusr

March 21, 2009 at 4:46 am

Posted in FreeBSD, Linux

Tagged with

Install Lighttpd + php5 Debian Lenny

leave a comment »

1. Pastikan package, index files terbaru.
gmt:~# apt-get update
gmt:~# apt-get upgrade

2. Install Lighttpd.
[root@gmt ~]# apt-get install lighttpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
fam libfam0 libterm-readkey-perl libterm-readline-perl-perl mime-support portmap
Suggested packages:
openssl rrdtool apache2-utils
The following NEW packages will be installed:
fam libfam0 libterm-readkey-perl libterm-readline-perl-perl lighttpd mime-support portmap
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 561kB of archives.
After this operation, 1806kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Read the rest of this entry »

Written by agusr

March 13, 2009 at 2:57 am

Posted in Debian