The remote computer refused the network connection. phrase has been my arch enemy for the past week now
I recently "bought" a VPS server, I gave up trying to configure it with OpenVPN, all the issues were making me lose my mind, so I tried the easier way with pptp, but i figure, both are leading to a dead end...
I followed this post (many others too but this is the unlucky one), http://blog.secaserver.com/2011/10/install-vpn-pptp-server-centos-6/ and it all goes well with the setup, however, I run into this error when connecting to the VPN in Windows 7
here is a pic of the error: Image
So I do not know what I have done wrong...
When connecting,
Code: Select all
netstat -apn | grep -w 1723
before connecting:
netstat -apn |grep -w 1723
tcp 0 0 0.0.0.0:1723 0.0.0.0:* LISTEN 1137/pptpd
after the error came I tried again:
netstat -apn |grep -w 1723
tcp 0 0 0.0.0.0:1723 0.0.0.0:* LISTEN 1137/pptpd
tcp 0 0 41.185.26.238:1723 41.13.212.47:49607 TIME_WAIT -
iptables:
# Generated by iptables-save v1.4.7 on Fri Nov 1 18:14:53 2013
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [63:8868]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i eth0 -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 1723 -j ACCEPT
-A INPUT -i eth0 -p gre -j ACCEPT
-A FORWARD -i ppp+ -o eth0 -j ACCEPT
-A FORWARD -i eth0 -o ppp+ -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
# Completed on Fri Nov 1 18:14:53 2013
# Generated by iptables-save v1.4.7 on Fri Nov 1 18:14:53 2013
*nat
: PREROUTING ACCEPT [96:12732]
: POSTROUTING ACCEPT [0:0]
: OUTPUT ACCEPT [31:2179]
-A POSTROUTING -o eth0 -j MASQUERADE
COMMIT
# Completed on Fri Nov 1 18:14:53 2013
options.pptpd
the only changes was the require-mppe
# BSD licensed ppp-2.4.2 upstream with MPPE only, kernel module ppp_mppe.o
# {{{
refuse-pap
refuse-chap
refuse-mschap
# Require the peer to authenticate itself using MS-CHAPv2 [Microsoft
# Challenge Handshake Authentication Protocol, Version 2] authentication.
require-mschap-v2
require-mppe
# Require MPPE 128-bit encryption
# (note that MPPE requires the use of MSCHAP-V2 during authentication)
require-mppe-128
# }}}
I check the iptables, everything is normal, all INPUTs, etc are before rejects, username and password I also checked in chap-secrets file, I am really puzzled...