summaryrefslogtreecommitdiff
path: root/ap.sh
blob: b323f7495024bc4ef1064b237d6e991e7b125168 (plain)
1
2
3
4
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 NoWLAN