Skip to contentSkip to conversation

please explain "--state RELATED/ESTABLISHED" rules in iptables

DISCUSSION Christian Seberino 2 participants 2 messages Jun 21, 2002

lore
Share & tools
lore
#0 lore raw

My firewall iptables script has rules to drop lots of packets and only forward certain packets.....

I've seen lots of iptables scripts that have rules with "--state RELATED" and "--state ESTABLISHED".

I know these have to do with TCP packets related to an existing TCP connection and such.

*What* are these rules good for? I didn't use them and couldn't see a need for them.

Chris

Signature · 13 lines
_______________________________________

Dr. Christian Seberino
SPAWAR Systems Center San Diego
Code 2363
53560 Hull Street
San Diego, CA 92152-5001
U.S.A.

Phone: (619) 553-7940
Fax:   (619) 553-2836
Email: [email protected]
_______________________________________
#1 lore raw
Quoted 8 lines · Christian Seberino

My firewall iptables script has rules to drop lots of packets and only forward certain packets.....

I've seen lots of iptables scripts that have rules with "--state RELATED" and "--state ESTABLISHED".

Quoted 5 lines

I know these have to do with TCP packets related to an existing TCP connection and such.

*What* are these rules good for? I didn't use them and couldn't see a need for them.

http://www.netfilter.org/documentation/HOWTO//packet-filtering-HOWTO-7.html#ss7.3

Look down until you find "the state match" section.

Antony