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

Announcing linux-router. I forked create_ap and have been improving it for more than 2 years #463

Open garywill opened 3 years ago

garywill commented 3 years ago

2 years ago I forked create_ap to linux-router. I started the project (when create_ap was being hardly maintained) for my personal use at the beginning . Now it has been quite different to create_ap.

I've added features:

Recently I refactored the code, making it tidy, more readable, more flexable and more maintainable (found I should have done it 2 years ago so much easier to do jobs):

I want to thank @oblique for create_ap. This repo helped a lot. We find many solutions on wireless drivers and issues here. Thank those who contributed to that!

Since now it has met all my personal requirements, I think it's time to announce it and present it to community. Welcome who interested and or wants to be collaborator (it would be better if found someone more qualified to hand it over to).

I removed:

Welcome developers and users. Feel free to join or fork.

oblique commented 3 years ago

Hey @garywill! This is amazing! Thanks for continuing this project and good luck with your fork.

I added a link about your project in the readme.

Gictorbit commented 3 years ago

Hello, thank you for your helpful shell script actually I'm working on a project and I need to create an access point on Linux just like create_ap does .my question is how create_ap works? I need to understand all steps that create_ap does, so I read your source code, but I got confused a little, can you simply explain how we can create an AP step by step please? Here is what I understood from source code: 1- create a new interface for nat 2- configure hostapd and dnsmasq based on settings for dhcp 3- set network manager to unmanage new interface 4- add some rules with iptables 5- run hotspot is it correct?can you guide me please?

garywill commented 3 years ago

@Gictorbit Almost. Set forwarding bit and set interface IP. Run dnsmasq.

Googling about this topic will give you lots of results telling similar steps.