Hi Folsk,
I want to run a PPTP VPN Server. I choose PopTop (since it seems simple to me), I've already tried MPD5 too. But with
MPD5 I've got 800 error.
Now when I connect to my FreeBSD BoX using a Windows VPN client I've got this:
And I've got 619 error on client side.
I'm already googling for days and found so many solutions for
But none of 'em works for me.
Also
I think there's something wrong with my configuration (since I've lack of knowledge in Network related stuffs).
Here's my configuration:
** I'm not running any firewall.
As you can see 91.194.91.7 is my only private IP that is in use with my LAN.
/usr/local/etc/pptpd.conf
I've tried both 192.168.1.1 and 91.194.91.7.
/etc/ppp/options.pptpd
/etc/ppp/chap-secrets
/etc/rc.conf
I've done everything possible but still cannot connect to my FreeBSD VPS.
Do I must use nat/dhcp?? (If its, how?)
I am wrong about local and remote IP addresses or dnses? (how to assign IP ranges ro DNS)
Is there anything else that I forget to mention?
Any help would be appreciated.
I want to run a PPTP VPN Server. I choose PopTop (since it seems simple to me), I've already tried MPD5 too. But with
MPD5 I've got 800 error.
Now when I connect to my FreeBSD BoX using a Windows VPN client I've got this:
Code:
3rr0r# tail -f /var/log/messages
Jun 22 18:29:05 3rr0r ppp[28526]: Warning: Label /usr/local/etc/ppp/options.pptpd rejected
-direct connection: Configuration label not found
Jun 22 18:29:05 3rr0r pptpd[28525]: GRE: read(fd=7,buffer=80589c0,len=8196) from PTY
failed: status = 0 error = No error
Jun 22 18:29:05 3rr0r pptpd[28525]: CTRL: PTY read or GRE write failed (pty,gre)=(7,6)
3rr0r# tail -f /var/log/ppp.log
Jun 22 18:29:05 3rr0r ppp[28526]: Warning: Label /usr/local/etc/ppp/options.pptpd rejected
-direct connection: Configuration label not found
And I've got 619 error on client side.
I'm already googling for days and found so many solutions for
Code:
Warning: Label /usr/local/etc/ppp/options.pptpd rejected -direct connection: Configuration label not found
But none of 'em works for me.
Also
Code:
[url=http://poptop.sourceforge.net/dox/qna.html#23]http://poptop.sourceforge.net/dox/qna.html#23[/URL]
Q. GRE: read(fd=5,buffer=804d720,len=8196) from PTY failed: status = -1 error =
Input/output error
A. The log will display something like this:
Jun 22 21:48:35 linuxbox pptpd[1900]: GRE: read(fd=5,buffer=804d720,len=8196) from PTY
failed: status = -1 error = Input/output error
Jun 22 21:48:35 linuxbox pptpd[1900]: CTRL: PTY read or GRE write failed (pty,gre)=(5,6)
An EIO on read from the PTY is caused when pppd has failed and closed the PTY. pppd failed
for some reason. pptpd does not report why pppd failed. pptpd not reporting why pppd failed is a
bug, but it is not yet fixed.
You should look at why pppd failed, which is most likely your fault, not a bug. pppd fails
when it does not understand the options you entered, or when it could not negotiate with the peer.
Running pppd manually against your options.pptpd file would find bad options. Adding "debug dump"
to options.pptpd file will capture cause of negotiation failure.
I think there's something wrong with my configuration (since I've lack of knowledge in Network related stuffs).
Here's my configuration:
** I'm not running any firewall.
Code:
3rr0r# ifconfig
le0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 00:0c:29:89:4d:ad
inet 91.194.91.7 netmask 0xffffff00 broadcast 91.194.91.255
media: Ethernet autoselect
status: active
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> metric 0 mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
As you can see 91.194.91.7 is my only private IP that is in use with my LAN.
/usr/local/etc/pptpd.conf
Code:
option /etc/ppp/options.pptpd
noipparam
logwtmp
#localip 192.168.1.1
#remoteip 192.168.1.234-238,192.168.1.245
localip 91.194.91.7
remoteip 91.194.91.10-20
I've tried both 192.168.1.1 and 91.194.91.7.
/etc/ppp/options.pptpd
Code:
name pptpd
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
ms-dns 8.8.4.4
ms-dns 8.8.8.8
proxyarp
debug
dump
lock
novj
novjccomp
nologfd
/etc/ppp/chap-secrets
Code:
# client server secret IP addresses
myUsername * myPassword *
/etc/rc.conf
Code:
gateway_enable="YES"
arpproxy_all="YES"
pptpd_enable="YES"
I've done everything possible but still cannot connect to my FreeBSD VPS.
Do I must use nat/dhcp?? (If its, how?)
I am wrong about local and remote IP addresses or dnses? (how to assign IP ranges ro DNS)
Is there anything else that I forget to mention?
Any help would be appreciated.