All of lore.kernel.org
 help / color / mirror / Atom feed
* filtering ruleset help sought
@ 2005-08-15 20:27 Barry Fawthrop
  2005-08-15 20:49 ` John A. Sullivan III
  2005-08-17  5:40 ` Grant Taylor
  0 siblings, 2 replies; 5+ messages in thread
From: Barry Fawthrop @ 2005-08-15 20:27 UTC (permalink / raw)
  To: netfilter

Hi

I was given a iptables ruleset (that I think was generated by firestarter)
I don't have GUI nor do I want to so I have no means to test it.
It runs on a gateway machine ETH0 = Wan and ETH1 = LAN NICs

I'm looking for a simple ruleset that will deny all outgoing traffic 
accept to a list of IP addresses found in a file
and only on port 80 for HTTP access only.

I have this:

$IPT -t filter -A INPUT -s $INNET -d 0/0 -j DROP
$IPT -t filter -A OUTPUT -s $INNET -d 0/0 -j DROP
$IPT -t filter -A OUTPUT -p icmp -s $INNET -d 0/0 -j DROP

while read s1 s2
     do
           $IPT -t filter -A INPUT  -s $INNET -d $s1 --dport 80 -j ACCEPT
           $IPT -t filter -A OUTPUT -s $INNET -d $s1 --dport 80 -j ACCEPT
           $IPT -t filter -A OUTPUT -p icmp -s $INNET -d $s1 -j ACCEPT
     done < /allowed-hosts


1) doesn't work complains about --dport
2) I can still ping other ip addresses not found in the allowed-hosts file?

Any help, most welcome
Thank You
Barry


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.9/72 - Release Date: 8/14/2005



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-08-17  5:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-15 20:27 filtering ruleset help sought Barry Fawthrop
2005-08-15 20:49 ` John A. Sullivan III
2005-08-15 21:02   ` Barry Fawthrop
2005-08-15 21:22     ` John A. Sullivan III
2005-08-17  5:40 ` Grant Taylor

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.