Does this iptables command equal the following ipchains command? If not,
can someone who has this working tell me what the correct equivalent is?
I am really having a hard time figuring this out. Would LOVE some help.
Thanks.

IPCHAINS=/sbin/ipchains
IPTABLES=/sbin/iptables
ALLADDR=0/0
EXTERNAL_IP="`/sbin/ifconfig ppp0 | grep 'inet addr' | awk '{print $2}'
| sed -e 's/.*://'`"
EXTERNAL_MASK="`/sbin/ifconfig ppp0 | grep 'inet addr' | awk '{print
$4}' | sed -e 's/.*://'`"
EXTERNAL_NET=$EXTERNAL_IP/$EXTERNAL_MASK

$IPTABLES -A INPUT -p tcp --source $ALLADDR --source-port 80
--destination $EXTERNAL_NET --destination-port 80 -j ACCEPT -v

$IPCHAINS -A input -p tcp -s $ALLADDR -d $EXTERNAL_NET 80 -j ACCEPT -v

This is just one small part of what I need to modify, but if someone can
give me some help/hints, I think I can get the rest going.



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to