Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable forwarding between wireless networks #2

Open
danielhjames opened this issue May 19, 2017 · 3 comments
Open

Enable forwarding between wireless networks #2

danielhjames opened this issue May 19, 2017 · 3 comments

Comments

@danielhjames
Copy link
Member

danielhjames commented May 19, 2017

In /etc/sysctl.conf file:
# Uncomment the next line to enable packet forwarding for IPv4
net.ipv4.ip_forward=1

Then update while running:
echo 1 > /proc/sys/net/ipv4/ip_forward

Add a route to wlan1 on the upstream Internet side
iptables -t nat -A POSTROUTING -o wlan1 -j MASQUERADE

@obbardc
Copy link
Member

obbardc commented May 19, 2017

See file webapp/wifi-nat-forwarding-notes.txt for other forwarding for ethernet/wan forwarding

@danielhjames
Copy link
Member Author

Thanks @obbardc ! Also I see we can use sysctl -w net.ipv4.ip_forward=1

@obbardc
Copy link
Member

obbardc commented May 19, 2017

@danielhjames Right, but that only enables it for the current session. Editing the sysctl.conf file saves the setting every boot. I think there is a sysctl.conf.d folder, somewhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants