I have been attempting to, giving up, and reattempting to configure PPTP tunnels between my various locations with no success for months.
Following:
http://nuwiki.openwrt.org/oldwiki/PPTPDHowto
Leads me nowhere as the doc is outdated.
Searching for 'pptpd' shows lots of people with questions and problems, yet no answers.
Here are the steps I have taken:
1. Installed pptpd, kmod-crypto-core, kmod-mppe, kmod-ipt-nathelper.
2. /etc/pptpd.conf
debug
option /etc/ppp/options.pptpd
speed 115200
stimeout 10
#localip & remoteip are not needed, ip management is done by pppd
3. /etc/ppp/chap-secrets
#USERNAME PROVIDER PASSWORD IPADDRESS
user pptpd pass *
4. /etc/ppp/options.pptpd
debug
logfile /tmp/pptp-server.log
172.16.1.1:
auth
name "pptpd"
lcp-echo-failure 3
lcp-echo-interval 60
default-asyncmap
mtu 1482
mru 1482
nobsdcomp
nodeflate
#noproxyarp
#nomppc
mppe required,no40,no56,stateless
require-mschap-v2
refuse-chap
refuse-mschap
refuse-eap
refuse-pap
#ms-dns 172.16.1.1
#plugin radius.so
#radius-config-file /etc/radius.conf
5. /etc/init.d/pptpd enable && /etc/init.d/pptpd start
6. /usr/sbin/iptables -A INPUT -i eth0 -p 47 -j ACCEPT && /usr/sbin/iptables -A INPUT -i eth0 -p tcp --dport 1723 -j ACCEPT
7. No log appears in /tmp.
Current Status:
-----------------
Configs updated. I had to use LUCI to open up WAN to incoming connections. Not sure how to do this using iptables. Step #6 didnt do the trick. Also:
iptables -t nat -A prerouting_rule -i $WAN -p tcp --dport 1723 -j ACCEPT
iptables -A input_rule -i $WAN -p tcp --dport 1723 -j ACCEPT
iptables -A output_rule -p 47 -j ACCEPT
iptables -A input_rule -p 47 -j ACCEPT
From the howto doesn't help, as this is meant for firewall.user of WhiteRussian. $WAN is not defined in Kamikaze. Even after opening up WAN to incoming connections, when I try to connect remotely, the connection appears to start initialization, however, it disconnects the PPTPD router completely. Perhaps it is because the PPTPD router is running PPP and PPPoE to connect to the net.
------------------
Yes, sure, I'm probably doing 100 things wrong. However, I'm just going by the one, completely outdated document available for PPTPD and what others have done.
I think the whole community would appreciate it if someone updates the PPTPD HowTo, or post a working configuration with steps documented.
(Last edited by rainkid on 7 Jan 2010, 23:20)