create_ap

create a nat-ed wifi ap
git clone git://git.2f30.org/create_ap.git
Log | Files | Refs | LICENSE

commit 4d654b76a1f686a70276206de059f7e8ba187f4a
parent 56b155304c2ce9c41e7278d94c791d64ef94dd6a
Author: oblique <psyberbits@gmail.com>
Date:   Wed Apr  1 23:46:24 +0300

Load nf_nat_pptp module if it exists

This will enable clients to establish PPTP connections.

Diffstat:
create_ap | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git 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