现场编译ppp2.4.9源码, 现场安装.
This commit is contained in:
@@ -7,7 +7,7 @@ wannat_global:
|
|||||||
redis_index: 0
|
redis_index: 0
|
||||||
bifang_db_server_ip: "192.168.xx.yy"
|
bifang_db_server_ip: "192.168.xx.yy"
|
||||||
bifang_db_username: "root"
|
bifang_db_username: "root"
|
||||||
bifang_db_password: "bifang!@#"
|
bifang_db_password: "xxgceBifang!@#"
|
||||||
bifang_radius_db_name: "tsg-bifang"
|
bifang_radius_db_name: "tsg-bifang"
|
||||||
vpn_client_ip_cidr: "10.10.120.0/24"
|
vpn_client_ip_cidr: "10.10.120.0/24"
|
||||||
vpn_client_ip_mask: "10.10.120.0 255.255.255.0"
|
vpn_client_ip_mask: "10.10.120.0 255.255.255.0"
|
||||||
@@ -34,6 +34,11 @@ wannat_global:
|
|||||||
max_item_number: 100000
|
max_item_number: 100000
|
||||||
lru_timeout: 60
|
lru_timeout: 60
|
||||||
|
|
||||||
|
pptp:
|
||||||
|
dns1: 8.8.8.8
|
||||||
|
dns2: 114.114.114.114
|
||||||
|
mtu: 2000
|
||||||
|
|
||||||
openvpn:
|
openvpn:
|
||||||
mtu: 1400
|
mtu: 1400
|
||||||
mss: 1360
|
mss: 1360
|
||||||
|
|||||||
@@ -5,13 +5,19 @@
|
|||||||
dest: "/tmp/"
|
dest: "/tmp/"
|
||||||
|
|
||||||
|
|
||||||
|
#- name: "install natgw"
|
||||||
|
# yum:
|
||||||
|
# name: "{{ packages }}"
|
||||||
|
# state: present
|
||||||
|
# vars:
|
||||||
|
# packages:
|
||||||
|
# - /tmp/{{ wannat_global.rpm_files.natgw_rpm_file }}
|
||||||
|
|
||||||
- name: "install natgw"
|
- name: "install natgw"
|
||||||
yum:
|
shell: rpm --nodeps --force -i /tmp/{{ wannat_global.rpm_files.natgw_rpm_file }}
|
||||||
name: "{{ packages }}"
|
args:
|
||||||
state: present
|
warn: false
|
||||||
vars:
|
|
||||||
packages:
|
|
||||||
- /tmp/{{ wannat_global.rpm_files.natgw_rpm_file }}
|
|
||||||
|
|
||||||
- name: "Creates /opt/tsg/wannat/natgw directory"
|
- name: "Creates /opt/tsg/wannat/natgw directory"
|
||||||
file:
|
file:
|
||||||
|
|||||||
Binary file not shown.
BIN
roles/pppd_update_v2.4.9/files/ppp-2.4.9_disable_INET6.tgz
Normal file
BIN
roles/pppd_update_v2.4.9/files/ppp-2.4.9_disable_INET6.tgz
Normal file
Binary file not shown.
@@ -4,21 +4,23 @@
|
|||||||
path: /opt/tsg/framework/ppp2.4.9
|
path: /opt/tsg/framework/ppp2.4.9
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
- name: "copy pppd2.4.9 to destination server"
|
- name: "copy pppd2.4.9.tgz to destination server"
|
||||||
copy:
|
copy:
|
||||||
src: "{{ role_path }}/files/pppd"
|
src: "{{ role_path }}/files/ppp-2.4.9_disable_INET6.tgz"
|
||||||
dest: "/opt/tsg/framework/ppp2.4.9"
|
dest: "/tmp/"
|
||||||
mode: 0755
|
|
||||||
|
|
||||||
- name: "copy radattr.so to destination server"
|
- name: "install pppd2.4.9"
|
||||||
copy:
|
shell:
|
||||||
src: "{{ role_path }}/files/radattr.so"
|
cd /tmp/;
|
||||||
dest: "/opt/tsg/framework/ppp2.4.9"
|
tar -zxf ppp-2.4.9_disable_INET6.tgz;
|
||||||
|
cd ppp-2.4.9_disable_INET6;
|
||||||
|
./configure;
|
||||||
|
./disable_HAVE_INET6.sh;
|
||||||
|
make;
|
||||||
|
make install
|
||||||
|
args:
|
||||||
|
warn: false
|
||||||
|
|
||||||
- name: "copy radius.so to destination server"
|
|
||||||
copy:
|
|
||||||
src: "{{ role_path }}/files/radius.so"
|
|
||||||
dest: "/opt/tsg/framework/ppp2.4.9"
|
|
||||||
|
|
||||||
- name: "Template the pptpd.conf file"
|
- name: "Template the pptpd.conf file"
|
||||||
template:
|
template:
|
||||||
|
|||||||
@@ -130,6 +130,6 @@ nologfd
|
|||||||
|
|
||||||
mtu {{wannat_global.pptp.mtu}}
|
mtu {{wannat_global.pptp.mtu}}
|
||||||
|
|
||||||
plugin /opt/tsg/framework/ppp2.4.9/radius.so
|
plugin /usr/local/lib/pppd/2.4.9/radius.so
|
||||||
plugin /opt/tsg/framework/ppp2.4.9/radattr.so
|
plugin /usr/local/lib/pppd/2.4.9/radattr.so
|
||||||
radius-config-file /etc/radiusclient-ng/radiusclient.conf
|
radius-config-file /etc/radiusclient-ng/radiusclient.conf
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
# TAG: ppp
|
# TAG: ppp
|
||||||
# Path to the pppd program, default '/usr/sbin/pppd' on Linux
|
# Path to the pppd program, default '/usr/sbin/pppd' on Linux
|
||||||
#
|
#
|
||||||
ppp /opt/tsg/framework/ppp2.4.9
|
|
||||||
|
|
||||||
# TAG: option
|
# TAG: option
|
||||||
# Specifies the location of the PPP options file.
|
# Specifies the location of the PPP options file.
|
||||||
@@ -106,4 +105,4 @@ option /etc/ppp/options.pptpd
|
|||||||
#remoteip 192.168.1.234-238,192.168.1.245
|
#remoteip 192.168.1.234-238,192.168.1.245
|
||||||
|
|
||||||
localip 10.10.120.1
|
localip 10.10.120.1
|
||||||
remoteip 10.10.120.200-254
|
remoteip 10.10.120.2-254
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
dest: "/tmp/"
|
dest: "/tmp/"
|
||||||
|
|
||||||
- name: "install nanomsg"
|
- name: "install nanomsg"
|
||||||
shell: rpm -i /tmp/nanomsg-1.1.5-6.el7.x86_64.rpm
|
shell: rpm --force -i /tmp/nanomsg-1.1.5-6.el7.x86_64.rpm
|
||||||
args:
|
args:
|
||||||
warn: false
|
warn: false
|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,17 @@
|
|||||||
name: "wannat_natgw"
|
name: "wannat_natgw"
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
|
- hosts: natgw
|
||||||
|
tasks:
|
||||||
|
- name: "uninstall wannat_common"
|
||||||
|
yum:
|
||||||
|
name: "libwannat_common"
|
||||||
|
state: absent
|
||||||
|
- name: "uninstall nanomsg"
|
||||||
|
yum:
|
||||||
|
name: "nanomsg"
|
||||||
|
state: absent
|
||||||
|
|
||||||
- hosts: radius_server
|
- hosts: radius_server
|
||||||
tasks:
|
tasks:
|
||||||
- name: "stop radiusd service"
|
- name: "stop radiusd service"
|
||||||
|
|||||||
Reference in New Issue
Block a user