Skip to content
Snippets Groups Projects
Verified Commit 1b48d3b1 authored by Zhang Huanjie's avatar Zhang Huanjie
Browse files

Merge branch 'master' of github.com:bg6cq/vpnsetup

parents 1945aaa3 2bf66834
No related branches found
No related tags found
No related merge requests found
# CentOS-Vault.repo
#
# CentOS Vault holds packages from previous releases within the same CentOS Version
# these are packages obsoleted by the current release and should usually not
# be used in production
#-----------------
[C6.10-base]
name=CentOS-6.10 - Base
baseurl=http://mirrors.ustc.edu.cn/centos-vault/6.10/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=1
[C6.10-updates]
name=CentOS-6.10 - Updates
baseurl=http://mirrors.ustc.edu.cn/centos-vault/6.10/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=1
[C6.10-extras]
name=CentOS-6.10 - Extras
baseurl=http://mirrors.ustc.edu.cn/centos-vault/6.10/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=1
[C6.10-contrib]
name=CentOS-6.10 - Contrib
baseurl=http://mirrors.ustc.edu.cn/centos-vault/6.10/contrib/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=1
[C6.10-centosplus]
name=CentOS-6.10 - CentOSPlus
baseurl=http://mirrors.ustc.edu.cn/centos-vault/6.10/centosplus/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=1
......@@ -4,11 +4,13 @@
#install packages
cd /etc/yum.repos.d
mv CentOS-Base.repo CentOS-Base.repo.save
curl http://ctos.ustc.edu.cn/CentOS-Base.repo.6 > CentOS-Base.repo
curl http://ctos.ustc.edu.cn/epel.repo.6 > epel.repo
cd /etc/pki/rpm-gpg/
curl http://ctos.ustc.edu.cn/epel/RPM-GPG-KEY-EPEL-6 > RPM-GPG-KEY-EPEL
mv CentOS-Vault.repo CentOS-Valut.repo.save
curl http://ip.ustc.edu.cn/CentOS-Valut.repo.6 > CentOS-Vault.repo
#curl http://ctos.ustc.edu.cn/epel.repo.6 > epel.repo
#cd /etc/pki/rpm-gpg/
#curl http://mirrors.ustc.edu.cn/epel/RPM-GPG-KEY-EPEL-6 > RPM-GPG-KEY-EPEL
yum update -y
yum install -y gcc git lz4-devel openssl-devel dialog tcpdump ntpdate libpcap-devel
yum install -y telnet bind-utils traceroute gd-devel httpd
......@@ -18,9 +20,6 @@ chkconfig httpd on
#change network setting
sed -i -e "s/dhcp/static/" /etc/sysconfig/network-scripts/ifcfg-eth0
#change logrotate.conf
sed -i -e "s/rotate 4/rotate 40/" /etc/logrotate.conf
#install ethudp
cd /usr/src
git clone https://github.com/bg6cq/ethudp.git
......@@ -50,10 +49,12 @@ else
echo "setenforce 0" >> /etc/rc.local
fi
ln -s /usr/src/vpnsetup/vpnsetup.sh /bin/vpnsetup
/bin/cp -f iptables /etc/sysconfig
pwd
cat /sys/class/net/eth0/address | tr 'a-f' 'A-F'|tr -d ':' > /etc/ethudp/SITE/SN
crontab crontab.txt
mkdir /root/.ssh
......@@ -72,3 +73,8 @@ cd /usr/src/vpnsetup
git remote add local ssh://root@202.141.160.125:22222/git/vpnsetup.git
#git checkout -b
#vi /etc/ethudp/SITE/INDEX
/usr/src/vpnsetup/vpnrestart.sh
ip link show dev eth0
sync
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment