mirror of
https://github.com/teddysun/across.git
synced 2025-01-18 13:59:35 +08:00
update pptpd version
Signed-off-by: Teddysun <i@teddysun.com>
This commit is contained in:
parent
2f9e5adf13
commit
3a77f4ce4e
18
pptp.sh
18
pptp.sh
@ -38,19 +38,19 @@ arch=`uname -m`
|
|||||||
IP=`ip addr | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | egrep -v "^192\.168|^172\.1[6-9]\.|^172\.2[0-9]\.|^172\.3[0-2]\.|^10\.|^127\.|^255\." | head -n 1`
|
IP=`ip addr | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | egrep -v "^192\.168|^172\.1[6-9]\.|^172\.2[0-9]\.|^172\.3[0-2]\.|^10\.|^127\.|^255\." | head -n 1`
|
||||||
|
|
||||||
# Download pptpd
|
# Download pptpd
|
||||||
if [ -s pptpd-1.3.4-2.el6.$arch.rpm ]; then
|
if [ -s pptpd-1.4.0-3.el6.$arch.rpm ]; then
|
||||||
echo "pptpd-1.3.4-2.el6.$arch.rpm [found]"
|
echo "pptpd-1.4.0-3.el6.$arch.rpm [found]"
|
||||||
else
|
else
|
||||||
echo "pptpd-1.3.4-2.el6.$arch.rpm not found!!!download now......"
|
echo "pptpd-1.4.0-3.el6.$arch.rpm not found! download now......"
|
||||||
if ! wget http://lamp.teddysun.com/files/pptpd-1.3.4-2.el6.$arch.rpm;then
|
if ! wget http://lamp.teddysun.com/files/pptpd-1.4.0-3.el6.$arch.rpm; then
|
||||||
echo "Failed to download pptpd-1.3.4-2.el6.$arch.rpm,please download it to $cur_dir directory manually and retry."
|
echo "Failed to download pptpd-1.4.0-3.el6.$arch.rpm, please download it to $cur_dir directory manually and retry."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Install some necessary tools
|
# Install some necessary tools
|
||||||
yum -y install net-tools make libpcap iptables gcc-c++ logrotate tar cpio perl pam tcp_wrappers dkms ppp
|
yum -y install net-tools make libpcap iptables gcc-c++ logrotate tar cpio perl pam tcp_wrappers dkms ppp
|
||||||
rpm -ivh pptpd-1.3.4-2.el6.$arch.rpm
|
rpm -ivh pptpd-1.4.0-3.el6.$arch.rpm
|
||||||
|
|
||||||
rm -f /dev/ppp
|
rm -f /dev/ppp
|
||||||
mknod /dev/ppp c 108 0
|
mknod /dev/ppp c 108 0
|
||||||
@ -77,12 +77,12 @@ chkconfig pptpd on
|
|||||||
service iptables restart
|
service iptables restart
|
||||||
service pptpd start
|
service pptpd start
|
||||||
|
|
||||||
echo ""
|
echo
|
||||||
echo "PPTP VPN service is installed."
|
echo "PPTP VPN service is installed."
|
||||||
echo "ServerIP:${IP}"
|
echo "ServerIP:${IP}"
|
||||||
echo "Username:vpn"
|
echo "Username:vpn"
|
||||||
echo "Password:${pass}"
|
echo "Password:${pass}"
|
||||||
echo "Welcome to visit: http://teddysun.com/134.html"
|
echo "Welcome to visit: https://teddysun.com/134.html"
|
||||||
echo ""
|
echo
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user