gmuller1234
Posts: 3
Joined: Tue Apr 29, 2014 3:52 pm

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

Sun May 04, 2014 10:28 pm

hunternet93 wrote:
gmuller1234 wrote:In connecting from my computer to a VPN server, I'm just connecting with the windows 8 VPN client; like I said I belive that the the cause is iptables blocking the ports needed to establish the connection between my computer and the server
I don't have a computer set up to test this right now, but try:

Code: Select all

sudo iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT -p gre
This should enable forwarding GRE (generic routing encapsulation, an IP protocol used by PPTP), if it works then run:

Code: Select all

sudo iptables-save > /etc/iptables.ipv4.nat
This will save the changes.

Thanks for the response,
I have been busy lately, but I will try this when I get a chance

-gmuller1234

mentalwall
Posts: 3
Joined: Mon Jun 03, 2013 3:04 am

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

Fri May 16, 2014 2:39 am

I have to say this is a great little tutorial! Thank you so much for putting the time and effort into this.

I've got my access point up and running and everything is great but just have a few further questions:

Is it possible to turn off the ssid? I know this isn't a proper security feature but just stops people seeing it at a glance and getting interested.

Have you tried operating the dongle in n mode? everything works great in g mode but everyone likes a little speed

How do I see what clients are connected to the wifi? I am using my raspberry pi to make my wired connection in halls wireless and want to limit the security risks or if someone cracked the wpa. I only have ssh access by rsa key and smb enable are their any further security precautions I should make?

Thanks for all the 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 May 17, 2014 8:51 pm

mentalwall wrote:I have to say this is a great little tutorial! Thank you so much for putting the time and effort into this.

I've got my access point up and running and everything is great but just have a few further questions:

Is it possible to turn off the ssid? I know this isn't a proper security feature but just stops people seeing it at a glance and getting interested.
Yes, add the line "ignore_broadcast_ssid=1" to hostapd.conf
Have you tried operating the dongle in n mode? everything works great in g mode but everyone likes a little speed
I haven't, but it should work fine if your dongle supports it.
How do I see what clients are connected to the wifi? I am using my raspberry pi to make my wired connection in halls wireless and want to limit the security risks or if someone cracked the wpa.


The only simple way is to read the log file /var/log/syslog and look for messages from hostapd, you could run:

Code: Select all

sudo cat /var/log/syslog | grep 'hostapd'
This will print all log messages from hostapd, you could also do:

Code: Select all

sudo tail -f /var/log/syslog | grep 'hostapd'
This will follow all changes to /var/log/syslog and print messages as they're logged.
I only have ssh access by rsa key and smb enable are their any further security precautions I should make?

Thanks for all the help!
I'm no security expert, but sounds fine to me. You're welcome!

mentalwall
Posts: 3
Joined: Mon Jun 03, 2013 3:04 am

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

Tue May 20, 2014 3:07 pm

Cheers for the help.

I've spent a bit of time trying to get 'n' enabled. For anyone that's interested add the following to hostapd.config :

Code: Select all

