🔒 Closed Centos 6 64bit: softether initial setup!

Status
Not open for further replies.
You do not have permission to view the full content of this post. Log in or register now.

-- Login 1st --

nano You do not have permission to view the full content of this post. Log in or register now.

#-------------------------------------------------------
#Softether Auto Install Script
#For Debian 7 x64 (i686 will arrive soon)
#
#Script Coded by Faishal Akbar
#You do not have permission to view the full content of this post. Log in or register now.
#
#Script Based from tutorial by lincolin.hk
#
#Good Luck!
#-------------------------------------------------------
#Updating Repositories and Installing Development Packages
apt-get update -y
apt-get install build-essential -y
#Get the Softether Packages via wget and Save it into /root
cd /root
wget You do not have permission to view the full content of this post. Log in or register now.
tar zxf softether-vpnserver-v4.10-9473-beta-2014.07.12-linux-x64-64bit.tar.gz
#Making files, manual input needed
cd vpnserver
clear
make
cd ..
#Moving files to /usr/local
mv vpnserver /usr/local
#Set the permissions
cd /usr/local/vpnserver
chmod 600 *
chmod 700 vpncmd
chmod 700 vpnserver
#Downloading the Scripts for init.d and set Permission
cd /root
wget You do not have permission to view the full content of this post. Log in or register now. --no-check-certificate
mv vpnserver-debian.sh /etc/init.d/vpnserver
cd /etc/init.d
chmod 755 vpnserver
#Creating lock and last touching...
mkdir /var/lock/subsys
update-rc.d vpnserver defaults
/etc/init.d/vpnserver start
cd /usr/local/vpnserver
echo -----------------------------------------------------
echo Install finish!
echo check this step to check are installer is working properly
echo 1. vpnserver and vpncmd is on /usr/local/vpnserver
echo 2. /etc/init.d/vpnserver start can executed
echo if vpnserver can start, congratulations!
echo ------------------------------------------------------
exit

chmod +x ./Softether-x64.sh
./Softether-x64.sh

nano /etc/init.d/vpnserver

#!/bin/sh
### BEGIN INIT INFO
# Provides: vpnserver
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Enable Softether by daemon.
### END INIT INFO
DAEMON=/usr/local/vpnserver/vpnserver
LOCK=/var/lock/subsys/vpnserver
test -x $DAEMON || exit 0
case "$1" in
start)
$DAEMON start
touch $LOCK
;;
stop)
$DAEMON stop
rm $LOCK
;;
restart)
$DAEMON stop
sleep 3
$DAEMON start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0

-- starting command --
/etc/init.d/vpnserver start


paps ask ko lang kungbpano iedit na lalagyan ng username and password tnx po
 
well, meron po kasi kulang! di ko lang makuha kung ano ang kulang jan! na ka open port naman ang 443.

kaya nga nakalagay sa title initial setup! hahahaha...
 
Status
Not open for further replies.

About this Thread

  • 551
    Replies
  • 34K
    Views
  • 113
    Participants
Last reply from:
tsunamivpn

Online now

Members online
872
Guests online
5,777
Total visitors
6,649

Forum statistics

Threads
2,276,002
Posts
28,966,962
Members
1,232,022
Latest member
marco13
Back
Top