I want to setup a Debian Linux "ppp gateway" in my LAN. This ppp gateway accepts ppp clients using pppd to make pppoe connection to itself, and this ppp gateway also shares its ADSL connection from ISP to LAN. The concept is as following.
192.168.1.0/24 ---(LAN)--- 192.168.1.1+eth1 "ppp gateway" eth0+ppp0 ----- ISP --- Internet
The key notes of "ppp gateway" are,
1. ppp gateway accepts ppp client use pppd call-in.
2. ppp gateway like ISP to give client its ip, netmask and gateway.
3. ppp gateway shares ppp0 Internat bandwidth among ppp client.