This website is a documentation of the results after installing any applications on FreeBSD or Linux.

As a System Administrator I often accept the task to set up a server for the purposes of the office where I work or to make products which are then sold to customers. Almost all of the operating system and applications are applications that use free or opensource. I've made ​​with ispcp omega webhosting running on centos, aya never install isp config running on debian, etc.

In addition to any multimedia purposes I prefer to use opensource and freebsd, when I create a media server (Streaming Radio) uses FreeBSD, Icecast, and ices.

What is FreeBSD?

FreeBSD is an advanced operating system for x86 compatible (including Pentium® and Athlon™), amd64 compatible (including Opteron™, Athlon™64, and EM64T), ARM, IA-64, PowerPC, PC-98 and UltraSPARC® architectures. It is derived from BSD, the version of UNIX® developed at the University of California, Berkeley. It is developed and maintained by a large team of individuals. Additional platforms are in various stages of development.

Cutting edge features FreeBSD

FreeBSD offers advanced networking, performance, security and compatibility features today which are still missing in other operating systems, even some of the best commercial ones.

Powerful Internet solutions

FreeBSD makes an ideal Internet or Intranet server. It provides robust network services under the heaviest loads and uses memory efficiently to maintain good response times for thousands of simultaneous user processes.

Advanced Embedded Platform

FreeBSD brings advanced network operating system features to appliance and embedded platforms, from higher-end Intel-based appliances to Arm, PowerPC, and shortly MIPS hardware platforms. From mail and web appliances to routers, time servers, and wireless access points, vendors around the world rely on FreeBSD's integrated build and cross-build environments and advanced features as the foundation for their embedded products. And the Berkeley open source license lets them decide how many of their local changes they want to contribute back.

Run a huge number of applications

With over 20,000 ported libraries and applications, FreeBSD supports applications for desktop, server, appliance, and embedded environments

Sunday, March 20, 2011

Bandwidth Optimization with FreeBSD 7 + Squid + Apache + videocache


Bismillahirrahmanirrahim

Web technology that is increasingly growing not balanced with bandwidth prices down very slowly. It certainly will make us as administrators dizzy 7 circumference on the other side must conserve bandwidth expenditures, on the other hand very often users access the streaming video which is very wasteful of bandwidth.The most difficult of access with limited bandwidth there is video streaming, an increasingly common around us with flash technology
with Flv file format. Besides youtube many other websites, which provides streaming video of them google video, meta cafe.
There's an interesting idea from the people who joined in cachevideos.com to mencache video video of frequently accessed. they called the application with the name videocache.

Introduction Sudo


Sudo is a utility that allows system administrators to give users the ability to user or group to run an application, read a file, which can only be run or read by root or another user.
stable version of this utility is sudo 1.6.9p4, released on August 16, 2007. Sudo is free software and distributed under the ISC-style license. Sudo the first time known and implemented by Bob Coggeshall and Cliff Spencer around 1980 at the Department of Computer Science at SUNY / Buffalo. running on the system VAX-11/750 running 4.1BSD. and updated version, credited to Phil Betchel, Cliff Spencer, Gretchen Phillips, John LoVerso and Don Gworek, have been distributed through Usenet newsgroups net.sources in December of 1985. You can read more about the history of sudo in http://www.sudo.ws/sudo/history.html

Squid In the Outgoing Connection Load Balancing


Squid is a proxy and cache content that is often required by our course with a variety of reasons among them to speed up delivery of frequently accessed web client.

Outgoing while load balancing is not optimize the bandwidth available in 2 pieces or more internet connection point and divide evenly cumulative burden on a network.

installation procedure I've ever discussed here http://indofreebsd.or.id/load-balancing-outgoing-connection-2.html His basic idea is that although outgoing load balancing method, is expected to use Squid and traffic that is in use balanced (balance) between connection 1 and connection 2.

if you use the default configuration squid, of course what is expected of you will not be achieved because tcp_outgoing a squid only 1 and can not automatically vary his tcp_outgoing.

Mod_gzip As HTTP Compressor


What is mod_gzip?

mod_gzip is an external extension module that serves to compress the apache http output to speed delivery of text or html to ten-fold when compared with no compression.

