25
Янв

Установка SoftEther на Centos 6.5

В прошлой статье мы рассмотрели установку и настройку SoftEther на Ubuntu или Debian

Купить виртуалку под VPN можно тут

Ниже способ поставить SoftEther на Centos
[bash title=»код»]yum -y groupinstall «Development Tools»
yum install gcc zlib-devel openssl-devel readline-devel ncurses-devel
yum install system-config-network-tui system-config-firewall-tui[/bash]
Обновляем значение SELINUX на permissive
[bash title=»код»]nano /etc/selinux/config
SELINUX=permissive[/bash]
[bash title=»код»]setenforce 0[/bash]
[bash title=»код»]service iptables save
service iptables stop
chkconfig iptables off[/bash]
или
[bash title=»код»]system-config-firewall-tui[/bash]
[bash title=»код»]cd /tmp/
wget https://www.softether-download.com/files/softether/v4.12-9514-beta-2014.11.17-tree/Linux/SoftEther_VPN_Server/64bit_-_Intel_x64_or_AMD64/softether-vpnserver-v4.12-9514-beta-2014.11.17-linux-x64-64bit.tar.gz
tar xzvf softether-vpnserver-v4.12-9514-beta-2014.11.17-linux-x64-64bit.tar.gz -C /usr/local/
chmod -R 744 /usr/local/vpnserver
cd /usr/local/vpnserver
make[/bash]
[bash title=»код»]Запускаем
./vpnserver start[/bash]
[bash title=»код»]Создаём стартовый скрпит
nano /etc/init.d/vpnserver[/bash]
[bash title=»код»]#!/bin/sh
# chkconfig: 2345 99 01
# description: SoftEther VPN Server 4.10
DAEMON=/usr/local/vpnserver/vpnserver
LOCK=/var/lock/subsys/vpnserver
TAP_ADDR=192.168.7.1

test -x $DAEMON || exit 0
case «$1» in
start)
$DAEMON start
touch $LOCK
sleep 1
/sbin/ifconfig tap_soft $TAP_ADDR
;;
stop)
$DAEMON stop
rm $LOCK
;;
restart)
$DAEMON stop
sleep 3
$DAEMON start
sleep 1
/sbin/ifconfig tap_soft $TAP_ADDR
;;
*)
echo «Usage: $0 {start|stop|restart}»
exit 1
esac
exit 0
[/bash]
[bash title=»код»]Добавляем в автозапуск
chkconfig vpnserver on[/bash]
[bash title=»код»]Перегружаем сервер
service vpnserver restart[/bash]
Дальнейшая настройка по аналогии со статьёй

yum install dnsmasq

nano /etc/sysctl.conf

/sbin/sysctl -w net.ipv4.ip_forward=1

Обратная связь

    The average number of adverse effects was 3. T max is 23 minutes in females and 32 minutes in males. What other drugs will affect doxercalciferol Viagra natural sin receta. Archived from the original on 2009-08-14.

    Talk to your doctor before using this form of cefadroxil if you have diabetes. What should I tell my healthcare team before starting CABLIVI? There is no FDA guidance on the use of Tetracycline (oral) with respect to specific gender populations https://www.apotheke-rezeptfreie.com/. Opper K, Uder S, Song K Development of Heterogeneous and Homogeneous Platforms for Rapid Analysis of DNA-Protein Interactions.

    Contact Us