From owner-freebsd-net Tue Oct 30 10: 0:20 2001 Delivered-To: freebsd-net@freebsd.org Received: from cuimail.unige.ch (cuimail.unige.ch [129.194.69.50]) by hub.freebsd.org (Postfix) with ESMTP id F026037B403 for ; Tue, 30 Oct 2001 10:00:17 -0800 (PST) Received: from cuisuna.unige.ch ([129.194.69.101]) by cuimail.unige.ch (PMDF V6.0-025 #38753) with SMTP id <0GM100CD860D8T@cuimail.unige.ch> for freebsd-net@FreeBSD.ORG; Tue, 30 Oct 2001 19:00:13 +0100 (MET) Date: Tue, 30 Oct 2001 19:00:11 +0100 (MET) From: QUEVEDO BUSTILLOS Jose Federico Subject: ng_pppoe accounting? X-Sender: quevedo6@cuisuna.unige.ch To: freebsd-net@FreeBSD.ORG Message-id: MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, I'm a newbie in netgraph structures and I will like to ask your advice about some PPPoE related ideas. I'm using a FreeBDS box with PPPoE installed and working as a gateway. My goal is to establish basic administration and accounting for PPPoE users. The basic accounting needs (not commercial goals) are: 1. Keep track of the MAC addresses and users names of the PPPoE connections to the gateway, store time connection of the session and traffic generated. 2. Dynamic assignation of IP address. (I think on two possibilities a) PPPoE assignation: when PADR arrives, the gw should look into a pool of IP adresses and assign one "before calling PPP". B) leave PPP the assignation and capture the IP in other way). Result: A log file produced with a session match of: MAC add - IP add - username - time of session. Should I touch the ng_pppoe code? or should I create a netgraph node to place between ng_node and ng_ppp? Am I on the good way Thanks in advance, Federico Quevedo ................................................................. Federico Quevedo To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message