Can iptables do this?
Hi Everyone,
I have posted this question before but got no response, so I'm posting it again, please pardon me if you have seen this before.
I have a wireless network with my linux machine as a gateway between the internet & my internal wireless network. I have iptables running on the gateway & also a dhcp server to serve out ip addresses to the client laptops. I also run the Squid proxy server on the gateway to proxy http requests. I use iptables to redirect http traffic to Squid and to do nat for the internal network.
My question is this: what if a laptop with a preconfigured static ip address comes into the internal network or worse, 2 client laptops with identical preconfigured static ip addresses enter into network, can iptables do nat based on mac address <--> public ip address mapping besides the usual private ip address <--> public ip address mapping?
Please help. Thanks.
Best regards
Matthew
That is more of a Mobile-IP type issue. A laptop with any old ip address will not be able to talk to the rest of your network (or gateway) properly unless it has an IP on that network. ARP, among other things, will be completely broken. The laptops with the pre-configured static IP's would have to set themselves to use your internal gateway, and unless they are in the same network, they will have no route to that, or any other, host. I believe IPTables can't help you here.
- Jon
Quoted 22 lines · Wei Ming Long
Hi Everyone,
I have posted this question before but got no response, so I'm posting it again, please pardon me if you have seen this before.
I have a wireless network with my linux machine as a gateway between the internet & my internal wireless network. I have iptables running on the gateway & also a dhcp server to serve out ip addresses to the client laptops. I also run the Squid proxy server on the gateway to proxy http requests. I use iptables to redirect http traffic to Squid and to do nat for the internal network.
My question is this: what if a laptop with a preconfigured static ip address comes into the internal network or worse, 2 client laptops with identical preconfigured static ip addresses enter into network, can iptables do nat based on mac address <--> public ip address mapping besides the usual private ip address <--> public ip address mapping?Please help. Thanks.
Best regards
Matthew