Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggested iptables rule is not forwarding traffic #9

Open
MacroYau opened this issue Aug 3, 2018 · 0 comments
Open

Suggested iptables rule is not forwarding traffic #9

MacroYau opened this issue Aug 3, 2018 · 0 comments

Comments

@MacroYau
Copy link

MacroYau commented Aug 3, 2018

I have just followed the guide to configure on a Raspberry Pi 3 running Raspbian Stretch (the 2018-06-27 build). It all went smoothly except for bridging AP clients to the Internet using the suggested iptables rule:

iptables -t nat -A POSTROUTING -s 10.3.141.0/24 ! -d 10.3.141.0/24 -j MASQUERADE

Then I went back to the older version (pre-Stretch) tutorial and adopted these rules, everything is working perfectly now:

iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
iptables -A FORWARD -i wlan0 -o uap0 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i uap0 -o wlan0 -j ACCEPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant