Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-05-2007, 01:34 AM   #1
LQ Newbie
Registered: Aug 2007
Posts: 13

Rep: Reputation: 0
Iptables Connection Tracking

I am curious regarding the iptables action if following rules are in order for the port 80 for inbound connection w.r.t the firewall.

Is the follwing rules in order are correct i.e. web server will perform well if following rules have been placed.

iptables -A FORWARD -i eth0 -p tcp -tcp-flags SYN,ACK,FIN,RST ACK -s 0/0 -d --dport 80 -m state --state NEW -j LOG
iptables -A FORWARD -i eth0 -p tcp -tcp-flags SYN,ACK,FIN,RST ACK -s 0/0 -d --dport 80 -m state --state NEW -j DROP

iptables -A FORWARD -i eth0 -p tcp -tcp-flags SYN,ACK,FIN,RST SYN -s 0/0 --sport 1024:65535 -d --dport 80 -m state --state NEW -j ACCEPT

iptables -A FORWARD -i eth1 -p tcp -tcp-flags SYN,ACK,FIN,RST SYN,ACK -s --sport 80 -d 0/0 --dport 1024:65535 -m state --state NEW,ESTABLISHED -j ACCEPT

iptables -A FORWARD -i eth0 -p tcp -tcp-flags SYN,ACK,FIN,RST ACK -s 0/0 --sport 1024:65535 -d --dport 80 -m state --state ESTABLISHED,RELATED -j ACCEPT
Old 09-05-2007, 12:50 PM   #2
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
Are you unable to do preliminary testing yourself for some reason?

On a side note, I'm moving this to Linux - Networking, as asking whether or not your web server will perform well with a certain set of iptables rules isn't really a security question.

Last edited by win32sux; 09-05-2007 at 12:53 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how does IPTABLES -A FORWARD two way traffic without using connection tracking? farhan Linux - Security 4 09-05-2007 12:31 PM
Problem with connection tracking in IPtables!! vishamr2000 Linux - Security 2 05-09-2007 01:50 PM
Help with connection tracking!! vishamr2000 Linux - Security 1 05-27-2005 04:47 AM
iptables tracking machine eranb2 Linux - Security 4 01-07-2005 11:12 AM
Tracking internet usage with iptables mdkelly069 Linux - Networking 7 09-13-2004 11:13 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:17 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration