Created
September 21, 2020 08:57
-
-
Save ollytheninja/1198ed68c26b8ee1e9780979924f825e to your computer and use it in GitHub Desktop.
This file contains 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
# iptables dance, probably needs reviewing | |
iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE | |
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT | |
iptables -A INPUT -m state --state NEW -i eth0 -j ACCEPT | |
iptables -P INPUT DROP | |
iptables -A FORWARD -i wlan0 -o wlan0 -j REJECT | |
# Show ip tables | |
iptables -L -v -n | |
iptables -S | |
ip route show | |
wifi config in | |
/etc/wpa_supplicant/wpa_supplicant.conf | |
dhcp client in (does not get overridden by /etc/network/interfaces/*) | |
/etc/dhcpcd.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment