Date: Sat, 23 May 1998 02:55:37 +0100 From: Brian Somers <brian@Awfulhak.org> To: Capriotti <capriotti@geocities.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: ppp aind dynamic IP Message-ID: <199805230155.CAA13556@awfulhak.org> In-Reply-To: Your message of "Fri, 22 May 1998 09:13:00 -0300." <3.0.32.19980522090911.0092a7b0@pop.mpc.com.br>
next in thread | previous in thread | raw e-mail | index | archive | help
The -current version of libalias has firewall punching code that'll
allow people inside access to the real world.
To execute an external command (passing it your IP), put this in
/etc/ppp/ppp.linkup:
shell mycommand MYADDR HISADDR INTERFACE
It's all in the man page :-)
> 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
>
--
Brian <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org>
<http://www.Awfulhak.org>
Don't _EVER_ lose your sense of humour....
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805230155.CAA13556>
