SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Mon Sep 09, 2013 1:02 am

G0Ku5 wrote:Hello friend, but now I need to know is how do I use 2 wifi usb, one as access point and the other to connect to the internet, where one of the usb wifi sharing wifi usb internet the other, need to know what commands I use if you can help me thank.
Replace eth0 with wlan1 in the previous post.
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

G0Ku5
Posts: 47
Joined: Sun Sep 01, 2013 12:38 pm

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Mon Sep 16, 2013 2:52 pm

I received today the new wifi usb, did all the procedures, created the AP, and everything working well, until rebooted, now the AP is spreading but when I try to connect the network do not have access to internet, I use a windows pc, and he from me information which it is an unidentified network ...

this with the same problem as before, how can I fix this?
:?:

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Thu Sep 19, 2013 1:35 am

Do the clients get IP addresses ?
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

G0Ku5
Posts: 47
Joined: Sun Sep 01, 2013 12:38 pm

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Sat Sep 21, 2013 8:49 am

I had the file interfaces, personalized wrong. I finally got to work for it.

I'll share my code here, will be able to be more useful for someone

Code: Select all

auto lo
iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0

iface wlan0 inet static
  address 192.168.42.1
  netmask 255.255.255.0

#wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
#iface default inet dhcp

auto wlan1
allow-hotplug wlan1
iface wlan1 inet dhcp
    wpa-ssid "********"
    wpa-psk "********"
sir SirLagz, I want to give special thanks to you for all the help, if it was not you would not have achieved

greetings

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Sat Sep 21, 2013 1:40 pm

No Problems :)
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

crystal13
Posts: 67
Joined: Tue Jan 22, 2013 2:13 pm

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Mon Oct 07, 2013 9:05 am

Hello,

I read of someone that bought the wifi usb adapter based on RALINK RT5730 chip. I found this:
http://www.ebay.it/itm/221270147995?ssP ... 1423.l2649

Can you tell me if it works fine on Raspberry Pi?

Thank you.

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Mon Oct 07, 2013 1:22 pm

I can't tell if that adapter actually uses a RT5370 chipset or not.
If it does, then it'll be easy to use as a hotspot.
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

kjw
Posts: 3
Joined: Tue Oct 15, 2013 10:05 pm

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Sat Oct 19, 2013 10:11 pm

Ok so I followed your tutorial along with the tutorial I found http://jenssegers.be/blog/43/Realtek-RT ... spberry-Pi in order to get the ap to work with my dongle. When my pi boots up the hostapd and udhcpd start running fine and when i checkt he status of them with sudo service hostapd status all seems to be well. However for some reason the network is not broadcasting and I cannot see it when i try to access it from my computer. Any help would be greatly appreciated.

reijin
Posts: 6
Joined: Mon Sep 19, 2011 3:53 pm

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Thu Nov 07, 2013 8:15 pm

hey guys!

I followed the tutorial, but sadly my devices can't obtain an ip-address (auth. works though).

Pi is conntected to the Internet (and I can download files and stuff)

Maybe because of this:

Code: Select all

[email protected] ~ $ sudo service udhcpd start
/etc/init.d/udhcpd: 10: /etc/default/udhcpd: start: not found
/etc/init.d/udhcpd: 11: /etc/default/udhcpd: end: not found
/etc/init.d/udhcpd: 12: /etc/default/udhcpd: interface: not found
/etc/init.d/udhcpd: 13: /etc/default/udhcpd: remaining: not found
/etc/init.d/udhcpd: 14: /etc/default/udhcpd: opt: not found
/etc/init.d/udhcpd: 15: /etc/default/udhcpd: opt: not found
/etc/init.d/udhcpd: 16: /etc/default/udhcpd: opt: not found
/etc/init.d/udhcpd: 17: /etc/default/udhcpd: opt: not found
Starting very small Busybox based DHCP server: /usr/sbin/udhcpd already running.
udhcpd.
Does someone have an idea for me?

hunternet93
Posts: 336
Joined: Mon Dec 12, 2011 4:34 pm

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Thu Nov 07, 2013 8:19 pm

reijin wrote:hey guys!

I followed the tutorial, but sadly my devices can't obtain an ip-address (auth. works though).

Pi is conntected to the Internet (and I can download files and stuff)

Maybe because of this:

Code: Select all

