On 4 Mar 2001, Chmouel Boudjnah wrote:

> Sebastian Dransfeld <[EMAIL PROTECTED]> writes:
>
> > Destinations should be uppercase ("INPUT" not "input"), and -p and -f are
> > not switches to iptables.
>
> can you attach your patch with MIME ? seems like Pine wrap the lines of the
> patch.. (which make the patch unusable).

seb
--- iptables.old        Sun Mar  4 14:25:48 2001
+++ iptables    Sun Mar  4 14:27:04 2001
@@ -47,7 +47,7 @@
            action "Clearing all current rules and user defined chains:" iptables -X
            iptables -Z
            echo $"Applying iptables firewall rules: "
-               grep -v "^[[:space:]]*#" $IPTABLES_CONFIG | grep -v '^[[:space:]]*$' | 
/sbin/iptables-restore -p -f && \
+               grep -v "^[[:space:]]*#" $IPTABLES_CONFIG | grep -v '^[[:space:]]*$' | 
+/sbin/iptables-restore && \
                    success "Applying iptables firewall rules" || \
                    failure "Applying iptables firewall rules"
            echo
@@ -59,9 +59,9 @@
        action "Flushing all chains:" iptables -F
        action "Removing user defined chains:" iptables -X
        echo $"Resetting built-in chains to the default ACCEPT policy:"
-       iptables -P input ACCEPT && \
-          iptables -P forward ACCEPT && \
-          iptables -P output ACCEPT && \
+       iptables -P INPUT ACCEPT && \
+          iptables -P FORWARD ACCEPT && \
+          iptables -P OUTPUT ACCEPT && \
           success "Resetting built-in chains to the default ACCEPT policy" || \
           failure "Resetting built-in chains to the default ACCEPT policy"
        echo
@@ -94,13 +94,13 @@
 
   panic)
        echo $"Changing target policies to DROP: "      
-       iptables -P input DROP && \
-           iptables -P forward DROP && \
-           iptables -P output DROP && \
+       iptables -P INPUT DROP && \
+           iptables -P FORWARD DROP && \
+           iptables -P OUTPUT DROP && \
            success "Changing target policies to DROP" || \
            failure "Changing target policies to DROP"
        echo
-       action "Flushing all chains:" iptables -F input && iptables -F forward && 
iptables -F output
+       action "Flushing all chains:" iptables -F INPUT && iptables -F FORWARD && 
+iptables -F OUTPUT
        action "Removing user defined chains:" iptables -X
        ;;
 

Reply via email to