Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Karim Asif <karimas@kfupm.edu.sa>
To: netfilter@vger.kernel.org
Subject: Re: accept rule not working.
Date: Wed, 07 May 2008 18:39:36 +0300	[thread overview]
Message-ID: <001601c8b058$8f04b480$87035a0a@KarimAsif> (raw)
In-Reply-To: 4821CAD7.5060208@freemail.hu

Try to use

/sbin/iptables -A INPUT -i eth0 -p tcp -m state --state 
NEW,ESTABLISHED --sport 80 -s 192.168.113.94 -j ACCEPT

Assuming that by default you are dropping the rest of incoming traffic.

Also, try to check where the communication is blocked. use the following 
sniffer command.

# tcpdump -i eth0 ip host 192.168.113.94

----- Original Message ----- 
From: "Gáspár Lajos" <swifty@freemail.hu>
To: <eial@cs.bgu.ac.il>
Cc: <netfilter@vger.kernel.org>
Sent: Wednesday, May 07, 2008 6:29 PM
Subject: Re: accept rule not working.


> eial@cs.bgu.ac.il írta:
>> I've created this rule:
>> /sbin/iptables -A INPUT -i eth0 -p tcp -m state --state NEW --sport 80 -s 
>> 192.168.113.94 -j ACCEPT
>>
>> but the firewall still blocks it, I guess there is a typo somewhere but I 
>> cant seem to be able to find it
>> any hints?
>>
>>
> No typo... maybe... :D
>
> Please include the output of these commands:
>
> iptables -vnL
> iptables -t nat -vnL
> iptables -t mangle -vnL
> iptables -t raw -vnL
>
> Thanx...
>
> Swifty
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html 


  reply	other threads:[~2008-05-07 15:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-07 15:14 accept rule not working eial
2008-05-07 15:29 ` Gáspár Lajos
2008-05-07 15:39   ` Karim Asif [this message]
2008-05-07 15:58   ` Jan Engelhardt
2008-05-07 15:29 ` Rob Sterenborg
2008-05-07 21:25   ` eial
2008-05-08  9:28     ` Gáspár Lajos
2008-05-08  5:25 ` eial
     [not found] <200805090443.m494hPLn001206@indigo.cs.bgu.ac.il>
2008-05-09  6:37 ` Gáspár Lajos

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='001601c8b058$8f04b480$87035a0a@KarimAsif' \
    --to=karimas@kfupm.edu.sa \
    --cc=netfilter@vger.kernel.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