Skip to content

Instantly share code, notes, and snippets.

@ollytheninja
Created September 21, 2020 08:57
Show Gist options
  • Save ollytheninja/1198ed68c26b8ee1e9780979924f825e to your computer and use it in GitHub Desktop.
Save ollytheninja/1198ed68c26b8ee1e9780979924f825e to your computer and use it in GitHub Desktop.
# 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