|
|
|
|
123
|
VPN_TLS_PORT=$tlsport
|
123
|
VPN_TLS_PORT=$tlsport
|
124
|
write_config_param "VPN_TLS_PORT" "$VPN_TLS_PORT"
|
124
|
write_config_param "VPN_TLS_PORT" "$VPN_TLS_PORT"
|
125
|
sed -i "s|accept =.*|accept = $VPN_TLS_PORT|g" /etc/stunnel/stunnel.conf
|
125
|
sed -i "s|accept =.*|accept = $VPN_TLS_PORT|g" /etc/stunnel/stunnel.conf
|
126
|
- sed -i "s|accept =.*|accept = $VPN_TLS_PORT|g" /etc/stunnel/stunnel-client.conf
|
|
|
|
|
126
|
+ sed -i "s|connect =.*|connect = :$VPN_TLS_PORT|g" /etc/stunnel/stunnel-client.conf
|
127
|
|
127
|
|
128
|
for d in /home/*/ ; do
|
128
|
for d in /home/*/ ; do
|
129
|
USERNAME=$(echo "$d" | awk -F '/' '{print $3}')
|
129
|
USERNAME=$(echo "$d" | awk -F '/' '{print $3}')
|