An ordinally network topology in picture: In words: - server (e.g.: an Ubuntu 10.04 LTS) is connected to the internet through pppoe connection- server is using it's wireless card in AP mode, so it could share the internet connection through wireless to the clients (WPA2/AES/63 char pass)- The server has two ethernet ports: 1-is for the internet(using pppoe); 2-is connected to a gbit switch, were the clients also are connected- The server (10.0.0.1) has a dhcp server (10.0.0.0/8), so the clients automagically got IP addresses, DNS server addresses and gateway addresses- The server has a dns server (10.0.0.1), so the dns queries are cached, (better network speed feeling)- Extra: on the server, there is an OpenVPN server, so the clients can OpenVPN to the server (even if not in the subnet, e.g.: from a netcafe)- ExtraExtra: the server can be configured in two modes: 1-no internet forwarding to any client, just only after it's connects through OpenVPN; 2-internet forwarding to any client and optionally they could use OpenVPN to have a secure/authenticated tunnelQuestion: How I need to configure the server to make this work (permanently, I mean no manual interaction is required after the server reboots, e.g.: the dhcp server starts automatically, internet forwarding is ok, openvpn is started, wifi is working, pppoe connection to the ISP is up, DNS server is working)?Or does anyone has any exact howtos regarding this setup? Or at least part of them?
How to share the internet connection?
linux;networking;iptables
Gentoo Linux has a very nice Home Router Guide in it's Gentoo Linux Documentation: http://www.gentoo.org/doc/en/home-router-howto.xmlMany of the steps can be adapted to use with Ubuntu.