wme_enabled=1
ieee80211n=1
This got me to 65mb/s then I installed iw (http://wireless.kernel.org/en/users/Documentation/iw) to find the hardware modes of the adapter adding:

Code: Select all

ht_capab=[HT40+][SHORT-GI-40]
Has got me to 72mb/s. I believe that my dongle is capable of 150 mb/s so I'm not sure where the excess bandwidth has gone but hopefully this helps someone out.

With regards to keeping track of who's connect a little webpage would be amazing but I guess it would require installing apache and a reasonable amount of time.

cebrusjki7
Posts: 3
Joined: Mon Mar 31, 2014 7:17 pm

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

Wed May 21, 2014 9:27 pm

Hey guys, i'm getting troubles on bring up udhcpd at boot. I did

Code: Select all

update-rc.d udhcpd enable
and check with chkconfig, it tells me that the service is enabled to initialize during the boot process and the initscripts at /etc/init.d and /etc/rc.d/ are okay.
When de RPi boots up, I get a message that the daemon is starting, but actually, it doesn't. I have to do

Code: Select all

service udhcpd start
.
Any idea?

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

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

Sun May 25, 2014 2:23 am

cebrusjki7 wrote:Hey guys, i'm getting troubles on bring up udhcpd at boot. I did

Code: Select all

update-rc.d udhcpd enable
and check with chkconfig, it tells me that the service is enabled to initialize during the boot process and the initscripts at /etc/init.d and /etc/rc.d/ are okay.
When de RPi boots up, I get a message that the daemon is starting, but actually, it doesn't. I have to do

Code: Select all

service udhcpd start
.
Any idea?
Sorry for the delay in responding, I've had a busy week. Do you get any error messages in /var/log/syslog from udhcpd? Try the command:

Code: Select all

sudo grep -e 'udhcpd' /var/log/syslog
Please post most recent lines (the date/time is in the first column), if there's no output then udhcpd might be logging somewhere else.

I've noticed that running "service udhcpd status" doesn't report that udhcpd is running even when it is, how have you tested if udhcpd is running?

You can check for sure that udhcpd is or isn't running with the command:

Code: Select all

ps -ef | grep 'udhcpd'

AsiaDigitalPrivacy
Posts: 1
Joined: Sun May 25, 2014 10:11 am

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

Sun May 25, 2014 10:14 am

I would like to do this too ... have you seen any other info on this? I have the "onion pi" ethernet-Tor proxy router working fine, but that's just not that useful given most access on the go is via public wifis.

glycefr
Posts: 6
Joined: Mon Jun 23, 2014 8:19 am

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

Mon Jun 23, 2014 8:54 am

Hi,
I'have installed Hostadp and isc-dhcp-server (not udhcp because, i have an problem, but is it not the topic of my issue).

I am using this hardware: EDUP EP-N8508GS

Sometime, without explication, i can't connect to the Raspberry, and when i saw the syslog problem i have the several messages:

Code: Select all

Jun 22 23:20:02 raspberrypi hostapd: wlan0: STA e0:b9:a5:63:67:4a IEEE 802.11: associated
Jun 22 23:20:02 raspberrypi hostapd: wlan0: STA e0:b9:a5:63:67:4a RADIUS: starting accounting session 00000019-00000089
Jun 22 23:20:02 raspberrypi hostapd: wlan0: STA e0:b9:a5:63:67:4a WPA: pairwise key handshake completed (WPA)
Jun 22 23:20:06 raspberrypi hostapd: wlan0: STA e0:b9:a5:63:67:4a IEEE 802.11: deauthenticated due to local deauth request
Jun 22 23:20:06 raspberrypi hostapd: wlan0: STA e0:b9:a5:63:67:4a IEEE 802.11: disassociated
Jun 22 23:20:08 raspberrypi hostapd: wlan0: STA e0:b9:a5:63:67:4a IEEE 802.11: associated
Jun 22 23:20:08 raspberrypi hostapd: wlan0: STA e0:b9:a5:63:67:4a RADIUS: starting accounting session 00000019-0000008A
Jun 22 23:20:08 raspberrypi hostapd: wlan0: STA e0:b9:a5:63:67:4a WPA: pairwise key handshake completed (WPA)
Jun 22 23:20:12 raspberrypi hostapd: wlan0: STA e0:b9:a5:63:67:4a IEEE 802.11: deauthenticated due to local deauth request
Jun 22 23:20:12 raspberrypi hostapd: wlan0: STA e0:b9:a5:63:67:4a IEEE 802.11: disassociated
I have seen this problem of this forum and topic put, i didn't seen an answer would be fixed my probleme.
Could you have some ideas and information about this problem?

Thinks your for your help!

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

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

Wed Jun 25, 2014 1:21 am

glycefr wrote:Hi,
I'have installed Hostadp and isc-dhcp-server (not udhcp because, i have an problem, but is it not the topic of my issue).

I am using this hardware: EDUP EP-N8508GS

Sometime, without explication, i can't connect to the Raspberry, and when i saw the syslog problem i have the several messages:

Code: Select all

Jun 22 23:20:02 raspberrypi hostapd: wlan0: STA e0:b9:a5:63:67:4a IEEE 802.11: associated
Jun 22 23:20:02 raspberrypi hostapd: wlan0: STA e0:b9:a5:63:67:4a RADIUS: starting accounting session 00000019-00000089
Jun 22 23:20:02 raspberrypi hostapd: wlan0: STA e0:b9:a5:63:67:4a WPA: pairwise key handshake completed (WPA)
Jun 22 23:20:06 raspberrypi hostapd: wlan0: STA e0:b9:a5:63:67:4a IEEE 802.11: deauthenticated due to local deauth request
Jun 22 23:20:06 raspberrypi hostapd: wlan0: STA e0:b9:a5:63:67:4a IEEE 802.11: disassociated
Jun 22 23:20:08 raspberrypi hostapd: wlan0: STA e0:b9:a5:63:67:4a IEEE 802.11: associated
Jun 22 23:20:08 raspberrypi hostapd: wlan0: STA e0:b9:a5:63:67:4a RADIUS: starting accounting session 00000019-0000008A
Jun 22 23:20:08 raspberrypi hostapd: wlan0: STA e0:b9:a5:63:67:4a WPA: pairwise key handshake completed (WPA)
Jun 22 23:20:12 raspberrypi hostapd: wlan0: STA e0:b9:a5:63:67:4a IEEE 802.11: deauthenticated due to local deauth request
Jun 22 23:20:12 raspberrypi hostapd: wlan0: STA e0:b9:a5:63:67:4a IEEE 802.11: disassociated
I have seen this problem of this forum and topic put, i didn't seen an answer would be fixed my probleme.
Could you have some ideas and information about this problem?

Thinks your for your help!
I've seen this problem in the past, it means there was some sort of error communicating the client device, I don't know enough about WiFi and Linux drivers to diagnose the issue. Sadly, your best bet is a different WiFi dongle, there are a few known-working ones listed on the tutorial page.

glycefr
Posts: 6
Joined: Mon Jun 23, 2014 8:19 am

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

Wed Jun 25, 2014 2:59 pm

Hi,
Thx for your request.
When i make:

Code: Select all

iw dev wlan0
I get the folling message:

Code: Select all

nl80211 not found.
Someone, knows how i can conecter/point to the good driver, maybe it is the way of my problem resolution

Oddblob
Posts: 14
Joined: Wed Aug 29, 2012 11:15 am

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

Sun Jun 29, 2014 11:38 am

Hi there, could you help me out?
I've followed everything you've done and checked it all.
Hostapd and udhcpd are installed and I've done everything your tutorial says.
When I turn my Pi on, the AP starts up however when I try to connect to it using my laptop there is "no network access" and on my tablet it gets stuck on "obtaining IP address". Eventually it does connect but again, no internet access (And I don't know if you're familiar with Android 4.4 but on the top right drop down menu the wifi the wifi image is orange, showing no internet access)
I'm really stuck as to where my problem could lie as I'm not very experienced in Rpi or networking.
Thanks for any help anyone could provide, I'll be glad to provide any logs/files you need to look at :)

Edit: My little USB wifi stick has "802.11n" on it. As I said, not really a networking person and I read something about instead of 'g', using 'n' for better speed. Could this be possible?

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

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

Thu Jul 03, 2014 1:56 am

Sorry for the long delay in replying, I'll respond to both the previous posts here.
glycefr wrote:Hi,
Thx for your request.
When i make:

Code: Select all

iw dev wlan0
I get the folling message:

Code: Select all

nl80211 not found.
Someone, knows how i can conecter/point to the good driver, maybe it is the way of my problem resolution
The command you're running, "iw", isn't mentioned in my tutorial. Which tutorial/guide are you using? Also, please post the output of:

Code: Select all

lsusb
This will output information about the USB devices connected to your Pi, which I can use to tell which driver you need.

Code: Select all

Hi there, could you help me out?
I've followed everything you've done and checked it all.
Hostapd and udhcpd are installed and I've done everything your tutorial says.
When I turn my Pi on, the AP starts up however when I try to connect to it using my laptop there is "no network access" and on my tablet it gets stuck on "obtaining IP address". Eventually it does connect but again, no internet access (And I don't know if you're familiar with Android 4.4 but on the top right drop down menu the wifi the wifi image is orange, showing no internet access)
I'm really stuck as to where my problem could lie as I'm not very experienced in Rpi or networking.
Thanks for any help anyone could provide, I'll be glad to provide any logs/files you need to look at :)

Edit: My little USB wifi stick has "802.11n" on it. As I said, not really a networking person and I read something about instead of 'g', using 'n' for better speed. Could this be possible?
It sounds like udhcpd isn't running, to check for sure, run:

Code: Select all

pgrep udhcpd
If you get a number, then udhcpd is running. If you get nothing, then udhcpd is not running. To see what's wrong, you can run it manually with:

Code: Select all

udhcpd -f
This will run udhcpd in the foreground, press Ctrl+C to stop it. Please reply with any error messges from udhcpd.

Oddblob
Posts: 14
Joined: Wed Aug 29, 2012 11:15 am

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

Thu Jul 17, 2014 8:55 pm

Sorry for lack of response, I shall respond with the results of your help by the 28th. I currently don't have access to my pi :(
It sounds like udhcpd isn't running, to check for sure, run:

Code: Select all

pgrep udhcpd
If you get a number, then udhcpd is running. If you get nothing, then udhcpd is not running. To see what's wrong, you can run it manually with:

Code: Select all

udhcpd -f
This will run udhcpd in the foreground, press Ctrl+C to stop it. Please reply with any error messges from udhcpd.

SimplePalm
Posts: 11
Joined: Fri Aug 29, 2014 12:09 pm

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

Sat Aug 30, 2014 11:19 am

Hello,

i have followed this guide, and done everything that has been written and said to be done.

when i start up my pi, the wifi shows up, i can see it on my phone and computer,

then i try to connect to it, which works, it successfully connects, however when i try to use the internet, it just loads forever and fails, i am connected but can not use the internet.

any idea of why this is happening ?

Cheers

User avatar
DougieLawson
Posts: 35347
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)

