Created
December 11, 2017 17:21
-
-
Save psachin/ef72b48c4adc9e3886b5a1a53f06705b to your computer and use it in GitHub Desktop.
iptables rules for hotspotd
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
# Generated by iptables-save v1.4.20 on Mon Dec 11 21:02:07 2017 | |
# To restore: iptables-restore < hotspotd.rules | |
*nat | |
:PREROUTING ACCEPT [373:31754] | |
:INPUT ACCEPT [96:7870] | |
:OUTPUT ACCEPT [107:7914] | |
:POSTROUTING ACCEPT [5:1080] | |
-A POSTROUTING -o ppp0 -j MASQUERADE | |
COMMIT | |
# Completed on Mon Dec 11 21:02:07 2017 | |
# Generated by iptables-save v1.4.20 on Mon Dec 11 21:02:07 2017 | |
*filter | |
:INPUT ACCEPT [108:29095] | |
:FORWARD ACCEPT [0:0] | |
:OUTPUT ACCEPT [379:29743] | |
-A INPUT -i wlan0 -j ACCEPT | |
-A FORWARD -i ppp0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT | |
-A FORWARD -i wlan0 -o ppp0 -j ACCEPT | |
-A OUTPUT -o wlan0 -j ACCEPT | |
COMMIT | |
# Completed on Mon Dec 11 21:02:07 2017 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment