Last active
March 31, 2018 07:50
-
-
Save elbosso/fd4af42e583a9cf0f7aa25d707031143 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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