Linux Netfilter discussions
 help / color / mirror / Atom feed
* iptables related
@ 2003-12-08 19:19 Jeffrin
  2003-12-08 19:28 ` Antony Stone
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Jeffrin @ 2003-12-08 19:19 UTC (permalink / raw)
  To: netfilter

hello all,

iptables -A INPUT -sport 80 -j ACCEPT

shows error ...

 msservices:~# iptables -A INPUT --sport 80 -j ACCEPT
iptables v1.2.9: Unknown arg `--sport'
Try `iptables -h' or 'iptables --help' for more information.

please help me ...



^ permalink raw reply	[flat|nested] 15+ messages in thread
* RE: iptables related
@ 2003-12-08 20:19 Daniel Chemko
  0 siblings, 0 replies; 15+ messages in thread
From: Daniel Chemko @ 2003-12-08 20:19 UTC (permalink / raw)
  To: Jeffrin, Antony Stone; +Cc: netfilter

Because ping is a PROTOCOL called ICMP. It has two different packet
types, ICMP type 0 and 8.

0 == Reply
8 == Request

Hence, if you want to ping the system, you should add the ability for
those protocols to be accepted.

iptables -A INPUT -p icmp --icmp-type 8 -j ACCEPT

Please do SOME research before asking such elementary questions on a
tools list. This is not a networking newbie list (although there really
should be one somewhere). This is for netfilter related material, but
what you seem to lack is a general misunderstanding of networks.

Arr. I've gotten a lot more impatient with ppl ever since I got a junior
admin... Sorry man, I know you're just learning and all.

-----Original Message-----
From: Jeffrin [mailto:jeffrin@gamebox.net] 
Sent: Monday, December 08, 2003 11:45 AM
To: Antony Stone
Cc: netfilter@lists.netfilter.org
Subject: Re: iptables related


hello ,

iptables -P INPUT DROP
iptables -A INPUT -p tcp --sport 80 -j ACCEPT

Iam not able to ping. why ?




^ permalink raw reply	[flat|nested] 15+ messages in thread
* RE: iptables related
@ 2003-12-08 19:57 Daniel Chemko
  0 siblings, 0 replies; 15+ messages in thread
From: Daniel Chemko @ 2003-12-08 19:57 UTC (permalink / raw)
  To: Antony Stone, netfilter

Wow! This must be a record!

8 Responses to the same question, and ALL of them are right!!!

-----Original Message-----
From: Antony Stone [mailto:Antony@Soft-Solutions.co.uk] 
Sent: Monday, December 08, 2003 11:42 AM
To: netfilter@lists.netfilter.org
Subject: Re: iptables related


On Monday 08 December 2003 7:35 pm, Jeffrey Laramie wrote:

> On Monday 08 December 2003 14:19, Jeffrin wrote:
> > hello all,
> >
> > iptables -A INPUT -sport 80 -j ACCEPT
> >
> > shows error ...
> >
> >  msservices:~# iptables -A INPUT --sport 80 -j ACCEPT iptables 
> > v1.2.9: Unknown arg `--sport' Try `iptables -h' or 'iptables --help'

> > for more information.
> >
> > please help me ...
>
> There are 2 dashes before sport:  --sport 80

2 dashes and a protocol :)

Antony.

-- 
Behind the counter a boy with a shaven head stared vacantly into space,
a dozen spikes of microsoft protruding from the socket behind his ear.

 - William Gibson, Neuromancer (1984)

                                                     Please reply to the
list;
                                                           please don't
CC me.




^ permalink raw reply	[flat|nested] 15+ messages in thread
* iptables + RELATED
@ 2003-08-12 18:41 Peter Marshall
  0 siblings, 0 replies; 15+ messages in thread
From: Peter Marshall @ 2003-08-12 18:41 UTC (permalink / raw)
  To: netfilter

Hi, My name is Peter Marshall.  I am having some problems letting ftp
through my firewall without opening all of the ports.  I was trying to get
RELATED to work, but for some reason it will not.  Here is an example of
what my file looks like

$TABLENAME -A FORWARD -d x.x.x.x -o eth2 -j mychain

$TABLENAME -A mychain -m state --state ESTABLISHED,RELATED -j ACCEPT
$TABLENAME -A mychain -j DROP

I don't think I need the ESTABLISHED, but I put it in anyways.

If anyone could help it would be greatly appriciated.

Thanks


Peter Marshall




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

end of thread, other threads:[~2003-12-11 12:08 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-08 19:19 iptables related Jeffrin
2003-12-08 19:28 ` Antony Stone
2003-12-08 19:44   ` Jeffrin
     [not found]     ` <200312081506.30519.Alistair Tonner <>
2003-12-08 20:12       ` Jeffrin
2003-12-08 20:33         ` Jeffrey Laramie
2003-12-11 12:08     ` Renato Carvalho
2003-12-08 19:29 ` Ralf Spenneberg
2003-12-08 19:35 ` Jeffrey Laramie
2003-12-08 19:42   ` Antony Stone
2003-12-08 19:57     ` Jeffrey Laramie
2003-12-08 19:36 ` William Stearns
2003-12-08 19:38 ` Michael Gale
  -- strict thread matches above, loose matches on Subject: below --
2003-12-08 20:19 Daniel Chemko
2003-12-08 19:57 Daniel Chemko
2003-08-12 18:41 iptables + RELATED Peter Marshall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox