Hi
I want to run pptp server on my openbsd.
But when I connect from Windows 10, it does not connect and hangs.
Error code from windows connection is 807.
I start nppd service from console for better trace and output is :
Code:
root# npppd -d
2022-09-30 03:04:34:NOTICE: Starting npppd pid=47651 version=5.0.0
2022-09-30 03:04:34:NOTICE: Load configuration
from='/etc/npppd/npppd.conf' successfully.
2022-09-30 03:04:34:INFO: pppx0 Started pppx
2022-09-30 03:04:34:INFO: ipcp=PPTP pool dyn_pool=[192.0.2.0/24]
pool=[192.0.2.0/24]
2022-09-30 03:04:34:INFO: Loading pool config successfully.
2022-09-30 03:04:34:INFO: pptpd Listening _OPNEBSD_IP:1723/tcp (PPTP
PAC) [PPTP]
2022-09-30 03:04:34:INFO: pptpd Listening _OPNEBSD_IP:gre (PPTP PAC)
2022-09-30 03:04:34:DEBUG: accept_add: accepting on fd 7
2022-09-30 03:04:37:INFO: pptpd ctrl=0 Starting
peer=_WINDOWS_IP_:12890/tcp sock=_OPNEBSD_IP:1723/tcp
2022-09-30 21:22:39:ERR: pptpd ctrl=0 Timeout in state idle
2022-09-30 21:22:39:NOTICE: pptpd ctrl=0 logtype=Finished
I use this config :
Code:
root# echo 'net.pipex.enable=1' >> /etc/sysctl.conf
root# echo 'net.inet.gre.allow=1' >> /etc/sysctl.conf
root# echo 'net.inet.gre.wccp=1' >> /etc/sysctl.conf
root# vi /etc/npppd/npppd.conf
# GLOBAL
set max-session 15
set user-max-session 1
# TUNNEL
tunnel PPTP protocol pptp {
listen on _IP_
pptp-vendor-name "npppd"
mppe required
mppe-key-length 128
mppe-key-state stateless
idle-timeout 3600
}
# IPCP
ipcp PPTP {
pool-address "192.0.2.0/24"
dns-servers 8.8.8.8 8.8.4.4
allow-user-selected-address no
}
# INTERFACE
interface pppx0 address 192.0.2.1 ipcp PPTP
# AUTHENTICATION
authentication LOCAL type local {
users-file "/etc/npppd/npppd-users"
}
bind tunnel from PPTP authenticated by LOCAL to pppx0
root# echo "_USERNAME_:password=_PASSWORD_:" > /etc/npppd/npppd-users
root# rcctl enable npppd
root# reboot
where is the problem?