Sat Aug 30, 2014 11:29 am

Please post the output from the following commands
route -n
cat /etc/resolv.conf
ping -c3 8.8.8.8
ping -c3 google.com
Note: Having anything remotely humorous in your signature is completely banned on this forum.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

SimplePalm
Posts: 11
Joined: Fri Aug 29, 2014 12:09 pm

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

Sat Aug 30, 2014 11:42 am

Code: Select all

[email protected] ~ $ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.12.164.1     0.0.0.0         UG    0      0        0 eth0
10.12.164.0     0.0.0.0         255.255.254.0   U     0      0        0 eth0
192.168.42.0    0.0.0.0         255.255.255.0   U     0      0        0 wlan0

Code: Select all

[email protected] ~ $ cat /etc/resolv.conf
domain jcu.edu.au
search jcu.edu.au
nameserver 137.219.255.252
nameserver 137.219.255.251

Code: Select all

[email protected] ~ $ ping -c3 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_req=1 ttl=55 time=34.1 ms
64 bytes from 8.8.8.8: icmp_req=2 ttl=55 time=33.7 ms
64 bytes from 8.8.8.8: icmp_req=3 ttl=55 time=33.8 ms

--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 33.794/33.902/34.106/0.208 ms

Code: Select all

[email protected] ~ $ ping -c3 google.com
PING google.com (74.125.237.167) 56(84) bytes of data.
64 bytes from syd01s18-in-f7.1e100.net (74.125.237.167): icmp_req=1 ttl=54 time=34.2 ms
64 bytes from syd01s18-in-f7.1e100.net (74.125.237.167): icmp_req=2 ttl=54 time=34.0 ms
64 bytes from syd01s18-in-f7.1e100.net (74.125.237.167): icmp_req=3 ttl=54 time=33.7 ms

--- google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 33.792/34.021/34.270/0.246 ms

User avatar
DougieLawson
Posts: 35347
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)

Sat Aug 30, 2014 11:58 am

There is no reason why your internet connections won't work, so the assumption has to be that the remote server you are trying to reach is borked or blocked by an intermediate proxy or firewall.
Note: Having anything remotely humorous in your signature is completely banned on this forum.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

SimplePalm
Posts: 11
Joined: Fri Aug 29, 2014 12:09 pm

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

Sat Aug 30, 2014 12:02 pm

Why is that ?

How come i can set up my laptop to act like a WiFi Access point, (running Ubuntu 14.04).
and have phones, and even my Ps4 connected to it ?

User avatar
DougieLawson
Posts: 35347
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)

Sat Aug 30, 2014 12:11 pm

You reached google (both ways) that means your internet routing is OK. You could test it further with
cd /tmp
wget http://google.com
cat *.htm*

The problem is external to your RPi assuming the client program you're using works OK.
Note: Having anything remotely humorous in your signature is completely banned on this forum.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

SimplePalm
Posts: 11
Joined: Fri Aug 29, 2014 12:09 pm

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

Sat Aug 30, 2014 2:11 pm

Code: Select all

[email protected] /tmp $ wget http://google.com
--2014-08-31 00:09:42--  http://google.com/
Resolving google.com (google.com)... 74.125.237.163, 74.125.237.164, 74.125.237.165, ...
Connecting to google.com (google.com)|74.125.237.163|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://www.google.com.au/?gfe_rd=cr&ei=J9sBVIrVA6aN8QeP4YDgBw [following]
--2014-08-31 00:09:43--  http://www.google.com.au/?gfe_rd=cr&ei=J9sBVIrVA6aN8QeP4YDgBw
Resolving www.google.com.au (www.google.com.au)... 74.125.237.175, 74.125.237.183, 74.125.237.184, ...
Connecting to www.google.com.au (www.google.com.au)|74.125.237.175|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `index.html'

    [ <=>                                                                                                                                                                                                                        ] 19,094      --.-K/s   in 0.03s   

2014-08-31 00:09:43 (646 KB/s) - `index.html' saved [19094]

Code: Select all

