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

fix for raspbian lite bullseye on pi zero w, uap0 not existing #40

Open
fix-me opened this issue Dec 2, 2022 · 1 comment
Open

fix for raspbian lite bullseye on pi zero w, uap0 not existing #40

fix-me opened this issue Dec 2, 2022 · 1 comment

Comments

@fix-me
Copy link

fix-me commented Dec 2, 2022

First thx for the cool script! I had some troubles that the uap0 interface didn't exist to bring it up, so I got mine fixed like this:

Add udev rule

/etc/udev/rules.d/90-wireless.rules

ACTION=="add", SUBSYSTEM=="ieee80211", KERNEL=="phy0", \
    RUN+="/sbin/iw phy %k interface add uap0 type __ap"

Add iptables rule for post routing, fix for your ip range

echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 10.3.141.0/24 ! -d 10.3.141.0/24 -j MASQUERADE
iptables-save > /etc/iptables/rules.v4
@Fantomita
Copy link

I was having the same problem for the last couple of hours.. didn't even think about that.
Thx!

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

2 participants