From 4d654b76a1f686a70276206de059f7e8ba187f4a Mon Sep 17 00:00:00 2001 From: oblique Date: Wed, 1 Apr 2015 23:46:24 +0300 Subject: [PATCH] Load nf_nat_pptp module if it exists This will enable clients to establish PPTP connections. --- create_ap | 3 +++ 1 file changed, 3 insertions(+) diff --git a/create_ap b/create_ap index ff46cf5..31ecdb8 100755 --- a/create_ap +++ b/create_ap @@ -1083,6 +1083,9 @@ if [[ "$SHARE_METHOD" != "none" ]]; then iptables -I FORWARD -i ${WIFI_IFACE} -s ${GATEWAY%.*}.0/24 -j ACCEPT || die iptables -I FORWARD -i ${INTERNET_IFACE} -d ${GATEWAY%.*}.0/24 -j ACCEPT || die echo 1 > /proc/sys/net/ipv4/ip_forward || die + # to enable clients to establish PPTP connections we must + # load nf_nat_pptp module + modprobe nf_nat_pptp > /dev/null 2>&1 elif [[ "$SHARE_METHOD" == "bridge" ]]; then # disable iptables rules for bridged interfaces if [[ -e /proc/sys/net/bridge/bridge-nf-call-iptables ]]; then