Set ip alias in FreeBSD

FreeBSD support ip aliasing, unlimited ip can assigned to one interface

From command line :

kongja# ifconfig -a

em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=b<RXCSUM,TXCSUM,VLAN_MTU>
        inet 192.168.1.5 netmask 0xffffff00 broadcast 192.168.1.255
        inet 172.88.1.15 netmask 0xffff0000 broadcast 172.88.255.255
        ether 00:0e:0c:4e:21:d2
        media: Ethernet autoselect (1000baseTX <full-duplex>)
        status: active
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=b<RXCSUM,TXCSUM,VLAN_MTU>
        inet 222.124.4.107 netmask 0xfffffff8 broadcast 222.124.4.111
        ether 00:0e:0c:4e:21:d3
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        inet 222.124.4.108 netmask 0xffffffff broadcast 222.124.4.108
        ether 00:60:97:6e:79:8e
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
pfsync0: flags=0<> mtu 2020
        syncpeer: 224.0.0.240 maxupd: 128
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33208
Continue reading

/etc/rc.local and pure-ftp

pure-ftp already run in port 21 and other instance needed to make different server call

existing one controlled by /etc/rc.conf and I don’t know howto configure another one

after searching google I found clue about rc.local

by default rc.local not exist, I have to create one :

kongja# ee /etc/rc.local

put this lines :

#!/bin/sh

/usr/local/sbin/pure-ftpd -S 172.88.1.15,212 -A -c50 -j -l mysql:/home/alamster/ftp/pureftpd-mysql_login.conf &

save by press Esc button

either execute it by typing :

kongja# sh /etc/rc.local

or by restarting  server then I can see two ftp service running . One using port 21 and another one using port 212

kongja# ps -ax | grep ftp
 1063  ??  I      0:00.03 pure-ftpd (SERVER) (pure-ftpd)
64979  p0- I      0:00.02 pure-ftpd (SERVER) (pure-ftpd)

 to make sure :

kongja# netstat -an | grep LISTEN
tcp4       0      0  *.21                   *.*                    LISTEN
tcp4       0      0  172.88.1.15.212         *.*                    LISTEN

great, I hope I not breaking anything by putting this line in rc.local :-)

Configure FTP server in windows for quick class task

Chemistry class will be over and assignment need to collect  very soon. I have to set quick ftp server shared folder to accomplished that task.

Each student must send their task  via ftp. Filezilla already set in last meeting, now  must configure it for student, need quick and easy way.

1. Student save their task with winzip file with their name as file name

2. Using assigned user : class1 and password 123456

3. Shared folder in read and write mode,  they must honest, as md5 file of their task is the only proof for receipt :-)

Here’s my steps for configure Filezilla FTP server :

Click FileZilla Server Interface to edit some configuration

Continue reading

Installing your favorite mysql version in FreeBSD

Ports offer more flexibility than package in general but when dealing with size I prefer using package :-)

My common question when see this on freebsd ports page :

to get mysql support on php, I must install mysql-client-5.0.41 thats means I must install mysql5 server too if I decide to install mysql in my server, I prefer to install mysql4. Is it possible?

I’m luckly, freebsd ports offer flexible options, simple trick to use mysql 4.0.27 with php4 is installing mysql4 server first.

after installing mysql server version 4 then php4-mysql will use mysql4-client automatically.

with this option some options for favorit mysql version available, depend on you.

-bash-2.05b$ cd /usr/ports/databases/
-bash-2.05b$ ls | grep mysql

Continue reading

DNS service, freedom to manage your server

A lot of scenario in my mind with "free" things around domain, hosting and email which is DNS.

There is many provider offer DNS management for free like :

these provider offer dns management that you can use for  :

  1. Hosting your blog for free at awardspace, pointing your email at google apps plus other facility in google like gtalk etc.
  2. Hosting your blog in your own server, pointing your email at google apps
  3. Hosting your own email with free hosting from awardspace or other free hosting

Off course first scenario is the best, only need domain to start

Wait, if you wanna free domain then you can check out this thread :

"Win a year’s worth of hosting at BloggingTips.com"

Make sure to prepare yourself to win by reading this article :