[email protected] ~ $ sudo service udhcpd start
/etc/init.d/udhcpd: 10: /etc/default/udhcpd: start: not found
/etc/init.d/udhcpd: 11: /etc/default/udhcpd: end: not found
/etc/init.d/udhcpd: 12: /etc/default/udhcpd: interface: not found
/etc/init.d/udhcpd: 13: /etc/default/udhcpd: remaining: not found
/etc/init.d/udhcpd: 14: /etc/default/udhcpd: opt: not found
/etc/init.d/udhcpd: 15: /etc/default/udhcpd: opt: not found
/etc/init.d/udhcpd: 16: /etc/default/udhcpd: opt: not found
/etc/init.d/udhcpd: 17: /etc/default/udhcpd: opt: not found
Starting very small Busybox based DHCP server: /usr/sbin/udhcpd already running.
udhcpd.
Does someone have an idea for me?
It looks like you have an error in your /etc/default/udhcpd file, please post it's contents.

reijin
Posts: 6
Joined: Mon Sep 19, 2011 3:53 pm

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Thu Nov 07, 2013 8:24 pm

hunternet93 wrote:
reijin wrote:hey guys!

I followed the tutorial, but sadly my devices can't obtain an ip-address (auth. works though).

Pi is conntected to the Internet (and I can download files and stuff)

Maybe because of this:

Code: Select all

[email protected] ~ $ sudo service udhcpd start
/etc/init.d/udhcpd: 10: /etc/default/udhcpd: start: not found
/etc/init.d/udhcpd: 11: /etc/default/udhcpd: end: not found
/etc/init.d/udhcpd: 12: /etc/default/udhcpd: interface: not found
/etc/init.d/udhcpd: 13: /etc/default/udhcpd: remaining: not found
/etc/init.d/udhcpd: 14: /etc/default/udhcpd: opt: not found
/etc/init.d/udhcpd: 15: /etc/default/udhcpd: opt: not found
/etc/init.d/udhcpd: 16: /etc/default/udhcpd: opt: not found
/etc/init.d/udhcpd: 17: /etc/default/udhcpd: opt: not found
Starting very small Busybox based DHCP server: /usr/sbin/udhcpd already running.
udhcpd.
Does someone have an idea for me?
It looks like you have an error in your /etc/default/udhcpd file, please post it's contents.

Code: Select all

# Comment the following line to enable
#DHCPD_ENABLED="no"

# Options to pass to busybox' udhcpd.
#
# -S    Log to syslog
# -f    run in foreground

DHCPD_OPTS="-S"
start 10.67.94.1 # This is the range of IPs that the hostspot will give to client devices.
end 10.67.94.255
interface wlan0 # The device uDHCP listens on.
remaining yes
opt dns 8.8.8.8 4.2.2.2 # The DNS servers client devices will use.
opt subnet 255.255.255.0
opt router 192.168.42.1 # The Pi's IP address on wlan0 which we will set up shortly.
opt lease 864000 # 10 day DHCP lease time in seconds
//edit::
I found my error! I edited the wrong file /etc/default/udhcpd instead of /etc/udhcpd.conf.
Also I went through the whole tutorial again with the new settings.
Restart of the services and now it works!

hunternet93
Posts: 336
Joined: Mon Dec 12, 2011 4:34 pm

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Fri Nov 08, 2013 12:21 am

reijin wrote: //edit::
I found my error! I edited the wrong file /etc/default/udhcpd instead of /etc/udhcpd.conf.
Also I went through the whole tutorial again with the new settings.
Restart of the services and now it works!
Great!

darkrunner
Posts: 5
Joined: Sat Nov 09, 2013 3:25 pm

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Sat Nov 09, 2013 3:34 pm

I followed all steps. I finally was able to connect to the hotspot. I recieved an ip address. The only problem is I can't access the internet. Please help

hunternet93
Posts: 336
Joined: Mon Dec 12, 2011 4:34 pm

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Sat Nov 09, 2013 5:11 pm

darkrunner wrote:I followed all steps. I finally was able to connect to the hotspot. I recieved an ip address. The only problem is I can't access the internet. Please help
First, double-check that your Pi can connect to the internet. Then, run a couple commands on the client machine to diagnose the issue:

Code: Select all

ping -c 4 192.168.42.1
ping -c 4 8.8.8.8
The commands should output lines indicating that it's receiving a response from the IP address it's pinging, like:

Code: Select all

64 bytes from 192.168.42.1: icmp_req=1 ttl=64 time=1.88 ms
If you don't get any such lines on the first command, then your computer can't contact the Pi, if the second command doesn't work, then the Pi isn't configured correctly.

