Posts

Showing posts from October, 2008

LED status on HP Machine

sometimes we found our LED HP server states green, blinking yellow or red. Just visit official site .

Virtual host on proftpd

Image
If you want to create virtual host for your FTP, just edit your proftpd.conf # vi proftpd.conf Note that ip_address_1 dan ip_address_2 owned by this server. We also can configure another port that will be use for specific virtual host.

logadm on Solaris

If we want to administering log files on solaris, we can use logadm. Another option we also can use logrotate. For example : we have log files at /var/log/tinyproxy.log 1. we want to rotate log after reach 1MB. # logadm -w /var/log/tinyproxy.log -s 1m 2. we want to rotate log every day. # logadm -w /var/log/tinyproxy.log -p 1d 3. we want to keep until previous 10 day only. # logadm -w /var/log/tinyproxy.log -C10 etc... for more details, you should see logadm manual. File configuration of logadm at /etc/logadm.conf For default logadm run every morning 3:10 AM by crontab process. You can see crontab list with this : # crontab -e If you just see number after running command above, # crontab -e 713 you should define your editor profile. # export EDITOR=vi # crontab -e

Persistence Profile on BIG-IP

BIG-IP has feature persistence profile, it uses for keep existing session on a member. For example : Pool have 2 members (A and B), for example request will redirect to A, but sometimes it can redirected to B for a while, it cause client losing connection to A. How to create persistence profile based on source address. - Go to Local Traffic -> Virtual Servers -> Profiles -> Persistence - Click create to make a new persistence profile - Change Persistence Type to "Source Address Affinity" - Make sure that Parent Profile "source_addr" - Don't forget to give a name to your new profile Assigning Persistence Profile to Virtual Servers. - Go to one of your virtual servers, and then go to tab "Resources" - Assign Default Persistence Profile with your new persistence profile.

User jail on Proftpd

If you want to jail user when logging in to FTP server only to their home directory, you should edit line below : # more /usr/local/etc/proftpd.conf ---------------- DefaultRoot ~ ---------------- But if you want user can change directory to all directory, you just uncomment that line.