Linux (28) Python (13) Raspberry Pi (5) Bugs (3) Install (3) C (2) Brainf**k (1) HTML (1) Maths (1) Sorts (1)

Sunday, 17 January 2016

How to enable forwarding on linux

Enabling forwarding on linux allows network packets from one interface (eth0) to another interface (wlan0). The use for this would most commonly be for setting up your box as a hotspot or bridge.
sudo echo 1 > /proc/sys/net/ipv4/ip_forward

If you want to store this permanently edit the file /etc/sysctl.conf
Add the line net.ipv4.ip_forward = 1 to the end of the file.

No comments:

Post a comment