oblique / create_ap

[NOT MAINTAINED] This script creates a NATed or Bridged WiFi Access Point.
BSD 2-Clause "Simplified" License
4.43k stars 998 forks source link

Ethernet connection not working after creating an access point #380

Open FSet89 opened 5 years ago

FSet89 commented 5 years ago

I created an access point on my ASUS Tinkerboard using the command create_ap -n wlan0 MyNetwork MyPassphrase The AP works fine (I can connect via SSH to the tinkerboard) but I can't access the Internet with the ethernet connection on the TInkerboard. How can I fix this problem?

JerryBlack commented 5 years ago

The documentation suggests that the -n option removes internet connectivity,
AP without Internet sharing: create_ap -n wlan0 MyAccessPoint MyPassPhrase

rakshitraj commented 4 years ago

Since ethernet ports do not support the creation of virtual aps create_ap does not share internet over ethernet. U'll probably need to share internet from your wireless interface to ethernet.

This should help.

Also, like u mentioned -n disables internet connectivity. However if you want to share ethernet internet over wifi you cold use

create_ap wlan0 eth0 MyAccessPoint MyPassPhrase

which follows the general format of

create_ap [options] <wifi-interface> [<interface-with-internet>] [<access-point-name> [<passphrase>]]

There isnt any man page, but a create_ap --help should help. Hope this helps.

rakshitraj commented 4 years ago

create_ap wlan0 eth0 MyAccessPoint MyPassPhrase this is your solution