2013年2月19日星期二

How do I download a certificate from Symantec Trust Center?

Solution ID:  SO8061
Version:  22.0
Published:  02/26/2008
Updated:  02/03/2013

Problem

Download certificate
Pick up certificate

Resolution

  1. Go to https://trustcenter.websecurity.symantec.com/process/retail/console_login?application_locale=VRSN_US
  2. Enter your Username and Password
  3. Click Sign In
    Note: If you do not remember your Username or Password, refer to SO6057
  4. In the first step, click "Get certificate". (added by webmaster)
  5. From the list, select the corresponding certificate to download
  6. Under the Status tab, click Pick up certificate
  7. Select the appropriate PKCS#7 or  X.509 format from the drop down menu and allow for the page to refresh between selections
    Note: Microsoft IIS users select PKCS#7 or select X.509 for all other server vendors
  8. Click Copy
  9. Paste the certificate into a plain text editor such as Notepad (Windows) or VI (UNIX)
  10. Save the file as .cer
     
Note: The default format when picking up the certificate is PKCS#7 which includes the SSL certificate and corresponding Intermediate CA(s). If Microsoft IIS 5.0 or higher is being used, you will want to select the PKCS#7 format as the Microsoft IIS server can import the Intermediate CA's and end entity SSL certificate when it is packaged in a PKCS#7 type file. 

If you require the SSL certificate file without the Intermediate CA, select the x.509 format. 

2013年1月29日星期二

VMware .encoding windows-1252

Problem with starting VMWare image, open the *.vmx with notepad, you will find '.encoding = "windows-1252" ' in this first line. Delete the first line and save it, the image could be started.


http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1014201

2013年1月21日星期一

LDAP Queries

Remarks:

(|(&(|(objectClass=Contact)(&(objectClass=group)(!(userAccountControl:1.2.840.113556.1.4.803:=2))))(mail=*))
(&(|(objectClass=Contact)(&(objectClass=User)(!(userAccountControl:1.2.840.113556.1.4.804:=2))))(mail=*)))

Syntax


Name of Operator
=
*
&
|
!

Common LDAP Queries

The examples below show the most common LDAP queries. These queries are the most common queries used, and are designed to work with most directory server environments.
All objects (this may cause load problems):
All user objects that are designated as a “person”
Distribution Lists only
Public Folders only
All user objects except for ones with primary email addresses that begin with test
All user objects except for ones with primary email addresses that end with test
All user objects except for ones with primary email addresses that contain the word “test”
All user objects (users and aliases) that are designated as a “person” and all group objects (distribution lists)
All user objects that are designated as a “person”, all group objects and all contacts, except those with any value defined for extensionAttribute9:
(&(|(|(&(objectclass=user)(objectcategory=person))(objectcategory=group))(objectclass=contact))(!(extensionAttribute9=*)))
All users, but exclude disabled users:
Active Directory LDAP: All users
Active Directory LDAP: All email users (alternate)
OpenLDAP: All users
Lotus Domino LDAP: All users
Lotus Domino LDAP: All objects with a mail address defined that are designated as a “person “or “group”:
 


Ref: http://www.google.com/support/enterprise/static/postini/docs/admin/en/dss_admin/prep_ldap.html

2012年11月26日星期一

What are the different file types created with Symantec System Recovery 2011?

Problem



After completing backups, need to understand files related to Incremental and Full backups.

Solution



.v2i  - Base or Full Backup recovery point image. This can be created from a baseline or Independent Backup.
 
.iv2i - Incremental image. An incremental includes changes since the last incremental was performed or since the BASE.
 
.sv2i - System Restore File.   Each time a backup image is created, a system index file is saved along with it.
 
The system index file (.sv2i) is created when a backup operation is performed that has multiple drives or a recovery point set (base and incremental backups). A system index file reduces the amount of time that is needed to restore the drives. When a recovery point is created, a system index file is saved with it. The system index file contains a list of the most recent recovery points, which includes the original drive location of each recovery point.
 
.fbf - File Folder Backups. 
 
Recovery Point Set definition: A recovery point set is defined as the Base + all incrementals associated with that Base.
 
  • For example:  if you create a Base backup on the first of each month and incrementals once per week, you will have 5 backup images (one base and 4 incrementals) at the end of the month. All 5 of these images comprise one recovery point set.
 
·         Recovery Point Set Example:
C_Drive001.v2i (Base backup for recovery point set #1)
C_Drive001_i001.iv2i (incremental backup #1 for recovery point set #1)
C_Drive001_i002.iv2i (Incremental backup #2 for recovery point set #1)
C_Drive002.v2i (Base backup for recovery point set #2)
C_Drive002_i001.iv2i (Incremental backup #1 for recovery point set #2)
 
By default, scheduled independent recovery point file names and recovery point
set file names are appended with 001.v2i, 002.v2i, and so forth.
 
Incremental recovery point file names within a set are appended with _i001.iv2i, _i002.iv2i,
and so forth. For example, if your base recovery point is called Server001.v2i,
the first incremental recovery point is called Server 001_i001.iv2i.
 

2012年11月22日星期四

Add, delete the rule in Chain INPUT (policy ACCEPT)

Add the rule in Chain INPUT (policy ACCEPT)
sudo iptables -A INPUT -p tcp --dport ssh -j ACCEPT
sudo iptables -A INPUT -p tcp --dport http -j ACCEPT
sudo iptables -A INPUT -p tcp --dport ftp -j ACCEPT
sudo iptables -A INPUT -p tcp --dport http -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 65020 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 65030 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 65020:65030 -j ACCEPT


Delete the rule
iptables -D INPUT -p tcp --dport 65020 -j ACCEPT
iptables -D INPUT -p tcp --dport 65030 -j ACCEPT


iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

This is the rule that does most of the work, and again we are adding (-A) it to the INPUT chain. Here we're using the -m switch to load a module (state). The state module is able to examine the state of a packet and determine if it is NEW, ESTABLISHED or RELATED. NEW refers to incoming packets that are new incoming connections that weren't initiated by the host system. ESTABLISHED and RELATED refers to incoming packets that are part of an already established connection or related to and already established connection.

ref: http://wiki.centos.org/HowTos/Network/IPTables

Add a static IP to a Redhat/Fedora/CentOS box

To edit/create first NIC file, type command:
# vi /etc/sysconfig/network-scripts/ifcfg-eth0

Append/modify as follows:

DEVICE=eth0
BOOTPROTO=static
DHCPCLASS=
HWADDR=00:30:48:56:A6:2E
IPADDR=10.10.29.66
NETMASK=255.255.255.192
ONBOOT=yes

Add / setup a new route
# route add default gw 192.168.1.254 eth0

Setup DNS Server as follows:
# vi /etc/resolv.conf

nameserver 10.0.80.11
nameserver 10.0.80.12
nameserver 202.67.222.222

ref: 
Linux change ip address
http://www.cyberciti.biz/faq/linux-change-ip-address/

Howto Red hat enterprise Linux 5 configure the network card
http://www.cyberciti.biz/faq/rhel-centos-fedoracore-linux-network-card-configuration/

Linux setup default gateway with route command
http://www.cyberciti.biz/faq/linux-setup-default-gateway-with-route-command/

2012年11月21日星期三

Command for check SELinux status

cat /etc/sysconfig/selinux