Post the output of the following:

Code: Select all

(on Linux)
ip addr
ip route
(on Windows)
ipconfig
route print

darkrunner
Posts: 5
Joined: Sat Nov 09, 2013 3:25 pm

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Sat Nov 09, 2013 5:50 pm

hunternet93 wrote:
darkrunner wrote:I followed all steps. I finally was able to connect to the hotspot. I recieved an ip address. The only problem is I can't access the internet. Please help
First, double-check that your Pi can connect to the internet. Then, run a couple commands on the client machine to diagnose the issue:

Code: Select all

ping -c 4 192.168.42.1
ping -c 4 8.8.8.8
The commands should output lines indicating that it's receiving a response from the IP address it's pinging, like:

Code: Select all

64 bytes from 192.168.42.1: icmp_req=1 ttl=64 time=1.88 ms
If you don't get any such lines on the first command, then your computer can't contact the Pi, if the second command doesn't work, then the Pi isn't configured correctly.

Post the output of the following:

Code: Select all

(on Linux)
ip addr
ip route
(on Windows)
ipconfig
route print
I use 192.168.0.1 instead of 192.168.42.1. Here are the results
Ping with 192.168.0.1 worked fine, 8.8.8.8 got timed out.

===========================================================================
Interface List
20...00 20 07 01 16 06 ......Qualcomm Atheros AR8151 PCI-E Gigabit Ethernet Con
troller (NDIS 6.30)
19...7c e9 d3 57 f8 41 ......Microsoft Hosted Network Virtual Adapter
13...7e e9 d3 57 f8 41 ......Microsoft Wi-Fi Direct Virtual Adapter
12...7c e9 d3 57 f8 41 ......Broadcom 802.11n Network Adapter
1...........................Software Loopback Interface 1
14...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
15...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
===========================================================================

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 172.20.10.1 172.20.10.3 25
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
172.20.10.0 255.255.255.240 On-link 172.20.10.3 281
172.20.10.3 255.255.255.255 On-link 172.20.10.3 281
172.20.10.15 255.255.255.255 On-link 172.20.10.3 281
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 172.20.10.3 281
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 172.20.10.3 281
===========================================================================
Persistent Routes:
None

IPv6 Route Table
===========================================================================
Active Routes:
If Metric Network Destination Gateway
15 306 ::/0 On-link
1 306 ::1/128 On-link
15 306 2001::/32 On-link
15 306 2001:0:9d38:90d7:2409:8c3f:e4c8:7aee/128
On-link
12 281 fe80::/64 On-link
15 306 fe80::/64 On-link
15 306 fe80::2409:8c3f:e4c8:7aee/128
On-link
12 281 fe80::49f8:b781:8320:7d65/128
On-link
1 306 ff00::/8 On-link
15 306 ff00::/8 On-link
12 281 ff00::/8 On-link
===========================================================================
Persistent Routes:
None

hunternet93
Posts: 336
Joined: Mon Dec 12, 2011 4:34 pm

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Sat Nov 09, 2013 6:33 pm

darkrunner wrote: I use 192.168.0.1 instead of 192.168.42.1. Here are the results
Ping with 192.168.0.1 worked fine, 8.8.8.8 got timed out.
It looks like your default gateway may be set incorrectly, check the file /etc/udhcpd.conf and make sure the line starting with "opt router" ends with "192.168.0.1". If that doesn't work, please post the output of "ipconfig /all" on the Windows client computer.

darkrunner
Posts: 5
Joined: Sat Nov 09, 2013 3:25 pm

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Sat Nov 09, 2013 6:44 pm

hunternet93 wrote:
darkrunner wrote: I use 192.168.0.1 instead of 192.168.42.1. Here are the results
Ping with 192.168.0.1 worked fine, 8.8.8.8 got timed out.
It looks like your default gateway may be set incorrectly, check the file /etc/udhcpd.conf and make sure the line starting with "opt router" ends with "192.168.0.1". If that doesn't work, please post the output of "ipconfig /all" on the Windows client computer.
I double checked udhcpd.conf, still doesn't work. Here is my ipconfig
Windows IP Configuration