[email protected] /tmp $ cat *.htm*
<!doctype html><html itemscope="" itemtype="http://schema.org/WebPage" lang="en-AU"><head><meta content="/images/google_favicon_128.png" itemprop="image"><title>Google</title><script>(function(){window.google={kEI:'J9sBVLbQDY2k8AXdqoKAAw',kEXPI:'17259,4000116,4003510,4007661,4008142,4009033,4010806,4010858,4010899,4011228,4011679,4012149,4012373,4013414,4013591,4013823,4014016,4014431,4014636,4014805,4015550,4016127,4016373,4016824,4017204,4017659,4017694,4017818,4017981,4017982,4018181,4018251,4018569,4018598,4018923,4019014,4019018,4019142,4019181,4019207,4019423,4019438,4019483,4019793,4019798,4019800,4019848,4019888,4019995,4020025,4020029,4020031,4020139,4020226,4020306,4020378,4020381,4020383,4020385,4020437,4020513,4020514,4020555,4020562,4020572,4020608,4020663,4020705,4020729,4020805,4020815,4020822,4020824,4020879,4020892,4021067,4021071,4021092,4021110,4021112,4021124,4021440,4021497,4021545,4021567,8300007,8300030,8300060,8300063,8300072,8300075,8500223,8500271,8500394,8500433,8500474,8500509,8500554,8500571,8500585,8500593,8500605,10200083,10200297,10200334,10200353,10200396,10200398,10200442,10200448,10200523,10200525,10200528,10200556,10200585,10200588,10200592,10200597,10200599,10200601,10200605,10200614,10200618',kCSI:{e:'17259,4000116,4003510,4007661,4008142,4009033,4010806,4010858,4010899,4011228,4011679,4012149,4012373,4013414,4013591,4013823,4014016,4014431,4014636,4014805,4015550,4016127,4016373,4016824,4017204,4017659,4017694,4017818,4017981,4017982,4018181,4018251,4018569,4018598,4018923,4019014,4019018,4019142,4019181,4019207,4019423,4019438,4019483,4019793,4019798,4019800,4019848,4019888,4019995,4020025,4020029,4020031,4020139,4020226,4020306,4020378,4020381,4020383,4020385,4020437,4020513,4020514,4020555,4020562,4020572,4020608,4020663,4020705,4020729,4020805,4020815,4020822,4020824,4020879,4020892,4021067,4021071,4021092,4021110,4021112,4021124,4021440,4021497,4021545,4021567,8300007,8300030,8300060,8300063,8300072,8300075,8500223,8500271,8500394,8500433,8500474,8500509,8500554,8500571,8500585,8500593,8500605,10200083,10200297,10200334,10200353,10200396,10200398,10200442,10200448,10200523,10200525,10200528,10200556,10200585,10200588,10200592,10200597,10200599,10200601,10200605,10200614,10200618',ei:'J9sBVLbQDY2k8AXdqoKAAw'},authuser:0};google.kHL='en-AU';})();(function(){google.lc=[];google.li=0;google.getEI=function(a){for(var b;a&&(!a.getAttribute||!(b=a.getAttribute("eid")));)a=a.parentNode;return b||google.kEI};google.https=function(){return"https:"==window.location.protocol};google.ml=function(){};google.time=function(){return(new Date).getTime()};google.log=function(a,b,d,h,k){var c=new Image,f=google.lc,e=google.li,g="",l=google.ls||"";c.onerror=c.onload=c.onabort=function(){delete f[e]};f[e]=c;d||-1!=b.search("&ei=")||(g="&ei="+google.getEI(h));a=d||"/"+(k||"gen_204")+"?atyp=i&ct="+a+"&cad="+b+g+l+"&zx="+google.time();/^http:/i.test(a)&&google.https()?(google.ml(Error("a"),!1,{src:a,glmm:1}),delete f[e]):(c.src=a,google.li=e+1)};google.y={};google.x=function(a,b){google.y[a.id]=[a,b];return!1};google.load=function(a,b,d){google.x({id:a+m++},function(){google.load(a,b,d)})};var m=0;})();var _gjwl=location;function _gjuc(){var a=_gjwl.href.indexOf("#");if(0<=a&&(a=_gjwl.href.substring(a),0<a.indexOf("&q=")||0<=a.indexOf("#q="))&&(a=a.substring(1),-1==a.indexOf("#"))){for(var d=0;d<a.length;){var b=d;"&"==a.charAt(b)&&++b;var c=a.indexOf("&",b);-1==c&&(c=a.length);b=a.substring(b,c);if(0==b.indexOf("fp="))a=a.substring(0,d)+a.substring(c,a.length),c=d;else if("cad=h"==b)return 0;d=c}_gjwl.href="/search?"+a+"&cad=h";return 1}return 0}
function _gjh(){!_gjuc()&&window.google&&google.x&&google.x({id:"GJH"},function(){google.nav&&google.nav.gjh&&google.nav.gjh()})};window._gjh&&_gjh();</script><style>#gbar,#guser{font-size:13px;padding-top:1px !important;}#gbar{height:22px}#guser{padding-bottom:7px !important;text-align:right}.gbh,.gbd{border-top:1px solid #c9d7f1;font-size:1px}.gbh{height:0;position:absolute;top:24px;width:100%}@media all{.gb1{height:22px;margin-right:.5em;vertical-align:top}#gbar{float:left}}a.gb1,a.gb4{text-decoration:underline !important}a.gb1,a.gb4{color:#00c !important}.gbi .gb4{color:#dd8e27 !important}.gbf .gb4{color:#900 !important}</style><style>body,td,a,p,.h{font-family:arial,sans-serif}body{margin:0;overflow-y:scroll}#gog{padding:3px 8px 0}td{line-height:.8em}.gac_m td{line-height:17px}form{margin-bottom:20px}.h{color:#36c}.q{color:#00c}.ts td{padding:0}.ts{border-collapse:collapse}em{font-weight:bold;font-style:normal}.lst{height:25px;width:496px}.gsfi,.lst{font:18px arial,sans-serif}.gsfs{font:17px arial,sans-serif}.ds{display:inline-box;display:inline-block;margin:3px 0 4px;margin-left:4px}input{font-family:inherit}a.gb1,a.gb2,a.gb3,a.gb4{color:#11c !important}body{background:#fff;color:black}a{color:#11c;text-decoration:none}a:hover,a:active{text-decoration:underline}.fl a{color:#36c}a:visited{color:#551a8b}a.gb1,a.gb4{text-decoration:underline}a.gb3:hover{text-decoration:none}#ghead a.gb2:hover{color:#fff !important}.sblc{padding-top:5px}.sblc a{display:block;margin:2px 0;margin-left:13px;font-size:11px}.lsbb{background:#eee;border:solid 1px;border-color:#ccc #999 #999 #ccc;height:30px}.lsbb{display:block}.ftl,#fll a{display:inline-block;margin:0 12px}.lsb{background:url(/images/srpr/nav_logo80.png) 0 -258px repeat-x;border:none;color:#000;cursor:pointer;height:30px;margin:0;outline:0;font:15px arial,sans-serif;vertical-align:top}.lsb:active{background:#ccc}.lst:focus{outline:none}#addlang a{padding:0 3px}</style><script></script></head><body bgcolor="#fff"><script>(function(){var src='/images/nav_logo176.png';var iesg=false;document.body.onload = function(){window.n && window.n();if (document.images){new Image().src=src;}
if (!iesg){document.f&&document.f.q.focus();document.gbqf&&document.gbqf.q.focus();}
}
})();</script><div id="mngb">   <div id=gbar><nobr><b class=gb1>Search</b> <a class=gb1 href="http://www.google.com.au/imghp?hl=en&tab=wi">Images</a> <a class=gb1 href="http://maps.google.com.au/maps?hl=en&tab=wl">Maps</a> <a class=gb1 href="https://play.google.com/?hl=en&tab=w8">Play</a> <a class=gb1 href="http://www.youtube.com/?gl=AU&tab=w1">YouTube</a> <a class=gb1 href="http://news.google.com.au/nwshp?hl=en&tab=wn">News</a> <a class=gb1 href="https://mail.google.com/mail/?tab=wm">Gmail</a> <a class=gb1 href="https://drive.google.com/?tab=wo">Drive</a> <a class=gb1 style="text-decoration:none" href="http://www.google.com.au/intl/en/options/"><u>More</u> &raquo;</a></nobr></div><div id=guser width=100%><nobr><span id=gbn class=gbi></span><span id=gbf class=gbf></span><span id=gbe></span><a href="http://www.google.com.au/history/optout?hl=en" class=gb4>Web History</a> | <a  href="/preferences?hl=en" class=gb4>Settings</a> | <a target=_top id=gb_70 href="https://accounts.google.com/ServiceLogin?hl=en&continue=http://www.google.com.au/%3Fgfe_rd%3Dcr%26ei%3DJ9sBVIrVA6aN8QeP4YDgBw" class=gb4>Sign in</a></nobr></div><div class=gbh style=left:0></div><div class=gbh style=right:0></div>  </div><center><span id="prt" style="display:block"> <div><style>.pmoabs{background-color:#fff;border:1px solid #E5E5E5;color:#666;font-size:13px;padding-bottom:20px;position:absolute;right:2px;top:3px;z-index:986}#pmolnk{border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px}.kd-button-submit{border:1px solid #3079ed;background-color:#4d90fe;background-image:-webkit-gradient(linear,left top,left bottom,from(#4d90fe),to(#4787ed));background-image:-webkit-linear-gradient(top,#4d90fe,#4787ed);background-image:-moz-linear-gradient(top,#4d90fe,#4787ed);background-image:-ms-linear-gradient(top,#4d90fe,#4787ed);background-image:-o-linear-gradient(top,#4d90fe,#4787ed);background-image:linear-gradient(top,#4d90fe,#4787ed);filter:progid:DXImageTransform.Microsoft.gradient(startColorStr='#4d90fe',EndColorStr='#4787ed')}.kd-button-submit:hover{border:1px solid #2f5bb7;background-color:#357ae8;background-image:-webkit-gradient(linear,left top,left bottom,from(#4d90fe),to(#357ae8));background-image:-webkit-linear-gradient(top,#4d90fe,#357ae8);background-image:-moz-linear-gradient(top,#4d90fe,#357ae8);background-image:-ms-linear-gradient(top,#4d90fe,#357ae8);background-image:-o-linear-gradient(top,#4d90fe,#357ae8);background-image:linear-gradient(top,#4d90fe,#357ae8);filter:progid:DXImageTransform.Microsoft.gradient(startColorStr='#4d90fe',EndColorStr='#357ae8')}.kd-button-submit:active{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);box-shadow:inset 0 1px 2px rgba(0,0,0,0.3)}#pmolnk a{color:#fff;display:inline-block;font-weight:bold;padding:5px 20px;text-decoration:none;white-space:nowrap}.xbtn{color:#999;cursor:pointer;font-size:23px;line-height:5px;padding-top:5px}.padi{padding:0 8px 0 10px}.padt{padding:5px 20px 0 0;color:#444}.pads{text-align:left;max-width:200px}</style> <div class="pmoabs" id="pmocntr2" style="behavior:url(#default#userdata);display:none"> <table border="0"> <tr> <td colspan="2"> <div class="xbtn" onclick="google.promos&&google.promos.toast&& google.promos.toast.cpc()" style="float:right">&times;</div> </td> </tr> <tr> <td class="padi" rowspan="2"> <img src="/images/icons/product/chrome-48.png"> </td> <td class="pads">A faster way to browse the web</td> </tr> <tr> <td class="padt"> <div class="kd-button-submit" id="pmolnk"> <a href="/chrome/index.html?hl=en&brand=CHNG&utm_source=en-hpp&utm_medium=hpp&utm_campaign=en" onclick="google.promos&&google.promos.toast&& google.promos.toast.cl()">Install Google Chrome</a> </div> </td> </tr> </table> </div> <script type="text/javascript">(function(){var a={o:{}};a.o.Pa=50;a.o.Oa=10;a.o.ca="body";a.o.La=!0;a.o.Fa=function(b,c){var d=a.o.Ja();a.o.Ka(d,b,c);a.o.Na(d);a.o.La&&a.o.Ma(d)};a.o.Na=function(b){(b=a.o.ba(b))&&0<b.forms.length&&b.forms[0].submit()};a.o.Ja=function(){var b=document.createElement("iframe");b.height=0;b.width=0;b.style.overflow="hidden";b.style.top=b.style.left="-100px";b.style.position="absolute";document.body.appendChild(b);return b};a.o.ba=function(b){return b.contentDocument||b.contentWindow.document};a.o.Ka=function(b,c,d){b=a.o.ba(b);b.open();d=["<",a.o.ca,'><form method=POST action="',d,'">'];for(var e in c)c.hasOwnProperty(e)&&d.push('<textarea name="',e,'">',c[e],"</textarea>");d.push("</form></",a.o.ca,">");b.write(d.join(""));b.close()};a.o.aa=function(b,c){c>a.o.Oa?google&&google.ml&&google.ml(Error("ogcdr"),!1,{cause:"timeout"}):b.contentWindow?a.o.Qa(b):window.setTimeout(function(){a.o.aa(b,c+1)},a.o.Pa)};a.o.Qa=function(b){document.body.removeChild(b)};a.o.Ma=function(b){a.o.Ra(b,"load",function(){a.o.aa(b,0)})};a.o.Ra=function(b,c,d){b.addEventListener?b.addEventListener(c,d,!1):b.attachEvent&&b.attachEvent("on"+c,d)};var m={Va:0,C:1,D:2,G:5};a.k={};a.k.Q={Ha:"i",U:"d",Ia:"l"};a.k.A={P:"0",J:"1"};a.k.R={N:1,U:2,O:3};a.k.v={va:"a",ya:"g",F:"c",Ca:"u",Ba:"t",P:"p",Aa:"pid",wa:"eid",Da:"at"};a.k.za=window.location.protocol+"//www.google.com/_/og/promos/";a.k.xa="g";a.k.Ea="z";a.k.H=!1;a.k.$=function(b,c,d){return c==m.C?(b=window.gbar.up.gpd(b,d,!0),null==b?0:parseInt(b,10)):0};a.k.ia=function(b,c,d){return c==m.C?null!=window.gbar.up.gpd(b,d,!0):!1};a.k.S=function(b,c,d,e,h,g,k,l){var f={};f[a.k.v.P]=b;f[a.k.v.ya]=c;f[a.k.v.va]=d;f[a.k.v.Da]=e;f[a.k.v.wa]=h;f[a.k.v.Aa]=1;k&&(f[a.k.v.F]=k);l&&(f[a.k.v.Ca]=l);if(g)f[a.k.v.Ba]=g;else return google.ml(Error("knu"),!1,{cause:"Token is not found"}),null;return f};a.k.T=function(b,c,d){if(b){var e=c?a.k.xa:a.k.Ea;c&&d&&(e+="?authuser="+d);a.o.Fa(b,a.k.za+e)}};a.k.Ga=function(b,c,d,e,h,g,k){b=a.k.S(c,b,a.k.Q.U,a.k.R.U,d,h,null,e);a.k.T(b,g,k)};a.k.ta=function(b,c,d,e,h,g,k){b=a.k.S(c,b,a.k.Q.Ha,a.k.R.N,d,h,e,null);a.k.T(b,g,k)};a.k.la=function(b,c,d,e,h,g,k,l,f,n){switch(c){case m.C:window.gbar.up.spd(b,d,1,!0);break;case m.D:if(f=f||!1,l=l||"",g=g||0,k=k||a.k.A.J,n=n||0,a.k.Ga(e,g,k,h,l,f,n),!a.k.H)break;case m.G:window.gbar.up.dpc(e,h)}};a.k.ja=function(b,c,d,e,h){return c==m.C?0<d&&a.k.$(b,c,e,h)>=d:!1};a.k.ga=function(b,c,d,e,h,g,k,l,f,n){switch(c){case m.C:c=a.k.$(b,c,d,e)+1;window.gbar.up.spd(b,d,c.toString(),!0);break;case m.D:if(f=f||!1,l=l||"",g=g||0,k=k||a.k.A.P,n=n||0,a.k.ta(e,g,k,1,l,f,n),!a.k.H)break;case m.G:window.gbar.up.iic(e,h)}};a.k.na=function(b,c,d,e,h,g){b=a.k.S(c,b,a.k.Q.Ia,a.k.R.O,d,e,null,null);a.k.T(b,h,g)};var p={Ta:"a",Wa:"l",Ua:"c",ka:"d",O:"h",N:"i",gb:"n",J:"x",cb:"ma",eb:"mc",fb:"mi",Xa:"pa",Ya:"pc",$a:"pi",bb:"pn",ab:"px",Za:"pd",hb:"gpa",jb:"gpi",kb:"gpn",lb:"gpx",ib:"gpd"};a.i={};a.i.w={oa:"hplogo",Sa:"pmocntr2"};a.i.A={ea:"0",J:"1",ma:"2"};a.i.p=document.getElementById(a.i.w.Sa);a.i.pa=16;a.i.qa=2;a.i.ra=20;google.promos=google.promos||{};google.promos.toast=google.promos.toast||{};a.i.I=function(b){a.i.p&&(a.i.p.style.display=b?"":"none",a.i.p.parentNode&&(a.i.p.parentNode.style.position=b?"relative":""))};a.i.Z=function(b){try{if(a.i.p&&b&&b.es&&b.es.m){var c=window.gbar.rtl(document.body)?"left":"right";a.i.p.style[c]=b.es.m-a.i.pa+a.i.qa+"px";a.i.p.style.top=a.i.ra+"px"}}catch(d){google.ml(d,!1,{cause:a.i.s+"_PT"})}};google.promos.toast.cl=function(){try{a.i.V==m.D&&a.k.na(a.i.W,a.i.B,a.i.A.ma,a.i.M,a.i.K,a.i.L),window.gbar.up.sl(a.i.B,a.i.s,p.O,void 0,1)}catch(b){google.ml(b,!1,{cause:a.i.s+"_CL"})}};google.promos.toast.cpc=function(){try{a.i.p&&(a.i.I(!1),a.k.la(a.i.p,a.i.V,a.i.w.X,a.i.W,a.i.da,a.i.B,a.i.A.J,a.i.M,a.i.K,a.i.L),window.gbar.up.sl(a.i.B,a.i.s,p.ka,void 0,1))}catch(b){google.ml(b,!1,{cause:a.i.s+"_CPC"})}};a.i.Y=function(){try{if(a.i.p){var b=276,c=document.getElementById(a.i.w.oa);c&&(b=Math.max(b,c.offsetWidth));var d=parseInt(a.i.p.style.right,10)||0;a.i.p.style.visibility=2*(a.i.p.offsetWidth+d)+b>document.body.clientWidth?"hidden":""}}catch(e){google.ml(e,!1,{cause:a.i.s+"_HOSW"})}};a.i.fa=function(){var b=["gpd","spd","aeh","sl"];if(!window.gbar||!window.gbar.up)return!1;for(var c=0,d;d=b[c];c++)if(!(d in window.gbar.up))return!1;return!0};a.i.ha=function(){return a.i.p.currentStyle&&"absolute"!=a.i.p.currentStyle.position};google.promos.toast.init=function(b,c,d,e,h,g,k,l,f,n,s,q,r){try{if(!a.i.fa())google.ml(Error("apa"),!1,{cause:a.i.s+"_INIT"});else if(a.i.p){if(e==m.D&&(n?a.k.H=!0:e=m.G,!l==!f))if(google.ml(Error("tku"),!1,{cause:"zwieback: "+f+", gaia: "+l}),a.k.H)e=m.G;else{a.i.I(!1);return}a.i.w.F="toast_count_"+c+(q?"_"+q:"");a.i.w.X="toast_dp_"+c+(r?"_"+r:"");a.i.s=d;a.i.B=b;a.i.V=e;a.i.W=c;a.i.da=h;a.i.M=l?l:f;a.i.K=!!l;a.i.L=k;a.k.ia(a.i.p,e,a.i.w.X,c)||a.k.ja(a.i.p,e,g,a.i.w.F,c)||a.i.ha()?a.i.I(!1):(a.k.ga(a.i.p,e,a.i.w.F,c,h,a.i.B,a.i.A.ea,a.i.M,a.i.K,a.i.L),s||(window.gbar.up.aeh(window,"resize",a.i.Y),window.lol=a.i.Y,window.gbar.elr&&a.i.Z(window.gbar.elr()),window.gbar.elc&&window.gbar.elc(a.i.Z),a.i.I(!0)),window.gbar.up.sl(a.i.B,a.i.s,p.N))}}catch(t){google.ml(t,!1,{cause:a.i.s+"_INIT"})}};})();</script> <script type="text/javascript">(function(){var sourceWebappPromoID=144002;var sourceWebappGroupID=5;var payloadType=5;var cookieMaxAgeSec=2592000;var dismissalType=5;var impressionCap=25;var gaiaXsrfToken='';var zwbkXsrfToken='';var kansasDismissalEnabled=true;var sessionIndex=0;var invisible=false;window.gbar&&gbar.up&&gbar.up.r&&gbar.up.r(payloadType,function(show){if (show){google.promos.toast.init(sourceWebappPromoID,sourceWebappGroupID,payloadType,dismissalType,cookieMaxAgeSec,impressionCap,sessionIndex,gaiaXsrfToken,zwbkXsrfToken,kansasDismissalEnabled,invisible,'0612');}
});})();</script> </div> </span><br clear="all" id="lgpd"><div id="lga"><div style="padding:28px 0 3px"><div title="Google" align="left" id="hplogo" onload="window.lol&&lol()" style="height:110px;width:276px;background:url(/images/srpr/logo9w.png) no-repeat"><div nowrap="" style="color:#777;font-size:16px;font-weight:bold;position:relative;top:70px;left:218px">Australia</div></div></div><br></div><form action="/search" name="f"><table cellpadding="0" cellspacing="0"><tr valign="top"><td width="25%">&nbsp;</td><td align="center" nowrap=""><input name="ie" value="ISO-8859-1" type="hidden"><input value="en-AU" name="hl" type="hidden"><input name="source" type="hidden" value="hp"><div class="ds" style="height:32px;margin:4px 0"><input style="color:#000;margin:0;padding:5px 8px 0 6px;vertical-align:top" autocomplete="off" class="lst" value="" title="Google Search" maxlength="2048" name="q" size="57"></div><br style="line-height:0"><span class="ds"><span class="lsbb"><input class="lsb" value="Google Search" name="btnG" type="submit"></span></span><span class="ds"><span class="lsbb"><input class="lsb" value="I'm Feeling Lucky" name="btnI" onclick="if(this.form.q.value)this.checked=1; else top.location='/doodles/'" type="submit"></span></span></td><td class="fl sblc" align="left" nowrap="" width="25%"><a href="/advanced_search?hl=en-AU&authuser=0">Advanced search</a><a href="/language_tools?hl=en-AU&authuser=0">Language tools</a></td></tr></table><input id="gbv" name="gbv" type="hidden" value="1"></form><div id="gac_scont"></div><div style="font-size:83%;min-height:3.5em"><br></div><span id="footer"><div style="font-size:10pt"><div style="margin:19px auto;text-align:center" id="fll"><a href="/intl/en/ads/">Advertising&nbsp;Programmes</a><a href="/services/">Business Solutions</a><a href="https://plus.google.com/115477067087672475993" rel="publisher">+Google</a><a href="/intl/en/about.html">About Google</a><a href="http://www.google.com.au/setprefdomain?prefdom=US&sig=0_dewEWtTGlCnyKJT2_ujl9wRFVi4%3D" id="fehl">Google.com</a></div></div><p style="color:#767676;font-size:8pt">&copy; 2013 - <a href="/intl/en/policies/">Privacy & Terms</a></p></span></center><div id=xjsd></div><div id=xjsi data-jiis="bp"><script>if(google.y)google.y.first=[];(function(){function b(a){window.setTimeout(function(){var c=document.createElement("script");c.src=a;document.getElementById("xjsd").appendChild(c)},0)}google.dljp=function(a){google.xjsu=a;b(a)};google.dlj=b;})();
if(!google.xjs){window._=window._||{};window._._DumpException=function(e){throw e};if(google.timers&&google.timers.load.t){google.timers.load.t.xjsls=new Date().getTime();}google.dljp('/xjs/_/js/k\x3dxjs.hp.en_US.QgXXqNe9H8s.O/m\x3dsb_he,pcc/rt\x3dj/d\x3d1/t\x3dzcms/rs\x3dAItRSTMZ4gjPthsSL3eRaZarMVJV0YA7aQ');google.xjs=1;}google.pmc={"sb_he":{"agen":true,"cgen":true,"client":"heirloom-hp","dh":true,"ds":"","eqch":true,"fl":true,"host":"google.com.au","jam":0,"jsonp":true,"msgs":{"cibl":"Clear Search","dym":"Did you mean:","lcky":"I\u0026#39;m Feeling Lucky","lml":"Learn more","oskt":"Input tools","psrc":"This search was removed from your \u003Ca href=\"/history\"\u003EWeb History\u003C/a\u003E","psrl":"Remove","sbit":"Search by image","srch":"Google Search"},"ovr":{},"pq":"","qcpw":false,"refoq":true,"scd":10,"sce":5,"stok":"qkZxy0OIRDysTVIqX28RW_W_sKw"},"pcc":{}};google.y.first.push(function(){if(google.med){google.med('init');google.initHistory();google.med('history');}});if(google.j&&google.j.en&&google.j.xi){window.setTimeout(google.j.xi,0);}</script></div></body></html>[email protected] /tmp $ 
oh god, what in the world does that mean

