Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-15-2003, 10:46 AM
|
#1
|
LQ Newbie
Registered: Dec 2003
Distribution: conectiva, debian
Posts: 5
Rep:
|
Do I need an firewall if I set my tcpwrappers like this?
I set my tcpwrappers like this, is it secure?
Do I need a firewall?
/etc/hosts.allow:
ALL: 127.
/etc/hosts.deny:
ALL: ALL
|
|
|
12-15-2003, 11:27 AM
|
#2
|
Senior Member
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
|
A firewall is usually not considered optional; you need it regardless of how you have your host configured. A firewall is a hedge-bet hoping that you have everything configured right, but just in case... Also, some times software (or OS) updates on your system will have unintended consequences and leave you open to things that you weren't open to before. That's what the firewall is for.
In theory, if you properly configure everything on your host and secure all your network applications, you wouldn't need a firewall (indead the SDSC does not use firewalls at all), but this assumes you're an elite security professional who never makes a mistake. You may be a professional, but you're still human, right? Mistakes are made every day...
|
|
|
12-15-2003, 01:33 PM
|
#3
|
Member
Registered: May 2003
Location: Berlin
Distribution: Slackware 9.1 Kernel: 2.6.4
Posts: 60
Rep:
|
Not every service runs through inetd/tcpwrappers (say - tcpd).
For example the X Server listens on port 6000/tcp by default, changes to your /etc/hosts.* files doesn't matter for this, as the X Server is not run with inetd/tcpd.
A Packetfilter is the safe bet.
|
|
|
12-16-2003, 11:14 PM
|
#4
|
Member
Registered: Oct 2003
Location: Toronto, Canada
Distribution: Ubuntu, FC3, RHEL 3-4 AS Retired: SuSE 9.1 Pro, RedHat 6-9, FC1-2
Posts: 360
Rep:
|
You still need a firewall.
|
|
|
12-17-2003, 10:21 AM
|
#5
|
LQ Newbie
Registered: Dec 2003
Distribution: conectiva, debian
Posts: 5
Original Poster
Rep:
|
Now I'm sure, I really need a firewall, then I have some others questions.
First, I use Debian GNU/Linux, Kernel 2.2.xx, but I don't know if my kernel is configured to firewall (I looked at /proc/net, but there was nothing about ipfw_chains). Do I need to recompile/reinstall my kernel?
There are another way to do this?
Second, All examples of firewall that I saw, have one machine (firewall) between the internal network and the internet with two network cards. I use one machine with only one network card linked to the Internet. Do I need to use NAT or maskarade do make my firewall to work? If so, how to do it with my configuration?
Thank's a lot
|
|
|
12-17-2003, 10:59 AM
|
#6
|
Member
Registered: Oct 2003
Location: Toronto, Canada
Distribution: Ubuntu, FC3, RHEL 3-4 AS Retired: SuSE 9.1 Pro, RedHat 6-9, FC1-2
Posts: 360
Rep:
|
If possible, you should upgrade to at least kernel 2.4.x because I believe the 2.2.x kernels only used ipchains. I don't remember enough about ipchains to help you with issues on that subject.
As for your second question, no. You do not need NAT if you only have one machine (MASQUERADE is just a special form of NAT so you don't need that either).
|
|
|
12-18-2003, 09:27 AM
|
#7
|
LQ Newbie
Registered: Dec 2003
Distribution: conectiva, debian
Posts: 5
Original Poster
Rep:
|
Do I need to recompile/reinstall my kernel?
Are there an way of set firewalling with out need to recompile/reinstall the kernel, if it isn't configured to?
My kernel is 2.2.20 and I would like to try ipchains.
But if it is not possible to configure with out recompile/reinstall, I will use the latest kernel, of course.
|
|
|
12-18-2003, 11:19 AM
|
#8
|
Moderator
Registered: May 2001
Posts: 29,415
|
I use Debian GNU/Linux, Kernel 2.2.xx, but I don't know if my kernel is configured to firewall (I looked at /proc/net, but there was nothing about ipfw_chains). Do I need to recompile/reinstall my kernel?
My kernel is 2.2.20 and I would like to try ipchains.
Check out the modules that came with the kernel.
If you haven't any *then* you need to recompile.
If you don't need the stateful filtering caps or other stuff, then Ipchains is a good start, at least you'll have a firewall...
Are there an way of set firewalling with out need to recompile/reinstall the kernel, if it isn't configured to?
What's called the "firewall" is actually part kernel framework, part user tools. It's not an add-on like some app. The kernel part takes care of the filtering, the userland tools, ipchains in 2.2.x and iptables in 2.4.x, are necessary because you have to "feed" the rules to the kernel. You don't want the kernel to read stuff itself and fsck up.
|
|
|
All times are GMT -5. The time now is 06:53 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|