Inspiration – Go Open Source

rainbow

FreeBSD : Master Ports ke ITB /etc/make.conf

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
MASTER_SITE_OVERRIDE=ftp://ftp.itb.ac.id/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/
 
CPUTYPE?=i386
 
CFLAGS=         -O2 -pipe -fno-strict-aliasing
COPTFLAGS=      -O2 -pipe -funroll-loops -ffast-math -fno-strict-aliasing
CXXFLAGS+=      -fconserve-space
 
KERNCONF=       SERVER GENERIC
 
OPTIMIZED_CFLAGS=       YES
WITHOUT_X11=            YES
BUILD_OPTIMIZED=        YES
WITH_CPUFLAGS=          YES
WITHOUT_DEBUG=          YES
WITH_OPTIMIZED_CFLAGS=  YES
NO_PROFILE=             YES
BUILD_STATIC=           YES
# added by use.perl 2010-02-15 00:11:12
PERL_VERSION=5.10.1
# Without X-Window/GUI.
WITHOUT_X11=yes
# Use MySQL-5.0.x as default.
WANT_MYSQL_VER=50
# Use python-2.6 as default.
PYTHON_DEFAULT_VERSION=python2.6
# Use apache-2.2.
APACHE_PORT=www/apache22
# Use OpenLDAP 2.4.
WANT_OPENLDAP_VER=24
WITH_SASL=yes
WANT_BDB_VER=46
LDAP_R_COMPILE=1

Howto update ports FreeBSD

I think it should be as follows:

1
2
3
4
portsnap fetch update
pkgdb -F
portsdb -Uu
portupgrade -a

portupgrade can be done for specific package:

1
portupgrade package-name

To see list of all outdate ports

1
portversion -l '<'

Memeriksa list dynamic object dependencies

Terkadang kita dihadapkan dengan beberapa masalah dengan aplikasi yang sudah running dan rasanya sudah berjalan dengan sangat baik, tetapi ketika kita melakukan installasi atau penambahan beberapa module, baru kita menyadari ternyata aplikasi yang kita anggap sudah sangat baik ini masih saja kekurangan dynamic object yang dibutuhkan, dan permasalahan ini muncul diwaktu kita mau tambah module,..hehehe, dianggap benerr kok kelihatannya nggak beres. Read the rest of this entry »

IPFW – Passive Port Untuk FTP

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Firewall
IPF="ipfw -q add"
ipfw -q -f flush
 
#loopback
$IPF 10 allow all from any to any via lo0
$IPF 20 deny all from any to 127.0.0.0/8
$IPF 30 deny all from 127.0.0.0/8 to any
$IPF 40 deny tcp from any to any frag
 
# statefull
$IPF 50 check-state
$IPF 60 allow tcp from any to any established
$IPF 70 allow all from any to any out keep-state
$IPF 80 allow icmp from any to any
 
$IPF 110 allow tcp from any to any 21 setup keep-state
$IPF 120 allow tcp from any to any 20 setup keep-state
$IPF 130 allow tcp from any to any 22 in
$IPF 140 allow tcp from any to any 22 out
$IPF 150 allow tcp from any to any 25 in
$IPF 160 allow tcp from any to any 25 out
$IPF 170 allow udp from any to any 53 in
$IPF 175 allow tcp from any to any 53 in
$IPF 180 allow udp from any to any 53 out
$IPF 185 allow tcp from any to any 53 out
$IPF 200 allow tcp from any to any 80 in
$IPF 210 allow tcp from any to any 80 out
$IPF 382 allow tcp from any to any 30000-50000 setup keep-state
$IPF 400 deny ip from me to table\(1\)
$IPF 410 deny ip from table\(1\) to me
 
# deny and log everything
$IPF 500 deny log all from any to any

Membuat Router pake FreeBSD

Sebelum memulai tahap membuat router terlebih dahulu kita membahas pengertian router sebenarnya.
Apa itu router?
Router yaitu suatu perangkat keras jaringan yang menghubungkan dua jaringan yang berbeda dan biasanya dipergunakan sebagai gateway keinternet.
Router terbagi menjadi dua macam : Read the rest of this entry »