On Mon, 21 Feb 2000, you wrote:
> John Aldrich wrote:
> > 
> > Can someone possibly shed light on why IPChains refuses to work for
> > me? Here's what I'm trying to do:
> > /sbin/ipchains -A output -d 199.95.207.0/24 -j DENY
> > /sbin/ipchains -A output -d 199.95.208.0/24 -j DENY
> 
> 
> INTERFACE_CARD="internet"   # whatever it is, ie; 100.200.201.202
> 
> try ipchains -A output -i $INTERFACE_CARD -p tcp \
>            -s 1.2.3.4 \
>            -d 199.95.208.0 -j DENY -l
> 
> don't forget your source and interface, and use variables such as
> $INTERFACE_CARD to set things like IP's/Ports
>
Ahh... I get it now. "$INTERFACE_CARD" will be replaced in
the string with eth0 (in my case because at work I'm on a
LAN and at home I'm on a lan-based ISDN router!) I just
tried it here at work and it worked w/o errors when I used
your string, replacing "-i $INTERFACE_CARD" with "-i eth0".
Thanks...
        John

Reply via email to