this might be relevant, so il just add it aswell, i have Ubuntu installed alongside win7, when i boot win7 and set up my laptop as an Access point, it acts just like the pi, it can be seen but once connected to it, internet does not work. you can basically just connect to it and do nothing at all.

however on ubuntu, i have Ap-hotspot installed and running, if i start that up, it works like a charm, everything connecting to it, has internet.

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

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

Sat Aug 30, 2014 3:57 pm

SimplePalm wrote:Hello,

i have followed this guide, and done everything that has been written and said to be done.

when i start up my pi, the wifi shows up, i can see it on my phone and computer,

then i try to connect to it, which works, it successfully connects, however when i try to use the internet, it just loads forever and fails, i am connected but can not use the internet.

any idea of why this is happening ?

Cheers
It's possible that NAT (the thing that forwards traffic from connected devices) isn't set up properly on the Pi, try running the command:

Code: Select all

sudo iptables --list
Among other things, it should output lines like:

Code: Select all

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere          
If these lines don't appear, then your Pi isn't forwarding traffic from devices on Wi-Fi. Plase run through step 4 of the tutorial again to make sure you didn't miss anything, if that doesn't help then the problem may lie elsewhere.

User avatar
DougieLawson
Posts: 35347
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)

Sat Aug 30, 2014 6:29 pm

