View previous topic :: View next topic |
Author |
Message |
matttah Apprentice
Joined: 22 Jan 2005 Posts: 207
|
Posted: Thu Apr 19, 2007 6:05 pm Post subject: iptables/firewall importance? |
|
|
I have been in linux for years now and just getting around to probably securing my computer. I am currently behind a router which I have only forward certain ports to my computer, but otherwise I have no firewalls in place. Is it necessary? As of now I only have ssh and http forwarded to my machine. What do you suggest I read to start securing my computer.
Thanks,
Daumdd |
|
Back to top |
|
|
tanderson Retired Dev
Joined: 11 Apr 2007 Posts: 193
|
Posted: Thu Apr 19, 2007 7:09 pm Post subject: |
|
|
If your http server is directly accessible to the internet, I would suggest installing Apache into a chroot jail, to limit what kind of damage an attack on your apache can do.
Also, try turning off Root logins from ssh and disable password authentication from ssh. The config file is very well documented. _________________ No Man is Just a Number!
--The Prisoner |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23062
|
|
Back to top |
|
|
pdr l33t
Joined: 20 Mar 2004 Posts: 618
|
Posted: Fri Apr 20, 2007 11:30 am Post subject: |
|
|
I'm the same. I don't run an extra firewall because it would have nothing to do except to protect against attacks from my intranet machines, and they are trusted. |
|
Back to top |
|
|
stdPikachu Apprentice
Joined: 10 Mar 2004 Posts: 254 Location: UK
|
Posted: Fri Apr 20, 2007 4:49 pm Post subject: |
|
|
Even if you only have services like SSH that face the internet, a simple firewall can stop someone DOSing your connection by using a rate limit filter. I am also in the same boat as you (i.e. been using Linux for years but never set up a firewall) but after reading a few books on network security I'm more convinced that an extra layer of security can't hurt.
My current firewall is allowing connections to certain services only based on IP and MAC addresses, others are available to the local subnet, others are available to the entire internet. Even if it makes little to no difference security-wise, it's still fun and educational |
|
Back to top |
|
|
opentaka l33t
Joined: 18 Feb 2005 Posts: 840 Location: Japan
|
Posted: Fri Apr 20, 2007 5:05 pm Post subject: |
|
|
security is never too much, nothing can be trusted once its compromised. _________________ "Being defeated is often a temporary condition. Giving up is what makes it permanent" - Marilyn vos Savant
|
|
Back to top |
|
|
Vojko n00b
Joined: 11 Aug 2006 Posts: 27
|
Posted: Fri Apr 20, 2007 5:16 pm Post subject: |
|
|
i'm behind a router and i'm using firewall but only because of lowIds in emule and nat checks in bittorrent clients. Firewall has an everything is open policy.
And i had some years ago a debian router box with 2.2 kernel and no firewall (ok 2 lines for internet sharing, apache, ftp, mysql ... inc) running for 130 days and nothing happened. |
|
Back to top |
|
|
silentplummet n00b
Joined: 14 Jun 2004 Posts: 58
|
Posted: Wed Aug 01, 2007 10:42 pm Post subject: |
|
|
[quote] running for 130 days and nothing happened.[/quote]
You mean nothing happened that you know about =] |
|
Back to top |
|
|
Jiokah Tux's lil' helper
Joined: 28 Nov 2006 Posts: 90 Location: Toronto
|
Posted: Thu Aug 02, 2007 4:13 am Post subject: |
|
|
Firewalls are very important. If you set one up and log denied connections, you'll find people trying to get in on an hourly basis. People use software that automatically scans entire networks for vulnerabilities. Once they're in, they'll just install their stuff and use your computer/server to do their dirty work, and you'd have no idea.
Study iptables to set up a good firewall (netfilter is powerful software). There are plenty of tutorials on the net to get you started up with something.
Emerge denyhosts. This is handy software that tracks suspicious activity and automatically bans the IP.
Like someone said already, disable the ability for root to directly SSH to your computer. Instead, create a user and add them to the wheel group and just log in as him, then su
If you have a remote webserver though, don't do what I did and block yourself out by accident |
|
Back to top |
|
|
|