One last thing I want to know here, Can I do this without turning the computer into a router? I know that using the rule
Code:
iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
Will turn it into a router. It's creating a seperate broadcast domain which I don't want. I want to make it to where the clients connected to the ethernet interface could be a part of the same broadcast domain coming from the wireless router in the house. I don't want to turn this machine into a router because I want the entire network of clients connected to it to be part of the same broadcast domain as everyone else.
I thought about doing some experimentation with this so I made these rules
Code:
iptables -A FORWARD -i eth0 -j ACCEPT
iptables -A FORWARD -o eth0 -j ACCEPT
iptables -A FORWARD -i wlan0 -j ACCEPT
iptables -A FORWARD -o wlan0 -j ACCEPT
And when I tried to make the eth0 interface obtain an IP address from the router it did't get one. the wlan0 interface has an IP address and forwarding is enabled but I don't know how to make eth0 get an IP address from the router. Can someone help me with this one. I am understanding the relavance of the FORWARD chain and most of the chains in the nat table but the nat table seems to be creating a router and not a bridge so that the clients attached to it can join the same broadcast domain as the ones connected to the router that the machine is wirelessly connected to.