Setting up RPi as a wifi AP

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
NewPi
 
Posts: 41
Joined: Mon Oct 07, 2013 11:13 am

Re: Setting up RPi as a wifi AP

Post by NewPi »

Ok, here's the output for that command ...

pi@raspberrypi ~ $ sysctl net.ipv4.ip_forward
net.ipv4.ip_forward = 0

...I'm guessing that 0 means it's not forwarding the packets ? If so, how do I change it ?

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Setting up RPi as a wifi AP

Post by adafruit_support_mike »

You are correct.

There are a couple of ways to turn on IP forwarding from the command line:

Code: Select all

sudo sysctl -w net.ipv4.ip_forward=1
    -or-
sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"
To set the flag every time the machine reboots, edit /etc/sysctl.conf and add the line:

Code: Select all

net.ipv4.ip_forward=1

NewPi
 
Posts: 41
Joined: Mon Oct 07, 2013 11:13 am

Re: Setting up RPi as a wifi AP

Post by NewPi »

Perfect. I did as you suggested, and I can now connect and ping all the things that need to be pinged (punged?) to test this configuration. Thank you so much for your help and your patience; you're a credit to your organization !

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Setting up RPi as a wifi AP

Post by adafruit_support_mike »

Huz-ZAH!

Unix network managers tend to have three things in common: patience with techncial issues that borders on obsession, an amazing command of the invective, and a high alcohol tolerance. ;-)

Now go have fun!

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”