From: Bhaskar <vbhaskar@rocsys.com>
To: Jan Engelhardt <jengelh@computergmbh.de>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: What does SPI firewall Mean?
Date: Fri, 04 Apr 2008 14:53:04 +0530 [thread overview]
Message-ID: <47F5F378.3010304@rocsys.com> (raw)
In-Reply-To: <alpine.LNX.1.10.0804041035350.1301@fbirervta.pbzchgretzou.qr>
SPI - Stateful Packet Inspection Firewall
NW - Network
"That is because -- despite the connection "association" being active --
you only allow http from eth0->eth1 but not the reverse direction. "
How do I make sure that the associate be used?
Jan Engelhardt wrote:
>
> On Friday 2008-04-04 09:32, Bhaskar wrote:
>
>> I have been thinking about this questions. The obvious answer I got is
>> SPI firewall understands the states of the packet flow
>
> Security Parameter Index
> Single Packet Inspection
> Stateless Packet Inspection
> Stateful Packet Inspection
> ...
> FWIW PCMCIA!</sarcasm>
>
> (I have no joy figuring out what all your acronyms, SPI and NW mean.)
>
>> 1. iptables -A FORWARD -i eth0 -o eth1 -p tcp -m state --state
>> NEW,ESTABLISHED --dport 80 -j ACCEPT
>> 2. iptabgles -A FORWARD -i eth0 -o eth1 -p udp -m udp --dport 53 -j
>> ACCEPT
>> 3. iptables -A FORWARD -j LOG --log-prefix "Dropping Other Packets:"
>> 4. iptables -A FORWARD -j DROP
>>
>> 1. iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
>>
>> The intension is to allow HTTP Traffic to the internal network. With
>> the above setup I am not able to browse from PC connected in Protected
>> NW.
>
> That is because -- despite the connection "association" being active --
> you only allow http from eth0->eth1 but not the reverse direction.
>
>> After analyzing the Logs and added another 2 policies above Policy
>> Number 3:
>> iptables -A FORWARD -i eth1 -o eth0 -p tcp -m state --state
>> NEW,ESTABLISHED --sport 80 -j ACCEPT
>> iptables -A FORWARD -i eth1 -o eth0 -p udp -m udp --sport 53 -j ACCEPT
>>
>> After adding these policies I am able to browse. AFAIK, once an
>> association is created (first time when packet is passing through
>> netfilter), the associated traffic would flow and Policies are not
>> parsed for the verdict.
> --
> To unsubscribe from this list: send the line "unsubscribe
> netfilter-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2008-04-04 9:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-04 7:32 What does SPI firewall Mean? Bhaskar
2008-04-04 8:49 ` Jan Engelhardt
2008-04-04 9:23 ` Bhaskar [this message]
2008-04-04 9:47 ` Jan Engelhardt
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=47F5F378.3010304@rocsys.com \
--to=vbhaskar@rocsys.com \
--cc=jengelh@computergmbh.de \
--cc=netfilter-devel@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 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.