summaryrefslogtreecommitdiff
path: root/ap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ap.sh')
-rwxr-xr-xap.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/ap.sh b/ap.sh
new file mode 100755
index 0000000..891d491
--- /dev/null
+++ b/ap.sh
@@ -0,0 +1,5 @@
+#!/usr/bin/bash
+GATEWAY=192.168.0.1
+
+iptables -t nat -A PREROUTING -s 192.168.0.0/255.255.255.0 -p tcp -j DNAT --to-destination $GATEWAY
+./create_ap -n -g $GATEWAY wlp2s0 Internet