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

Re: IP address and ipfwadm



Lawrence <ychim@ForeverMail.com> writes:

> I am using dialup PPP and need to run ipfwadm everytime I connect to my
> ISP.  I know that I can put ipfwadm into /etc/rc file.  What is the
> best/easy way to get the IP address other than using ifconfig or route
> (they are not good because the output is more than one line)?
> 
> ipfwadm -A -a -P ****My IP address go here**** -D 0/0

Is that really what you want?

    # ipfwadm -A -a -P 192.168.117.2 -D 0/0
    ipfwadm: invalid protocol "192.168.117.2" specified
    Try `ipfwadm -h' for more information.

I'll assume that should be `-S'.

Apart from looking at ip-up, I'd suggest you also think about other
ways of doing this, like:

    # ipfwadm -A -a

if you only have the dialup interface, or

    # ipfwadm -A -a -W ppp0

if you just want to do accounting on your PPP connections.

-- 
    Carey Evans  <*>  http://home.clear.net.nz/pages/c.evans/  gc

kernel: Warning: possible SYN flooding. Sending cookies. 
kernel: validated probe(100007f, 100007f, 11557, 5010, -1645409555) 


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: