วันพฤหัสบดีที่ 21 ตุลาคม พ.ศ. 2553

Adito SSL-VPN



SSL VPN (Secure Sockets Layer Virtual Private Network)เป็นการให้บริการเข้าถึงเครือข่ายภายในองค์กรโดยอาศัยเครือข่ายสาธารณะ(public Network)หรือInternet โดยใช้ระบบพิสูจน์ตัวตนก่อนให้บริการ และใช้ระบบการเข้าถึงข้อมูลผ่าน  SSL ซึ่งเป็นมาตรฐานการส่งเอกสารที่เป็นความลับบนระบบ Internet  โดยอาศัยการเข้ารหัส  cryptographic system ระหว่าง Server กับ client ในรูปแบบของ https

การติดตั้ง Opensource Adito SSl VPN

1: ติดตั้ง JRE and Configuring JAVA Environment.
 
download jre จาก http://www.java.com/en/download/index.jsp
แก้ไข /etc/profile 
---------- 
export JAVA_HOME=/usr/lib/jvm/java-6-sun
export PATH=$PATH:$JAVA_HOME/bin
-----------
source /etc/profile      //  update Profile  
java -version             // check java 

2: ติดตั้ง ANT
download http ant จาก http://ant.apache.org/manual/index.html
export PATH=$PATH:apache-ant/bin     // เพิ่ม Path ant
source /etc/profile      // update Profile
ant -version              // check ant 

3: ติดตั้ง Adito

download Adito จาก http://sourceforge.net

การ configure adito :
#ant install
---------------------
Buildfile: build.xml

set-tools:

check-tools:

check-permissions:

install:
[java] Starting installation wizard.........Point your browser to http://ServerName:28080.

[java] Press CTRL+C or use the 'Shutdown' option from the web interface to leave the installation wizard.
----------------------

เปิด browser http://ServerName:28080




ตั้งค่า Admin Password สำหรับผู้ดูแลระบบ
ตั้งค่า Port สำหรับ connect มาจาก Internet






  

ที่ terminal, ถ้าขึ้นลักษณะดังนี้ เป็นเสร็จเรียบร้อย

-------------------------
[java] .
[java] Jun 29, 2009 8:19:53 PM java.util.prefs.FileSystemPreferences$3 run
[java] INFO: Created system preferences directory in java.home.

BUILD SUCCESSFUL
Total time: 3 minutes 17 seconds
---------------------
สั่ง start adito ใหม่ โดยใช้คำสั่ง

#ant start
------------------------
Buildfile: build.xml

create-wrapper-conf:
[copy] Copying 1 file to /opt/adito-0.9.1/conf
[echo] Creating wrapper configuration dynamically

[echo] Java executable: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/bin/java
[echo] Wrapper directory: install/platforms/linux/x86

set-tools:

check-tools:

check-permissions:

start:
[exec] Starting Adito...
[echo] Adito started

BUILD SUCCESSFUL
Total time: 0 seconds
---------------------------

ติดตั้ง Adito as linux service, โดยใช้คำสั่ง
#ant install-service


วันอาทิตย์ที่ 10 ตุลาคม พ.ศ. 2553

IP address และ hostname



การกำหนด IP address และ host name
ขั้นตอนการแก้ไข IP และ Host name
/etc/hosts
127.0.0.1      localhost.localdomain localhost
202.29.13.25    Natalie Natalie.thaicyberu.go.th  icecast

/etc/sysconfig/network
NETWORKING = yes
HOSTNAME = Natalie
GATEWAY = 202.29.13.1

/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
BROADCAST=202.29.13.1
IPADDR=202.29.13.25
NETMASK=255.255.255.0
NETWORK=202.29.13.0
ONBOOT=yes
TYPE=Ethernet

/etc/resolv.conf
nameserver 208.67.222.222     // OpenDNS-1 //
nameserver 208.67.220.220    // OpenDNS-2 //
nameserver 8.8.8.8                  // Google DNS -1 //
nameserver 8.8.4.4                  // GoogleDNS-2 //

สามารถใช้คำสั่ง setup แล้วเลือก Network Configuration เป็นอีกวิธีหนึ่ง เพื่อเข้าแก้ IP Address โดยสามารถเข้าไปแก้ไขแฟ้มต่าง ๆ ให้อัตโนมัติ เสร็จแล้วใช้คำสั่ง  #service network restart