What I want to do is the following: Tether my android device's internet connection to a Raspberry Pi (USB cable). Then via ethernet cable connect the Raspberry to a router. Other devices are then connected to the router for internet connection. How do I do this?


connect Raspberry PI to wifi with standard tools

echo 1>net.ipv4.conf.all.forwarding = 1

Pick a private ip range like set the lan IP address. configure the dhcp server.

subnet netmask {

  option routers;
  option domain-name-servers;
  option broadcast-address;
  authoritative ;
  default-lease-time 14400;
  max-lease-time 172800;

save and exit go into named.conf find allow-query {;}; change by adding; after save and exit restart dhcp server and named serivce, and it should work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.