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 majo...@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
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 :-)
--
Brian <br...@Awfulhak.org>, <br...@FreeBSD.org>, <br...@OpenBSD.org>
<http://www.Awfulhak.org>
Don't _EVER_ lose your sense of humour....