SimplePalm wrote:oh god, what in the world does that mean
It means your RPi is connected to the internet and you can read data (in this case the HTML for Google's home page) from a public URL.
Note: Having anything remotely humorous in your signature is completely banned on this forum.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

SimplePalm
Posts: 11
Joined: Fri Aug 29, 2014 12:09 pm

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

Sun Aug 31, 2014 3:00 am

This is the output code for when i ran

Code: Select all

sudo iptables --list

Code: Select all

Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere            


Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination     
so it looks like it works fine.

i have tried everything, searched for everything, i even tried taking out the hash in
allow-hotplug wlan0

and adding

auto wlan0

but that just makes my phone and ps4 not being able to connect at all to the wifi.
i have no idea what else to do, i even tried channing the channel from 6 to 1 and 2 and so on...

but nothing.. nothing at all

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

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

Mon Sep 01, 2014 4:56 pm

SimplePalm wrote:This is the output code for when i ran

Code: Select all

sudo iptables --list

Code: Select all

Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere            


Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination     
(snip)
There's a couple other possibilities, such as the DHCP server not working properly. Do connected Windows devices report "limited connectivity"? Do connected devices get IP addresses starting with 169.254 instead of 192.168? If so, devices aren't getting IP addresses from the Pi, and can't route traffic to the internet. On the Pi, run:

Code: Select all

psgrep udhcpd
If you get a number, like "12345", then udchpd is running, if you get no output then udchpd isn't running and is the source of the problem. Run udhcpd manually with:

Code: Select all

sudo udhcpd -f
If you get error messages, please post them here.

SimplePalm
Posts: 11
Joined: Fri Aug 29, 2014 12:09 pm

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

Tue Sep 02, 2014 5:25 am

Code: Select all

[email protected] ~ $ psgrep udhcpd
-bash: psgrep: command not found
[email protected] ~ $ sudo udhcpd -f
udhcpd (v1.20.2) started
udhcpd: max_leases=235 is too big, setting to 19
And when i connect to the wifi on my computer and phone it does start with 192.168
i dont know about limited connectivity, but after connecting to the wifi and try to open/refresh a web page, it takes a while and then comes up with a blank page saying im offline

so i just found a command to check the syslog, and this is what happends after the pi is started up.

Code: Select all

[email protected] ~ $ tail -f /var/log/syslog
Sep  3 19:29:35 raspberrypi ifplugd(eth0)[1689]: Program executed successfully.
Sep  3 19:29:35 raspberrypi hostapd: wlan0: STA 68:76:4f:5f:91:bc IEEE 802.11: authenticated
Sep  3 19:29:35 raspberrypi hostapd: wlan0: STA 68:76:4f:5f:91:bc IEEE 802.11: associated (aid 1)
Sep  3 19:29:36 raspberrypi hostapd: wlan0: STA 68:76:4f:5f:91:bc RADIUS: starting accounting session 5406DF7C-00000000
Sep  3 19:29:36 raspberrypi hostapd: wlan0: STA 68:76:4f:5f:91:bc WPA: pairwise key handshake completed (RSN)
Sep  3 19:29:36 raspberrypi udhcpd[2262]: udhcpd (v1.20.2) started
Sep  3 19:29:36 raspberrypi udhcpd[2262]: max_leases=235 is too big, setting to 19
Sep  3 19:29:41 raspberrypi udhcpd[2262]: Sending OFFER of 192.168.0.10
Sep  3 19:29:42 raspberrypi udhcpd[2262]: Sending ACK to 192.168.0.10
Sep  3 19:30:03 raspberrypi udhcpd[2262]: Sending ACK to 192.168.0.10

and tried disconnecting and reconnecting again with phone.

Code: Select all

[email protected] ~ $ tail -f /var/log/syslog
Sep  3 19:29:35 raspberrypi ifplugd(eth0)[1689]: Program executed successfully.
Sep  3 19:29:35 raspberrypi hostapd: wlan0: STA 68:76:4f:5f:91:bc IEEE 802.11: authenticated
Sep  3 19:29:35 raspberrypi hostapd: wlan0: STA 68:76:4f:5f:91:bc IEEE 802.11: associated (aid 1)
Sep  3 19:29:36 raspberrypi hostapd: wlan0: STA 68:76:4f:5f:91:bc RADIUS: starting accounting session 5406DF7C-00000000
Sep  3 19:29:36 raspberrypi hostapd: wlan0: STA 68:76:4f:5f:91:bc WPA: pairwise key handshake completed (RSN)
Sep  3 19:29:36 raspberrypi udhcpd[2262]: udhcpd (v1.20.2) started
Sep  3 19:29:36 raspberrypi udhcpd[2262]: max_leases=235 is too big, setting to 19
Sep  3 19:29:41 raspberrypi udhcpd[2262]: Sending OFFER of 192.168.0.10
Sep  3 19:29:42 raspberrypi udhcpd[2262]: Sending ACK to 192.168.0.10
Sep  3 19:30:03 raspberrypi udhcpd[2262]: Sending ACK to 192.168.0.10
Sep  3 19:31:40 raspberrypi hostapd: wlan0: STA 68:76:4f:5f:91:bc IEEE 802.11: disassociated
Sep  3 19:31:41 raspberrypi hostapd: wlan0: STA 68:76:4f:5f:91:bc IEEE 802.11: deauthenticated due to inactivity
Sep  3 19:31:50 raspberrypi hostapd: wlan0: STA 68:76:4f:5f:91:bc IEEE 802.11: authenticated
Sep  3 19:31:50 raspberrypi hostapd: wlan0: STA 68:76:4f:5f:91:bc IEEE 802.11: associated (aid 1)
Sep  3 19:31:50 raspberrypi hostapd: wlan0: STA 68:76:4f:5f:91:bc RADIUS: starting accounting session 5406DF7C-00000001
Sep  3 19:31:50 raspberrypi hostapd: wlan0: STA 68:76:4f:5f:91:bc WPA: pairwise key handshake completed (RSN)
Sep  3 19:31:51 raspberrypi udhcpd[2262]: Sending ACK to 192.168.0.10


Return to “Networking and servers”