I'm trying to make my Debian server the router for my LAN.
I got two interfaces: eth0 connects to internet through PPPoE, eth1 to LAN.
I switched on forwarding in sysctl net.ipv4.ip_forward=1 and disabled iptables(policy accept). I can ping the gateway, but can't ping anything on the internet.
Best Answer
You need to use NAT to share the internet connection to your LAN.
Example:
See this guide at HowtoForge for more info: http://www.howtoforge.com/nat_iptables