Mod_gzip As the name implies, this module uses gzip compression method that is able to reduce shipping volume of a website through http protocol. The advantage of using mod_gzip which I feel is:

1. Minimize the bandwidth of the output from a website, especially a website that has a bandwidth limit per month.
2. Allows speed up access to a website, so people with small bandwidth speeds can access the website comfortably.

VPN dialup PPTP


prasyarat :

Device tun sudah ada pada kernel
device tun # Packet tunnel.
Ports collection yang up to date
poptop

Saturday, March 19, 2011

Live Internet Radio

Pre Conditions:

uptodate ports collection
Icecast 2.3.1
ICES 2.0.1
FM radio
CPU Pentium 4 512 Ram min
Sound Card on board intel (in addition to Intel's own trial and error yes)
Installation Phase

first login as root to your FreeBSD machine or use sudo

indofreebsd # cd / usr/ports/audio/icecast2

indofreebsd # make install cleanindofreebsd # make install clean

indofreebsd # cd / usr / ports / audio / ICES

indofreebsd # make install clean

here until the installation phase is complete now headed for the stage configuration

LOAD BALANCING OUTGOING CONNECTION


What was meant by outgoing load balancing in this discussion? I mean outgoing load balancing here is balancing two or more Internet connections and optimize the connection.

in doing this I use the load balancing pool pf

http://www.openbsd.org/faq/pf/pools.html # outgoing

in this example I will present only two connections. for more than 2 connections you my try it by your self.

Instalasi Squid Proxy Server High Anonymous


pre conditions:

compile your kernel with the following options:

SYSVMSG options
MSGMNB = 16 384 options
options MSGMNI = 41
MSGSEG options = 2049
options MSGSSZ = 64
options MSGTQL = 512
SYSVSHM options
options SHMSEG = 16
options SHMMNI = 128
options SHMMAX = 1073741824
SHMALL = 16 384 options

pico squidsetup
-----paste--------

./configure --bindir=/usr/local/bin
--sbindir=/usr/local/sbin
--sysconfdir=/usr/local/etc/squid
--datadir=/usr/local/etc/squid
--libexecdir=/usr/local/libexec/squid
--localstatedir=/var/log/squid
--enable-removal-policies="lru heap"
--enable-auth="basic ntlm digest"
--enable-basic-auth-helpers="NCSA PAM MSNT SMB winbind"
--enable-digest-auth-helpers="password"
--enable-external-acl-helpers="ip_user unix_group wbinfo_group winbind_group"
--enable-ntlm-auth-helpers="SMB winbind"
--enable-async-io --with-pthreads --with-aio
--enable-storeio="ufs diskd null aufs coss"
--enable-delay-pools --enable-snmp --enable-icmp
--enable-htcp --enable-cache-digests --disable-wccp
--enable-underscores --enable-useragent-log
--enable-http-violations --enable-arp-acl --enable-pf-transparent --enable-ipf-transparent
--enable-follow-x-forwarded-for --with-large-files --enable-large-cache-files
--enable-default-err-language=English
------paste---------

Gateway FreeBSD Using ipfw + natd

Here are steps to make the Gateway:

Login to your FreeBSD box as root, compile the kernel freebsd

# cd / usr/src/sys/i386/conf
# cp GENERIC INDOFREEBSD
# pico INDOFREEBSD

When you do the editing part of the kernel configuration file please edit the customize to your wishes and support your machine. or if you do not understand and do not want to bother you enough to edit or add to what we need to create a gateway only. example

1. ident INDOFREEBSD

2. IPFIREWALL # enable ipfw options as part of the kernel

3. IPFIREWALL_VERBOSE options # log the net

4. options IPFIREWALL_DEFAULT_TO_ACCEPT # just what it say

5. IPFIREWALL_VERBOSE_LIMIT = 100 # options to prevent flooding syslog

6. IPFIREWALL_FORWARD options

7. IPDIVERT options

Postfix+ tpop3d + clamsmtp


The following steps create a mail server:

login: ogeb

pass: * * * *

FreeBSD 4.5-STABLE (INDOFREEBSD) # 3: Mon Oct 20 19:56:53 UTC 2005

$ sudo su
Disable sendmail via rc.conf

# pico / etc / rc.conf

sendmail_enable = "NONE" lalu save

Install postfix

#cd /usr/ports/mail/postfix

#make ; make install ; make clean

Install Clamav

#cd /usr/ports/security/clamav

#make ; make install ; make clean

Install clamsmtp

#cd /usr/ports/security/clamsmtp #make ; make install ; make clean

Install tpop3d

#cd /usr/ports/mail/tpop3d #make ; make install ; make clean

tahap selanjut nya adalah mengkonfigurasi yang telah kita install tadi

#mv /usr/local/etc/postfix/main.cf /usr/local/etc/postfix/main.cf.default #pico /usr/local/etc/postfix/main.cf

Simple Gateway Using ipfw + ipnat


Build A Gateway is a not so difficult. Moreover you have a little

the desire and knowledge about the browser you can easily install the gateway

without facing difficulties.

Many paper or notes about the making of the Gateway router which each has advantages

and lack of variety. On this occasion I present about how making a simple gateways, to handle

a small network.

To build a gateway using IPFW and IPNAT, it is necessary to compile the kernel first

first.

Friday, March 18, 2011

DHCP Server with 2 Segment Network


Still on the DHCP server, but this time I will discuss about how to configure a DHCP server on 2 different network segments. In this case, there is a two-story building, has a network on the 1st floor and 2nd floor. The owner of the building is desired, for different network 1st floor with floor 2, but for convenience he wants to use a DHCP server. Previously he budgeted 2 pieces of servers for Internet connections at each floor 1 and floor 2. I think not need 2 servers for Internet connections, especially the number of computers floors 1 and 2 and the bandwidth which is owned not too big. Finally, the landlord was willing to accept my advice with making a DHCP server for both the network connection.

How to make it not too difficult, it only needs a very simple configuration and 2 Lancard that her listen as a DHCP server to the second network. How to install DHCP server is no different from my previous writings. The difference, in this case is to use 2 Lancard network netwrok 1 and 2, and 1 Lancard longer a public network.

Ports Collection update with CVSup


what ports? The FreeBSD Ports and Packages Collection offers a simple way for users and administrators to install applications. There are currently 22462 ports available.
FreeBSD ports collection offers a simple way for users and administrators to install applications. each port contains a working patch for the application source and roads in the BSD.

How to compile an application is very easy to build by typing make in the port directory. Makefile automatically download the source code of applications, to patch it and compile it. Very simple is not it? by simply typing make install you can install the application in its entirety.To install an application from the ports, the required ports are up to date.

mengginstall application so that when it does not happen in broken links or not

found its source applications that we need.

How to keep these ports up to date?

very easy ..

Install DHCP Server


DHCP is a protocol used by computers in a network to determine parameters such as default gateway, subnet mask, and IP address, DNS from DHCP server. General functions of the DHCP server is to facilitate the allocation of IP addresses (hereinafter referred to as IP) and also a very dynamic IP settings to help facilitate the users to not need IP setting when there is the addition of a new user or after reformat a PC. Detailed information on DHCP please read on http://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol#Introduction.
Once you understand the function and workings of DHCP Server, let us try to install a DHCP Server.

Forgot your MySQL root password


Forgot your MySQL root password often we experience, why not? Because usually the MySQL root password is generally distinguished from our shell passwords, with the assumption that if the MySQL password we caught by someone who is not interested in the machine we still survived. Bugs in web applications is generally the main cause and if a cracker can take his MySQL root password and user passwords coincidence shell is equal to the MySQL root password, a cracker can finally do a full control on our FreeBSD machine. From the phenomena above, most admins always distinguish the shell with the root password mysql root password and it often causes you to forget the root password access to mysql mysql database must be done rarely.

Forget Password Root FreeBSD


Have you ever forgotten the root password? I've been there. Factors causing forgot password often because too many servers that handled, too many passwords are in use, is too complicated and is not a password that we usually remember. In other cases, I've reset the root password to install FreeBSD is due to the others and I have to install something in it. Let us try to practice how to reset the root password on freebsd.