LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-02-2006, 01:04 AM   #1
rock_micro2004
LQ Newbie
 
Registered: Feb 2006
Posts: 1

Rep: Reputation: 0
Lightbulb help me how to configure best firewall in linux


I m suffering a log n my network boz of lots of virues attcking in my network. That way most of the time my network get hang. I wnat to configure a firewall on linux pc. I have redhat Linux ES 4 edition. I dont know exectly how to configure firewall. I want nobody should able to access my network and dont want to allow download .exe, online music and pron site. I also wana restrict abuse or any type of thread to enter into my network. I want to know, if too much broadcasting in my network so how can i control via iptables or else.

Pls help me. if u have any solution so pls mail me at rock_micro2004@yahoo.com


Thank you

Akhil
 
Old 03-02-2006, 02:39 AM   #2
nguyennh
Member
 
Registered: Feb 2006
Location: Vietnam
Distribution: FC , RH , SuSE
Posts: 106

Rep: Reputation: 15
Quote:
I want nobody should able to access my network and dont want to allow download .exe, online music and pron site.
If nobody can access your network he can not do anything (include downloading) , and then your network is invisible to everyone . Are your sure that you want it .
This is command deny all connections to your system :
iptables -I INPUT -i <your NIC such as eth0> -j DROP .

Last edited by nguyennh; 03-02-2006 at 02:41 AM.
 
Old 03-02-2006, 03:00 AM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
You can use iptables to do this. Although it's not complicated, you do need to spend some time planning which traffic you want to allow into and out of your network as well as which traffic you want to keep out. I'd recommend doing some reading first - there are plenty of good references around. Places like the netfilter documentation page at http://www.netfilter.org/documentation/index.html and Arno's iptables page at http://rocky.eld.leidenuniv.nl/ are useful.

Please don't ask for email responses - the debate and solution of problems should be here for everyone to see...
 
Old 03-02-2006, 07:42 AM   #4
Jaqui
Member
 
Registered: Jan 2006
Location: Vancouver BC
Distribution: LFS, SLak, Gentoo, Debian
Posts: 291

Rep: Reputation: 36
Three resources specific to building a good iptables firewall, two are blog entries and one is an article.

1) Apotheon's Blog entries

2) The Article


You may need to sign up for a free membership to view the entries.
 
Old 03-02-2006, 06:28 PM   #5
crimsontide
Member
 
Registered: Aug 2003
Location: Omaha, Nebraska
Distribution: Red Hat, Fedora, Debian
Posts: 65

Rep: Reputation: 15
A simplier approach for you may be to install IPCop or Red Wall

http://www.redwall-firewall.com/

http://www.ipcop.org/

If you are going to run a full distro as a firewall look at Firestarter. Its a GUI for the iptables

http://www.fs-security.com/

Last edited by crimsontide; 03-02-2006 at 06:30 PM.
 
  


Reply



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 do I configure Linux to act as a general firewall? jroberts256 Linux - Security 1 02-20-2005 12:50 PM
Need to configure firewall aargh Fedora 3 09-17-2004 02:34 PM
How to install and configure a firewall on Red Hat 9 linux fhameed Linux - Security 3 05-01-2004 03:22 PM
how to configure a linux firewall behind my cisco router totfc Linux - Security 0 06-01-2002 11:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:33 PM.

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