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 ?
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/
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/
- adafruit_support_mike
- Posts: 67446
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Setting up RPi as a wifi AP
You are correct.
There are a couple of ways to turn on IP forwarding from the command line:
To set the flag every time the machine reboots, edit /etc/sysctl.conf and add the line:
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"
Code: Select all
net.ipv4.ip_forward=1
-
- Posts: 41
- Joined: Mon Oct 07, 2013 11:13 am
Re: Setting up RPi as a wifi AP
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 !
- adafruit_support_mike
- Posts: 67446
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Setting up RPi as a wifi AP
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!
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!
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/
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/