summaryrefslogtreecommitdiff
path: root/ap.sh
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2015-04-01 14:30:35 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2015-04-01 14:30:35 +0200
commita3488904a292dbd22ee474a205d854b46e15e53d (patch)
tree9e252470b009d31dc80c4492d3a60a86486f4385 /ap.sh
downloadnowlan-a3488904a292dbd22ee474a205d854b46e15e53d.tar.gz
nowlan-a3488904a292dbd22ee474a205d854b46e15e53d.zip
erster Commit
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