TomHumphries / RaspberryPiHotspot

Offline WiFi hotspot with a Node.js captive portal
46 stars 4 forks source link

Make internet over usb possible #2

Open 53645714n opened 3 years ago

53645714n commented 3 years ago

Great tutorial, implemented it in my farmlapse project. I have one major issue, which isn't an bug or anything, but I want to update my software but can't because it is not connected to the internet anymore. I am able to login via usb and make an ethernet connection, but sudo apt-get update keeps redirecting to 192.168.4.1. Even after I undid all steps. Is there a way to make the ethernet function work together with the hotspot?

TomHumphries commented 3 years ago

Does re-commenting the line net.ipv4.ip_forward=1 in /etc/sysctl.conf allow you to run an update over ethernet? That should reverse this routing step. It's been a while since I looked at this project though so I can't say if it'll work!

53645714n commented 3 years ago

Nope, pinging google.nl gets me: 64 bytes from 192.168.4.1 (192.168.4.1): icmp_seq=1 ttl=64 time=0.374 ms Even deleting the iptables rules gets me nowhere..

53645714n commented 3 years ago

The problems start right after dhcpcd, but get worse down the line. Removing dhcpcd.conf works at first, but later on I get packets filtered etc.