Host Name . . . . . . . . . . . . : Rhea
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Ethernet:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Qualcomm Atheros AR8151 PCI-E Gigabit Eth
ernet Controller (NDIS 6.30)
Physical Address. . . . . . . . . : 00-20-07-01-16-06
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Local Area Connection* 12:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft Hosted Network Virtual Adapter
Physical Address. . . . . . . . . : 7C-E9-D3-57-F8-41
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Local Area Connection* 11:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter
Physical Address. . . . . . . . . : 7E-E9-D3-57-F8-41
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Wi-Fi:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Broadcom 802.11n Network Adapter
Physical Address. . . . . . . . . : 7C-E9-D3-57-F8-41
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::49f8:b781:8320:7d65%12(Preferred)
Autoconfiguration IPv4 Address. . : 169.254.125.101(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :
DHCPv6 IAID . . . . . . . . . . . : 259844563
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-19-8C-37-AA-7C-E9-D3-57-F8-41

DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBIOS over Tcpip. . . . . . . . : Enabled

Tunnel adapter isatap.{F3199A03-4B7C-4BAE-A94C-ED2D710EA92E}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Teredo Tunneling Pseudo-Interface:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

hunternet93
Posts: 336
Joined: Mon Dec 12, 2011 4:34 pm

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Sun Nov 10, 2013 2:56 am

darkrunner wrote:
hunternet93 wrote: I double checked udhcpd.conf, still doesn't work. Here is my ipconfig
Here's the problem:

Code: Select all

Wireless LAN adapter Wi-Fi:
   Autoconfiguration IPv4 Address. . : 169.254.125.101(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.0.0
   Default Gateway . . . . . . . . . :
It looks like DHCP isn't working, your laptop has a self-assigned IP address. Run the following command on the Pi:

Code: Select all

ps ax | grep udhcpd
You should get a line similar to this:

Code: Select all

 2928 ?        S      0:00 udhcpd
If you don't get any output, then udhcpd isn't running. Try the command:

Code: Select all

udhcpd -f
You will likely get an error message, please post it here. You can use the "Code" button on the top of the post editor window to insert code tags:

Code: Select all

 Anything between the tags will appear like this, which is handy to separate commands and code from the post's text.

darkrunner
Posts: 5
Joined: Sat Nov 09, 2013 3:25 pm

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Sun Nov 10, 2013 3:44 am

hunternet93 wrote: It looks like DHCP isn't working, your laptop has a self-assigned IP address. Run the following command on the Pi:

Code: Select all

ps ax | grep udhcpd
You should get a line similar to this:

Code: Select all

 2928 ?        S      0:00 udhcpd
I actually got this. It's seem running
2772 ? Ss 0:00 /usr/sbin/udhcpd -S
2951 ? Ss 0:00 /usr/sbin/udhcpd -S
3006 pts/1 S+ 0:00 grep --color=auto udhcpd
hunternet93 wrote:

Code: Select all

udhcpd -f
You will likely get an error message, please post it here. You can use the "Code" button on the top of the post editor window to insert code tags:

Code: Select all

 Anything between the tags will appear like this, which is handy to separate commands and code from the post's text.
udhcpd (v1.20.2) started
udhcpd: can't open '/var/lib/misc/udhcpd.leases': No such file or directory

darkrunner
Posts: 5
Joined: Sat Nov 09, 2013 3:25 pm

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Sun Nov 10, 2013 4:34 am

It works!! I just changed the range of IPs to somewhere else in udhcpd configuration file. Don't even know why :lol:
Thanks a lot!

frenchdude
Posts: 6
Joined: Sun Dec 08, 2013 10:11 pm

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Sun Dec 08, 2013 10:19 pm

I have done it
I had to recompile hostapd in order to activate the nl80211 driver

Now I'm interested in the hostapt_cli program to monitor the connections and maybe use it with a mini httpserver

It appear that it's somehow working with the snap protocol
as the command mid is providing that

dot11RSNAOptionImplemented=TRUE
dot11RSNAPreauthenticationImplemented=TRUE
dot11RSNAEnabled=TRUE
dot11RSNAPreauthenticationEnabled=FALSE
dot11RSNAConfigVersion=1
dot11RSNAConfigPairwiseKeysSupported=9999
dot11RSNAConfigGroupRekeyStrict=0
dot11RSNAConfigGroupUpdateCount=4
dot11RSNAConfigPairwiseUpdateCount=4
dot11RSNAConfigGroupCipherSize=128
dot11RSNAConfigPMKLifetime=43200
dot11RSNAConfigPMKReauthThreshold=70
dot11RSNAConfigNumberOfPTKSAReplayCounters=0
dot11RSNAConfigSATimeout=60
dot11RSNAAuthenticationSuiteSelected=00-0f-ac-2
dot11RSNAPairwiseCipherSelected=00-0f-ac-4
dot11RSNAGroupCipherSelected=00-0f-ac-4
dot11RSNAPMKIDUsed=00000000000000000000000000000000
dot11RSNAAuthenticationSuiteRequested=00-00-00-0
dot11RSNAPairwiseCipherRequested=00-00-00-0
dot11RSNAGroupCipherRequested=00-00-00-0
dot11RSNATKIPCounterMeasuresInvoked=0
dot11RSNA4WayHandshakeFailures=0
dot11RSNAConfigNumberOfGTKSAReplayCounters=0
hostapdWPAGroupState=2

With the info Iread on the web, there should be a way to gather more informations out of this using snap, but I'm really new into this subject

does someone know what king of commands we should run to read those mibs ?

hunternet93
Posts: 336
Joined: Mon Dec 12, 2011 4:34 pm

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Sun Dec 08, 2013 11:02 pm

frenchdude wrote:I have done it
I had to recompile hostapd in order to activate the nl80211 driver

Now I'm interested in the hostapt_cli program to monitor the connections and maybe use it with a mini httpserver

It appear that it's somehow working with the snap protocol
as the command mid is providing that

dot11RSNAOptionImplemented=TRUE
dot11RSNAPreauthenticationImplemented=TRUE
dot11RSNAEnabled=TRUE
dot11RSNAPreauthenticationEnabled=FALSE
dot11RSNAConfigVersion=1
dot11RSNAConfigPairwiseKeysSupported=9999
dot11RSNAConfigGroupRekeyStrict=0
dot11RSNAConfigGroupUpdateCount=4
dot11RSNAConfigPairwiseUpdateCount=4
dot11RSNAConfigGroupCipherSize=128
dot11RSNAConfigPMKLifetime=43200
dot11RSNAConfigPMKReauthThreshold=70
dot11RSNAConfigNumberOfPTKSAReplayCounters=0
dot11RSNAConfigSATimeout=60
dot11RSNAAuthenticationSuiteSelected=00-0f-ac-2
dot11RSNAPairwiseCipherSelected=00-0f-ac-4
dot11RSNAGroupCipherSelected=00-0f-ac-4
dot11RSNAPMKIDUsed=00000000000000000000000000000000
dot11RSNAAuthenticationSuiteRequested=00-00-00-0
dot11RSNAPairwiseCipherRequested=00-00-00-0
dot11RSNAGroupCipherRequested=00-00-00-0
dot11RSNATKIPCounterMeasuresInvoked=0
dot11RSNA4WayHandshakeFailures=0
dot11RSNAConfigNumberOfGTKSAReplayCounters=0
hostapdWPAGroupState=2

With the info Iread on the web, there should be a way to gather more informations out of this using snap, but I'm really new into this subject

does someone know what king of commands we should run to read those mibs ?
I haven't tinkered much with hostapd_cli, so I'm not sure. This isn't really related to the tutorial though, so I'd recommend you start a new thread.

ashtonmarkson
Posts: 8
Joined: Sun Dec 22, 2013 1:17 am

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Sun Dec 22, 2013 1:19 am

I have set up the pi as a hot spot and have had no problem getting to the outside internet. What I want to do is access a server running on the pi itself, but can only access it by ip address. Besides DHCPd, I don't have a DNS server running...do I need to do that? Is there another way to JUST name the pi?

User avatar
DougieLawson
Posts: 36832
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Sun Dec 22, 2013 11:31 am

sudo apt-get install avahi-daemon
avahi (aka Bonjour) advertises your Pi using mDNS as pi.local so http://pi.local works so does ssh pi.local

You could edit c:\windows\system32\drivers\etc\hosts or /etc/hosts on each machine to add your Pi's IP address and a name. But it get tedious when you add something new and have to go round and edit that file.

The other way would be to run your own DNS (which is how I do it. That also lets me block http://www.dailymail.co.uk (the World's worst newspaper) on my network).
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

ashtonmarkson
Posts: 8
Joined: Sun Dec 22, 2013 1:17 am

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Mon Dec 23, 2013 6:28 pm

Thanks.
Yes, I assume this isn't a pi problem now that I think about it.
Do I run DNS in addition to my dhcp server, and set the DNS server as localhost? Is there an easy DNS server to use?
Bonjour is working but it seems that the better way would be to use DNS.

Thanks again!

Return to “Networking and servers”