iptables forwarding between two interface
Posted
by
broody
on Server Fault
See other posts from Server Fault
or by broody
Published on 2012-09-25T01:08:07Z
Indexed on
2012/09/25
3:39 UTC
Read the original article
Hit count: 483
So I have a linux box with two wireless interfaces, one is a station and the other an AP.
wlan0 (station) - Connected to the internet connection
wlan1 (AP) - Other clients connect to it.
I would like for clients connected to wlan1 to be able to access the internet on wlan0. And I'd like to do this with iptables as my kernel doesn't have bridging support...
Here's what I've tried so far with iptables but it's not working:
iptables -A FORWARD -i wlan0 -o wlan1 -j ACCEPT
iptables -A FORWARD -i wlan1 -o wlan0 -j ACCEPT
I'd appreciate any help.
© Server Fault or respective owner