LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 10-12-2004, 02:46 PM   #1
helpme0904
Member
 
Registered: Sep 2004
Posts: 45

Rep: Reputation: 15
using iptables to create firewall


I am hosting a web server on port 80 and I am creating an iptable. I have already allowed the server to accept all INPUT packets on port 80. Is it necessary to set the iptable to accept all OUTPUT packets on port 80 as well.

 
Old 10-13-2004, 05:29 AM   #2
phantompgr
Member
 
Registered: Sep 2002
Location: South Wales, UK
Distribution: Fedora Core & Mandrake
Posts: 83

Rep: Reputation: 15
If your iptables config does egress filtering (dump all packets unless allowed) then you will need to do something like the following:

Append to the output table a line that allows all tcp packets from the src port 80.
A good security measure is to deny all syn requests from this port as the webserver should not be requesting connections.

It would look something like:
iptables -A OUTPUT -o eth1 -p tcp --source <IP ADDRESS> --sport 80 !--syn -j ACCEPT

Of course if you have no egress filtering, ie. your OUTPUT table has everything from your network card as ACCEPT then there is no need for any of this. From a security point of view though egress filtering is preferable to no egress filtering IMHO.
 
Old 10-13-2004, 04:31 PM   #3
helpme0904
Member
 
Registered: Sep 2004
Posts: 45

Original Poster
Rep: Reputation: 15
Please view the posted link below to see what I have setup for my iptables

http://www.linuxquestions.org/questi...hreadid=242167

 
  


Reply


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
Iptables with iptables-firewall.conf arno's matt3333 Slackware 16 06-28-2007 07:20 AM
I want to Create a web firewall and filter Nauntilus Linux - Networking 4 11-05-2005 09:51 PM
trying to create 2nd firewall jimieee Linux - Networking 1 05-14-2005 05:58 AM
IPTABLES firewall Vs rc firewall netguy2000 Linux - Security 7 02-28-2004 04:31 AM
Want to create a firewall using Mandrake 9 mlsbraves Linux - Networking 1 02-26-2004 06:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 06:33 AM.

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