PPTP VPN Server and local network

I have PPTP Server running on my OpenWrt router (v18.06.1). Finally, I have PPTP access from a cellular network to an internal network, but the subnet mask is (instead of so I can not access internal resources. And no, I can’t user OpenVPN or any other VPN because PPTP is the only supporter in my device.

Here is what I have done so far:

Install latest OpenWrt image
Install luci, pptpd, kmod-mppe, and kmod-nf-nathelper-extra

opkg update
opkg install luci pptpd kmod-mppe kmod-nf-nathelper-extra


config service 'pptpd'
        option 'enabled' '1'
        option 'localip' ''
        option 'remoteip' ''

config 'login'
        option 'username' mydevice'
        option 'password' 'devicepassword'


config rule
        option target 'ACCEPT'
        option _name 'pptp'
        option src 'wan'
        option proto 'tcp'
        option dest_port '1723'

config rule
        option target 'ACCEPT'
        option _name 'gre'
        option src 'wan'
        option proto '47'


# Allow all traffic in and out of the ppp interface. No reason to specify nets.
iptables -A input_rule -i ppp+ -j ACCEPT
iptables -A output_rule -o ppp+ -j ACCEPT
# This rule will allow traffic towards internet
iptables -A forwarding_rule -i ppp+ -j ACCEPT
iptables -A forwarding_rule -o ppp+ -j ACCEPT

This all is enough to make PPTP Server/connection working but how I got subnet instead of

Might be worth double-checking your configuration against https://openwrt.org/docs/guide-user/services/vpn/server.pptpd#configuration.

Hello @Turo...

Have you checked the "network" file, locate in /etc/config/network?
In my file, the configuration of netmask exists...



My OpenWrt router is connected to lan only and is an extra router on my network.

My windows PPTP VPN Server gives out netmask and everything is fine with that so I don't think this is your issue?

But I'm having an issue where even though my clients connect to OpenWrt PPTP succesfully they can't ping local.

Did you ever have some solution?