I have the following setup:
modem + router – – – – -Ubuntu box on master mode………wireless devises. Ubuntu machine connects to Internet on wired network. I've dhcp3-server, masquerading, and wireless card with master mode on Ubuntu box. The issue is Ubuntu connects to the router on NAT. The wireless devises connect to the Ubuntu box on a NAT too (though different). SO my wireless devises are behind two NAT networks. The solution I am looking for is Ubuntu should forward dhcp requests to the modem+router, and Ubuntu should act as a switch or a bridge that allows wireless devises to connect to the wired network. So the modem+router should act a main router.
Best Answer
Have a look at this article, it explains how to bridge a wireless and LAN networks:
https://help.ubuntu.com/community/BridgingNetworkInterfaces
Don't worry about DHCP relay - that will happen automatically across the bridge. Should you really want to DHCP relay there is a package dhcp3-relay for that but I don't think its what you require here.