You are not logged in.

#226 2016-03-30 08:11:17

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: [script] create_ap: Create a NATed or Bridged WiFi Access Point

@ earciga92
Mostly it's needed to edit the iptables. See this. Also privoxy wiki to configure it correctly.


do it good first, it will be faster than do it twice the saint wink

Offline

#227 2016-03-30 17:54:54

earciga92
Member
Registered: 2016-03-30
Posts: 2

Re: [script] create_ap: Create a NATed or Bridged WiFi Access Point

@ TheSaint
Thanks, but there was no need to modify iptables at last. I connected my android device to the AP and configured manually the proxy on the Android device to the ip:port of my computer connected to the internet. Now everything works.

Thanks!

Offline

#228 2016-09-08 17:11:13

su
Member
Registered: 2016-06-12
Posts: 4

Re: [script] create_ap: Create a NATed or Bridged WiFi Access Point

Hi there I have RaspberryPi3 How I can use this for making TOR Network Router?

Offline

#229 2016-09-09 15:17:28

jmoreira84
Member
Registered: 2016-09-09
Posts: 1

Re: [script] create_ap: Create a NATed or Bridged WiFi Access Point

Hi OBLIQUE...

Its's possible to create more than 2 virtual APs with your Script?? I tried do it, creating every AP in a different Terminal, but I couldn't get it. Script show an error:

ERROR: Maybe your WiFi adapter does not fully support virtual interfaces.
       Try again with --no-virt.

Offline

#230 2016-09-24 00:51:38

schmidtbag
Member
From: NH, USA
Registered: 2011-02-08
Posts: 339

Re: [script] create_ap: Create a NATed or Bridged WiFi Access Point

First of all, great work - I was having a lot of issues trying to get hostapd to work on my own (I almost got there, but I kept hitting roadblocks) and this script seems like a real time saver.

I noticed it seems to frequently access the disk while running, even if nothing is happening.  I'm guessing it's logging something, but would there happen to be a way to make it stop?


EDIT:
Nevermind - it was Chinese hackers who were spamming my /var/log/auth.log

Last edited by schmidtbag (2016-10-06 00:18:41)

Offline

#231 2016-10-10 17:35:36

Aurelio
Member
Registered: 2016-04-22
Posts: 12

Re: [script] create_ap: Create a NATed or Bridged WiFi Access Point

Hi i was refered to ask here (https://bbs.archlinux.org/viewtopic.php?id=218046)
In short i want to use create_ap to make a hotspot and use sshuttle to go over the great firewall(i am china based atm) so that i can use google services on my smartphone.

My problem is that create_ap and sshuttle both work individualy perfectly. when i use sshuttle i can see uncensored internet on the NB and with create_ap i can make a hotspot and phone can use the PC internet. Problem is if i let them both run at the same time nothing works at all and phone cant access any sites at all.

Anyone a Idea how to fix this?

Offline

#232 2017-03-07 07:10:05

neoanima
Member
Registered: 2008-05-08
Posts: 40

Re: [script] create_ap: Create a NATed or Bridged WiFi Access Point

great great work! saved me a lot.

I tried to build AP hotspot manually, I have brought the wifi hotspot online, however i stucked in Nat settings, at last I gave up struggling.

thanks!

Last edited by neoanima (2017-03-07 07:10:55)

Offline

#233 2017-03-11 21:47:51

ali-libre
Member
Registered: 2015-03-19
Posts: 27

Re: [script] create_ap: Create a NATed or Bridged WiFi Access Point

i'm using create-ap to create hot-spot it's working
but device connected to this network can't establish ipv4
it seem's system don't become dhcp server...
what i must to do?

Offline

#234 2017-04-02 19:52:28

ickpa
Member
Registered: 2017-04-02
Posts: 1

Re: [script] create_ap: Create a NATed or Bridged WiFi Access Point

sudo create_ap wlp0s17f2u1 enp0s20 <My SSID> <My PASSWORD> -m bridge --ieee80211n --no-virt --mkconfig /etc/create_ap.conf
sudo systemctl start create_ap
sudo systemctl status create_ap
● create_ap.service - Create AP Service
   Loaded: loaded (/usr/lib/systemd/system/create_ap.service; enabled; vendor preset: disabled)
   Active: active (running) since Sun 2017-04-02 22:37:43 EEST; 13s ago
 Main PID: 19370 (create_ap)
    Tasks: 4 (limit: 4915)
   Memory: 1.5M
      CPU: 1.842s
   CGroup: /system.slice/create_ap.service
           ├─19370 /bin/bash /usr/bin/create_ap --config /etc/create_ap.conf
           ├─19584 /bin/bash /usr/bin/create_ap --config /etc/create_ap.conf
           ├─19585 /usr/sbin/hostapd /tmp/create_ap.wlp0s17f2u1.conf.won3QHZ8/hostapd.conf
           └─19801 sleep 2

Apr 02 22:37:43 ergo-linux-PC create_ap[19370]: Network Manager found, set wlp0s17f2u1 as unmanaged device... DONE
Apr 02 22:37:43 ergo-linux-PC create_ap[19370]: Access Point's SSID is hidden!
Apr 02 22:37:43 ergo-linux-PC create_ap[19370]: Sharing Internet using method: bridge
Apr 02 22:37:44 ergo-linux-PC create_ap[19370]: Create a bridge interface... br0 created.
Apr 02 22:37:44 ergo-linux-PC create_ap[19370]: hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlp0s17f2u1.conf.won3QHZ8/hostapd_ctrl
Apr 02 22:37:44 ergo-linux-PC create_ap[19370]: Configuration file: /tmp/create_ap.wlp0s17f2u1.conf.won3QHZ8/hostapd.conf
Apr 02 22:37:51 ergo-linux-PC create_ap[19370]: wlp0s17f2u1: interface state UNINITIALIZED->HT_SCAN
Apr 02 22:37:51 ergo-linux-PC create_ap[19370]: Using interface wlp0s17f2u1 with hwaddr f8:1a:67:1f:6a:27 and ssid "ergo"
Apr 02 22:37:51 ergo-linux-PC create_ap[19370]: wlp0s17f2u1: interface state HT_SCAN->ENABLED
Apr 02 22:37:51 ergo-linux-PC create_ap[19370]: wlp0s17f2u1: AP-ENABLED
sudo pacman -Syu
[sudo] password for ergo:
:: Synchronizing package databases...
error: failed retrieving file 'core.db' from mirror.dkm.cz : Could not resolve host: mirror.dkm.cz
error: failed retrieving file 'core.db' from ftp.byfly.by : Could not resolve host: ftp.byfly.by
error: failed retrieving file 'core.db' from mirror.23media.de : Could not resolve host: mirror.23media.de

sudo systemctl stop create_ap

sudo pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra                                                               1679.0 KiB  5.58M/s 00:00 [#######################################################] 100%
 community                                                              3.8 MiB  7.26M/s 00:01 [#######################################################] 100%
 antergos                                                             135.1 KiB  1571K/s 00:00 [#######################################################] 100%
:: Starting full system upgrade...
 there is nothing to do

Some time my IP address disappears from the interface br0

Last edited by ickpa (2017-04-03 09:43:30)

Offline

#235 2017-04-12 22:21:59

semeion
Member
From: Brazil
Registered: 2008-10-20
Posts: 65

Re: [script] create_ap: Create a NATed or Bridged WiFi Access Point

Working perfect in a Raspberry Pi 3

Really a nice job!

Thank you very much!

Offline

Board footer

Powered by FluxBB