Auto IP configuration
Hi everyone,
I am thinking of setting up a wireless lan and hope to use my laptop as wireless client with dynamic ip address, using dhcp & running netfilter on the gateway. I use my laptop at office with a static ip address and configured proxy server. My question is: Can netfilter do nat or packet filtering based on mac address so that I do not have to change my network configurations each time my network environment changes.
Scenario 1 - With only my laptop
Internet ------------- Linux Gateway (ip address = 192.1681.1, Netfilter + DHCP + Squid) -------------- My laptop A (ip address = 192.168.1.1)(dynamic)
Scenario 2 - With my laptop & a friend's laptop
Internet ------------- Linux Gateway +-------------- My laptop A (ip address = 192.168.1.1) (dynamic)
+
|
|
|
Friend's laptop B (ip address = 172.16.1.1)(static),
All help greatly appreciated. Thanks.
Best regards
Matthew