LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-26-2010, 06:28 AM   #1
k_oudom
Member
 
Registered: Aug 2009
Posts: 293

Rep: Reputation: 30
Red Hat 5 Internet Firewall


I already have Linux Enterprise 5 system installed with some server packages such as Webmin, Active Directory, Web Server which also act as Internet gateway. Now I want to add firewall functionality to block clients ip accessing internet. Can anyone help and give me the tutorial?
 
Old 01-26-2010, 07:28 AM   #2
Web31337
Member
 
Registered: Sep 2009
Location: Russia
Distribution: Gentoo, LFS
Posts: 399
Blog Entries: 71

Rep: Reputation: 65
sure, man iptables.
to get a tutorial, just google for it.
 
Old 01-26-2010, 08:55 AM   #3
k_oudom
Member
 
Registered: Aug 2009
Posts: 293

Original Poster
Rep: Reputation: 30
Can you show me what package I need to install? How to install and configure?
 
Old 01-26-2010, 01:52 PM   #4
housemusic42
Member
 
Registered: Dec 2003
Location: St. Louis
Distribution: redhat 9
Posts: 31

Rep: Reputation: 15
iptables (your firewall software) in RHEL5 comes default.


from a command line run:

Code:
system-config-securitylevel
that should give you a good start
 
Old 01-26-2010, 03:49 PM   #5
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
Originally Posted by k_oudom View Post
I already have Linux Enterprise 5 system installed with some server packages such as Webmin, Active Directory, Web Server which also act as Internet gateway.
You installed active directory on RHEL? OK.

Quote:
Now I want to add firewall functionality to block clients ip accessing internet.
May not be possible, depending on your network structure, which you haven't mentioned. Shouldn't be a problem to you, though.

For iptables, there is a lot of material online; for a manual try this.
 
Old 01-27-2010, 09:07 AM   #6
k_oudom
Member
 
Registered: Aug 2009
Posts: 293

Original Poster
Rep: Reputation: 30
The network structure is that there is only a way internet traffic go through is the server. So if the server can be use as firewall, that would be enough to block traffic. So i'm not talking about normal firewall which just protect the server.
 
Old 02-04-2010, 06:19 AM   #7
k_oudom
Member
 
Registered: Aug 2009
Posts: 293

Original Poster
Rep: Reputation: 30
Today, I find out that the server have iptables installed already. It use Webmin as control panel. Now I want to know about how to block outgoing traffic using Webmin - Linux Firewall. Can anyone give me an example on how to block an IP of a local computer to access internet? I see too many options in Webmin - Linux Firewall. The server has two interfaces, one is WAN, one is LAN.
 
Old 02-05-2010, 04:34 AM   #8
k_oudom
Member
 
Registered: Aug 2009
Posts: 293

Original Poster
Rep: Reputation: 30
IPTables Screenshot
 
Old 02-05-2010, 04:51 AM   #9
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

Have a look here.

Code:
http://www.cyberciti.biz/faq/how-do-i-block-an-ip-on-my-linux-server/
Kind regards,

Eric
 
Old 02-05-2010, 06:07 AM   #10
k_oudom
Member
 
Registered: Aug 2009
Posts: 293

Original Poster
Rep: Reputation: 30
Eric, I read topic you gave me. I'm not sure if they talk about blocking an ip to access to local network and server. My network structure has two interfaces but the topic does not include any interface. I don't want block an ip access LAN(ether0) but I want traffic to stop when they bound outside to internet via WAN(ether1). Hope you can understand my writing.
 
Old 02-05-2010, 10:09 AM   #11
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

I don't have a lot of experience using/configuring iptables, so let's hope someone else kicks in with an answer/solution/tip/howto/link.

Kind regards,

Eric
 
Old 02-05-2010, 11:11 PM   #12
Smartpatrol
Member
 
Registered: Sep 2009
Posts: 196

Rep: Reputation: 38
...

Last edited by Smartpatrol; 03-11-2010 at 10:04 PM.
 
Old 02-05-2010, 11:26 PM   #13
k_oudom
Member
 
Registered: Aug 2009
Posts: 293

Original Poster
Rep: Reputation: 30
I think I want to use Webmin that already installed. Do you experience Webmin? Webmin - Linux Firewall
 
Old 02-06-2010, 09:43 PM   #14
Smartpatrol
Member
 
Registered: Sep 2009
Posts: 196

Rep: Reputation: 38
...

Last edited by Smartpatrol; 03-11-2010 at 10:04 PM.
 
Old 02-07-2010, 01:40 AM   #15
k_oudom
Member
 
Registered: Aug 2009
Posts: 293

Original Poster
Rep: Reputation: 30
But It seem that iptables command did not take effect. I think webmin protect iptables from accessing. Can anyone just tell me how to configure using webmin web interface? Anyone ever use Webmin?
 
  


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
red hat firewall werre300 Linux - Newbie 4 01-30-2007 12:39 PM
Need some Help with the firewall in Red Hat 8 ZFighteR Linux - Networking 7 03-31-2003 06:50 PM
Red Hat 8 and Firewall...... cnc76 Linux - Distributions 1 01-24-2003 04:12 PM
Red Hat 8 and Firewall...... cnc76 Linux - Networking 1 01-24-2003 11:07 AM
Red Hat Firewall Sigmund Gudvang Linux - Networking 2 04-29-2002 05:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03: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