Hello,
I’m trying to install share internet from my USB LTE to wifi hotspot.
But when i create hotspot and try to connect some device into it. It show no internet at all.
Could anyone help me out?
Thanks alot
Hello,
We need more informations.
First, i suppose you use hostapd? Try to change the crypto algorithm and the keys you use.
Second, need to know your firewall rules.
Third, send logfiles at the real time you connect your devices (tail -f /var/log/syslog)
Regards
Ok so devices are well recognized, good point.
You use docker?
I see that your firewall rules are in the state drop for the forward chain, it can explains somethings (not sure regarding your configuration, but…)
Try (if not in production) to disable the firewall.
I had problems with firewalling when using containers.
If it works, it means that you have to adapt firewall rules.
If it doesn’t work, expect that others colleagues will help.
Oh i forgot one thing, sorry… Maybe just adapt a squid proxy server?? Just an idea… Not sure.
Thanks,
I got it working now
just add some config
sudo iptables -t nat -A POSTROUTING -o [internet-interface] -j MASQUERADE
sudo iptables -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A FORWARD -i [hotspot-interface] -o [internet-interface] -j ACCEPT
sudo sysctl -w net.ipv4.ip_forward=1
Great if it works.
So it was firewalling rules.
See ya.
this can help for better understanding for all :A Deep Dive into Iptables and Netfilter Architecture | DigitalOcean