From owner-freebsd-questions Fri May 22 05:12:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA08478 for freebsd-questions-outgoing; Fri, 22 May 1998 05:12:10 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from server4.mpcbbs.com.br (server4.mpc.com.br [200.246.0.252]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA08393 for ; Fri, 22 May 1998 05:11:54 -0700 (PDT) (envelope-from capriotti@geocities.com) Received: from hot_nt (node43.mpc.com.br [200.246.0.43]) by server4.mpcbbs.com.br (8.8.6/8.8.6) with SMTP id JAA01238 for ; Fri, 22 May 1998 09:11:48 -0300 (EST) Message-Id: <3.0.32.19980522090911.0092a7b0@pop.mpc.com.br> X-Sender: capriotti@pop.mpc.com.br X-Mailer: Windows Eudora Pro Version 3.0 (32) Date: Fri, 22 May 1998 09:13:00 -0300 To: freebsd-questions@FreeBSD.ORG From: Capriotti Subject: ppp aind dynamic IP Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have 3 main questions about PPP: 1) after connection has been stablished, how do I know ehat IP address was issued to me ? I would like to pass this ip value to an environment variable to be used by ipfw latter, what takes me to the second question: 2) How do I execute an external command after ppp has connected to my ISP (from ppp.conf preferably, since it is used everytime I have to connect)? I need to pass the IP address to the environment, AND to run IPFW commands like ipfw delete 100 deny tcp from any to ${old_ip_number] via tun0; ipfw add 100 deny tcp from any to $[new_ip_got_from_ips] via tun0. It seems to be an easy way to keep my firewall working even with a DIAL-UP loink to the internet. Note: ppp -alias -auto being used, started from rc.d. TIA. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message