Skip to content

Instantly share code, notes, and snippets.

@elbosso
Last active March 31, 2018 07:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elbosso/fd4af42e583a9cf0f7aa25d707031143 to your computer and use it in GitHub Desktop.
Save elbosso/fd4af42e583a9cf0f7aa25d707031143 to your computer and use it in GitHub Desktop.
apt-get update && apt-get -y upgrade && apt-get -y autoremove
apt-get -y install wireless-tools joe iptables dnsmasq hostapd iw wpa-supplicant pwgen qrencode python-qrcode python-pip
pip install pyqrcode
iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
iptables --append FORWARD --in-interface wlp2s0 -j ACCEPT
iptables --append FORWARD --in-interface wlp2s0_0 -j ACCEPT
TERM="vt102"
apt-get -y install iptables-persistent
apt-get clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment