How To Setup Adito SSL VPN on CentOS 6 Minimal Install

configure eth0 – check for anything ifcfg-* kind of thing in /etc/sysconfig/network-scripts/

– edit ifcfg-eth0

BEFORE:

DEVICE=”eth0″
HWADDR=”00:0C:29:B5:81:93″
NM_CONTROLLED=”yes”
ONBOOT=”no”

AFTER:

DEVICE=”eth0″
HWADDR=”00:0C:29:B5:81:93″
NM_CONTROLLED=”no”
NM_MANAGED=”no”
ONBOOT=”yes”
BOOTPROTO=”dhcp”

NOTE: You’ll likely want to change this to a static address if this is going to be a VPN Server!!! LOL!!!
#=============================================

service network restart

#=============================================

#CONTENTS OF /etc/hosts FILE:

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6
192.168.5.132 hostname.local hostname 192.168.5.132

#=============================================

yum -y update

#=============================================

yum -y install wget tcpdump screen telnet unzip glibc.i686 file man

#=============================================

#NOTE: I used this in a script that had the files served up from a local HTTP server.  You’ll likely #want to find the appropriate Adito, JDK and Apache Ant binaries from their site cause bandwidth #aint cheap!

wget http://192.168.3.34/adito-0.9.1-bin.zip
wget http://192.168.3.34/jdk-6u25-linux-x64.bin
wget http://192.168.3.34/apache-ant-1.8.3-bin.tar.gz

#=============================================

unzip adito-0.9.1-bin.zip
tar -xzvf apache-ivy-2.2.0-bin.tar.gz
chmod 755 jre-6u30-linux-i586.bin
./jre-6u30-linux-i586.bin

#=============================================

mv apache-ant-1.8.3 /usr/local/ant
mv ~/jre1.6.0_30/ ./java
mv ~/jre1.6.0_30/ ./java

#=============================================

#edit /etc/profile

unset i
JAVA=””
export JAVA=”sun”
export JPATH=”/usr/local/java”
export JAVA_HOME=”$JPATH”
export CLASSPATH=”$JPATH/bin”

export ANT_HOME=”/usr/local/ant”
export PATH=${PATH}:${ANT_HOME}/bin:${CLASSPATH}
unset pathmunge

#============================================

iptables -I INPUT -p tcp –dport 28080 -j ACCEPT
iptables -I INPUT -p tcp –dport 443 -j ACCEPT
/etc/init.d/iptables save

#============================================

cd /usr/local/adito
ant install

#============================================

#user interaction on web interface required
#After the web install finishes, run the following to setup the init scripts:

ant install-service
ant start

#============================================