[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ipfwadm rules question...



>Thoughts?  I presume this would be much easier if I used a static IP, but
>the boxes I use don't authenticate with TACACS+ or radius, so I can't just
>make an entry..  I'd be able to do some cut/awk type stuff to extract the
>IP and add the stuff to the bottom of /usr/bin/pon, but I just need what
>rule(s) to add...  In fact, here's the awking I'd be using:
>
>ifconfig ppp0 | head -2 | tail -1 | awk -F " " '{print $2}' \
>| awk -F: '{print $2}'

I don't know anything about ipfwadm but it would be much easier to use on
of these variables in /etc/ppp/ip-up and then remove the rule in ip-down

#    Arg  Name               Example
#    $1   Interface name     ppp0
#    $2   The tty            ttyS1
#    $3   The link speed     38400
#    $4   Local IP number    12.34.56.78
#    $5   Peer  IP number    12.34.56.99

Adam.


Reply to: