<div dir="ltr">I want the settings in my wireless router to be, ideally:<div>1) Anonymous have access only to the internet, any packet will be either routed &quot;outside&quot; of the router or dropped.</div><div>2) Authenticated users (by any means) will be able also to access the inner network.</div>
<div><br></div><div>Even just achieving 1 for everyone (and drop authentication altogether) is good enough.</div><div><br></div><div>How can I implement this rules?</div><div><br></div><div>The easiest solution which came to my mind is:</div>
<div>1) Set known macs to be mapped to IP in 192.168.1.*, unknown macs to be mapped to 192.168.2.* (I think it&#39;s possible in many home routers)</div><div>2) Somehow tell the router to route all traffic (except the one coming from a PC A) to a PC A. (Not so sure it&#39;s possible).</div>
<div>3) In PC A, route all packets to the router, and drop packets whose destination is in 192.168.*, (this should be a simple IPtable rule).</div><div><br></div><div>Another solution - plug your ears instead of curing your bedmate&#39;s snoring.</div>
<div>1) Leave the router as it is, ignore any packets not coming from a known whitelist (can you tell linux to filter packets based on MAC? Even if you can&#39;t use IP whitelist and force the known MACs to be mapped to IPs in the whitelist, preventing unknown MACs from being mapped to the whitelist).</div>
<div><br></div><div>I of course prefer everything to be done in the router, but I&#39;m not sure it&#39;s possible.</div></div>