modify the following in the /etc/sysconfig/syslog
SYSLOGD_OPTIONS="-r -m 0"
Wednesday, August 22, 2007
insert iptables log into /var/log/iptables
insert the following into /etc/syslog.conf
#Log iptables stuff to iptables log
kern.=debug /var/log/iptables
on iptables files, use
iptables -A INPUT -p tcp -j LOG --log-tcp-options --log-level debug --log-prefix "INPUT packets"
#Log iptables stuff to iptables log
kern.=debug /var/log/iptables
on iptables files, use
iptables -A INPUT -p tcp -j LOG --log-tcp-options --log-level debug --log-prefix "INPUT packets"
Saturday, August 11, 2007
only allow from source IP on apache
file under .htaccess
Order deny,allow
Deny from all
Allow from IP_ADDRESS
Order deny,allow
Deny from all
Allow from IP_ADDRESS
Sunday, July 22, 2007
openLDAP authentication on apache
Create a .htaccess file under www folder
AuthType Basic
AuthName "LDAP SERVER"
AuthLDAPEnabled on
AuthLDAPURL ldap://<openldap server>/<schema>?uid
require valid-user
AuthName "LDAP SERVER"
AuthLDAPEnabled on
AuthLDAPURL ldap://<openldap server>/<schema>?uid
require valid-user
Schema Structure sample like:. ou=people,ou=organization unit,o=organization
change the following setting under httpd.conf
AllowOverride Options AuthConfig
Thursday, July 19, 2007
create openldap log
Insert “loglevel -1” into slapd.conf files
Please refer to openldap admin guide for more information.
To enable the log file in the system log.
Insert the following into /etc/syslog.conf
# save OpenLDAP log
local4.* /var/log/ldap.log
then restart the ldap & syslog service.
Saturday, July 7, 2007
add Jboss as Windows services
download the javaservice.exe from internet.
run the following command.
%JBOSS_HOME%\bin\JavaService.exe
-install Jboss %JAVA_HOME%\jre\bin\server\jvm.dll
-Djava.class.path=%JAVA_HOME%\lib\tools.jar;%JBOSS_HOME%\bin\run.jar
-start org.jboss.Main
-params -c Application_Name -stop org.jboss.Main -method systemExit
-out %JBOSS_HOME%\log\out.log
-err %JBOSS_HOME%\log\err.log
-current %JBOSS_HOME%\bin -depends "" -manual
run the following command.
%JBOSS_HOME%\bin\JavaService.exe
-install Jboss %JAVA_HOME%\jre\bin\server\jvm.dll
-Djava.class.path=%JAVA_HOME%\lib\tools.jar;%JBOSS_HOME%\bin\run.jar
-start org.jboss.Main
-params -c Application_Name -stop org.jboss.Main -method systemExit
-out %JBOSS_HOME%\log\out.log
-err %JBOSS_HOME%\log\err.log
-current %JBOSS_HOME%\bin -depends "" -manual
add new address book in Lotus Domino
if u want to add extra new address book than original organization address book.
inside
names=names.nsf,newaddressbook.nsf
into notes.ini file.
names.nsf = existing the address book.
newaddressbook.nsf = the new address book.
inside
names=names.nsf,newaddressbook.nsf
into notes.ini file.
names.nsf = existing the address book.
newaddressbook.nsf = the new address book.
Subscribe to:
Posts (Atom)