Allow traffic between (some) associtated stations, otherwise deny
Sat Mar 6 12:31:12 PST 2004
On Saturday 06 March 2004 17:46, Jan Rovner wrote:
> Hi everybody,
> can someone recommend me how to solve quite simple problem.
> Assume simple setup:
> single wireless interface (wlan0), hostap in master mode,
> AP adress is 192.168.1.1,
> stations use 192.168.1.2, 192.168.1.3, 192.168.1.4, 192.168.1.5
> I want to by default deny traffic between all stations, i.e:
> iw_priv wlan0 ap_bridge_packets 0
> however, I need to allow several stations to communicate together
> (i.e. 192.168.1.3 should be able to talk with 192.168.1.5).
> Any solutions?
Assign 4-addr net per each STA:
Set up routing between those STAs you want to talk to each other:
on STA1: ip r a 192.168.1.4/30 via 192.168.1.1
on STA2: ip r a 192.168.1.0/30 via 192.168.1.5
More information about the Hostap