lukicdarkoo / rpi-wifi

Configures simultaneous AP and Managed Mode Wifi on Raspberry Pi
GNU General Public License v3.0
532 stars 120 forks source link

No traffic forwarded to internet #19

Open ddrum2000 opened 4 years ago

ddrum2000 commented 4 years ago

Hi so I thought I had this working correctly but I can seem get internet traffic to pass through the AP to the internet. For example when I ssh into the RaspPi and ping outside my home network:

lombardo@raspberrypi:~ $ ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=58 time=17.8 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=58 time=21.3 ms
64 bytes from 1.1.1.1: icmp_seq=3 ttl=58 time=19.8 ms
64 bytes from 1.1.1.1: icmp_seq=4 ttl=58 time=18.7 ms

Now if I connect my laptop to the RaspPi AP and ping from my laptops terminal:

Fedallahs-MacBook-Pro:~ lombardo$ ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1): 56 data bytes
ping: sendto: No route to host
ping: sendto: No route to host
Request timeout for icmp_seq 0
ping: sendto: No route to host
Request timeout for icmp_seq 1
ping: sendto: No route to host
Request timeout for icmp_seq 2
ping: sendto: No route to host
Request timeout for icmp_seq 3
ping: sendto: No route to host
Request timeout for icmp_seq 4
--- 1.1.1.1 ping statistics ---
6 packets transmitted, 0 packets received, 100.0% packet loss

I ran the script only replacing the the following variables: MyAP myappass WifiSSID wifipass. Do you have an idea why the information is not being forwarded from the RaspPi to my home network?

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/96267831-no-traffic-forwarded-to-internet?utm_campaign=plugin&utm_content=tracker%2F97445956&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F97445956&utm_medium=issues&utm_source=github).
doug62 commented 4 years ago

I have same issue +1

ddrum2000 commented 4 years ago

So found there was an issue with the chrontab starting. I decided to go the way of running the script in rc.local at boot.

JLNNN commented 2 years ago

same here. it doesn't matter if setting the ip to my routers network (e.g. 192.168.178.69) or not.

i'm using this pull request and a rpi zero w.