Linux Netfilter discussions
 help / color / mirror / Atom feed
From: varun_saa@vsnl.net
To: Jeffrey Laramie <JALaramie@Loudoun-Fairfax.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: myfirewall help
Date: Sat, 29 Jan 2005 15:33:39 +0500	[thread overview]
Message-ID: <21bb51821c02f3.21c02f321bb518@vsnl.net> (raw)



----- Original Message -----
From: Jeffrey Laramie <JALaramie@Loudoun-Fairfax.com>
Date: Thursday, January 27, 2005 8:27 pm
Subject: Re: myfirewall help

> On Thursday 27 January 2005 05:13, varun_saa@vsnl.net wrote:
> > Hello,
> >       My server is Mandrake 10.1
> > eth0 is WAN with static IP connected to 512k DSL
> > eth1 is LAN
> >
> > I am trying to write iptables rules and I am
> > stuck with some error.
> >
> > My iptable file is as follows :
> >
> > # Generated by iptables-save v1.2.9 on Thu Oct 21 05:32:36 2004
> > *nat
> >
> > :OUTPUT ACCEPT [0:0]
> > :PREROUTING ACCEPT [0:0]
> > :POSTROUTING ACCEPT [0:0]
> >
> > -A POSTROUTING -o eth0 -j MASQUERADE
> > COMMIT
> > # Completed on Thu Oct 21 05:32:36 2004
> > # Generated by iptables-save v1.2.9 on Thu Oct 21 05:32:36 2004
> > *mangle
> >
> > :PREROUTING ACCEPT [32056:3889577]
> > :INPUT ACCEPT [32010:3885659]
> > :FORWARD ACCEPT [0:0]
> > :OUTPUT ACCEPT [31637:4617585]
> > :POSTROUTING ACCEPT [31639:4618071]
> >
> > COMMIT
> > # Completed on Thu Oct 21 05:32:36 2004
> > # Generated by iptables-save v1.2.9 on Thu Oct 21 05:32:36 2004
> > *filter
> >
> > :FORWARD ACCEPT [0:0]
> > :INPUT DROP [0:0]
> > :OUTPUT ACCEPT [0:0]
> >
> > -A INPUT -j ACCEPT
> > -A INPUT -s 127.0.0.1 -j ACCEPT
> > -A INPUT -p tcp -m tcp -i eth1 -o eth0 --dport 3128 --sport 80 -j 
> ACCEPT> -A INPUT -p udp -m udp -i eth1 -o eth0 --dport 3128 --sport 
> 80 -j ACCEPT
> > COMMIT
> > # Completed on Thu Oct 21 05:32:36 2004
> >
> > When I am trying to save I get the following error :
> >
> > iptables-restore v1.2.9: Can't use -o with INPUT
> 
> The error message gives you the answer. You can't use the -o 
> parameter on the 
> INPUT chain since by definition the destination is always the local 
> host. 
> Remove "-o eth0" from your rules.
> 
> Jeff

I am writing firewall rules for the first time.
 
I am writing rules using webmin -> networking -> linux firewall.

First what do you think of the rule.

Second is it Ok to just remove -0 eth0.

Please feel free to correct me.

Thanks

Varun







             reply	other threads:[~2005-01-29 10:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-29 10:33 varun_saa [this message]
2005-01-29 14:29 ` myfirewall help Jeffrey Laramie
  -- strict thread matches above, loose matches on Subject: below --
2005-01-29  2:50 varun_saa
2005-01-27 10:13 varun_saa
2005-01-27 14:19 ` Jason Opperisano
2005-01-27 14:36   ` Eric Ellis
2005-01-27 14:44     ` Jason Opperisano
2005-01-27 18:29     ` R. DuFresne
2005-01-27 14:57 ` Jeffrey Laramie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=21bb51821c02f3.21c02f321bb518@vsnl.net \
    --to=varun_saa@vsnl.net \
    --cc=JALaramie@Loudoun-Fairfax.com \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox