I have to connect remotely from client on CentOS
to VPN
server, hosted on Windows
.
What have been done:
Installed packages yum install ppp pptp
Contents of /etc/ppp/peers/harkiv_vpn
# pty "pptp xxx.xxx.xxx.xxx --nolaunchpppd" # using IP address pty "pptp vpn.campus.harkiv.ua --nolaunchpppd" lock noauth nobsdcomp nodeflate nodefaultroute usepeerdns name user_name remotename harkiv_vpn ipparam harkiv_vpn refuse-pap refuse-eap refuse-chap refuse-mschap require-mppe nomppe-stateful
Contents of /etc/ppp/chap-secrets
# Secrets for authentication using CHAP # client server secret IP addresses user_name harkiv_vpn "user_password_in_dblquotes" *
Created script start_vpn1.sh
systemctl stop firewalld # stop the firewall pppd call harkiv_vpn # start VPN connection # pppd call megarvpn debug nodetach # for starting VPN manually
Created script stop_vpn.sh
pkill pptp # stop VPN connection systemctl start firewalld # start the firewall systemctl restart network # restarting service recreates the file resolv.conf
After all that vpn
connection starts, but I still can't access remote resources. What have I missed?