Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Do I need a firewall anymore?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
don quixada
l33t
l33t


Joined: 15 May 2003
Posts: 790

PostPosted: Thu Feb 02, 2023 3:11 pm    Post subject: Do I need a firewall anymore? Reply with quote

Hi folks, I've had a firewall on my Linux machine ever since, more than 20 years ago, my RedHat box connected via dial-up was hacked. Since then, I now have a much more sophisticated LAN including a dd-wrt-based router with a built-in firewall. Lately I've been having trouble with communicating with other machines on my LAN. I've found that if I turn off my firewall on my Gentoo box things work smoothly. This got me thinking, since I already have a firewall on my router, do I even need a firewall on my local Gentoo box anymore? I have no concerns about security within my own LAN (i.e., no one in my household will be trying to hack the Gentoo machine). My router's firewall is pretty locked down and only select ports are open and there is DDOS prevention turned-on along with other security measures.

Is there anything else I should be considering before I disable my firewall (shorewall) permanently?
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9679
Location: almost Mile High in the USA

PostPosted: Thu Feb 02, 2023 4:39 pm    Post subject: Reply with quote

technically you don't need a firewall, it's solely to minimize your attack profile in case you have bad software (mostly services, but if you have a proxy firewall, also against bad client software) on your side of the network. If you're vigilant about updates, this should mostly be sufficient.

I don't believe I've been hacked ever since I was on my own network (i.e. nobody that's not myself able to packet sniff my network) but however I've been probed for exploits in httpd and other stuff, and I haven't run a firewall on my main server for years, mostly because of that, it does interfere or at least make things harder to do remote access.

Uo to you. None of my internal network machines are firewalled against each other, but are behind NAT (except my guest wifi network, that is firewalled away) and has been like that for years, and things have been going hunky dory...

... Then again who knows, maybe I have been hacked again and just don't know it... at minimal I don't believe I'm a command control center (nearly static ip is valuable for that), my network speed is so poor these days that hackers would have little to no value in my machines.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4152
Location: Bavaria

PostPosted: Thu Feb 02, 2023 6:45 pm    Post subject: Reply with quote

don quixada,

IMHO a firewall is only one piece in a chain of security solutions. Do you use other pieces also ? (SELinux or AppArmor, IMA, hardened Kernel, ...)

As @eccerr0r mentioned before a firewall CAN TRY to protect you against outgoing traffic from "bad" client software, but you have to watch the log-files. Example: If you allow HTPPS to every server in the internet, an "evil" software can use this open hole also. You will need an additionally proxy server and you must check the log-files. Without this filtering outgoing traffic is ... senseless ... ;-)

(I dont speak about incoming traffic; here a firewall in your router is sufficient; only paranoid people - like me - want an additionally personal firewall on each client ...)
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2008

PostPosted: Fri Feb 03, 2023 11:09 am    Post subject: Re: Do I need a firewall anymore? Reply with quote

don quixada wrote:
...
My router's firewall is pretty locked down and only select ports are open and there is DDOS prevention turned-on along with other security measures.
...

Can you trust your router's software? Mine hasn't had a firmware refresh available for several years - like most such boxes, the manufacturers forget about them after a couple of upgrades.
_________________
Greybeard
Back to top
View user's profile Send private message
pa4wdh
l33t
l33t


Joined: 16 Dec 2005
Posts: 812

PostPosted: Sat Feb 04, 2023 8:54 am    Post subject: Reply with quote

Quote:
I've found that if I turn off my firewall on my Gentoo box things work smoothly. This got me thinking, since I already have a firewall on my router, do I even need a firewall on my local Gentoo box anymore? I have no concerns about security within my own LAN (i.e., no one in my household will be trying to hack the Gentoo machine)

It depends if you can trust all the other machines on your lan. Others in your household trying to hack is just one thing. If you also have a server that is reachable via the internet, the server might get hacked and used as a method to get to your lan.
On the other side, many software these days downloads random stuff from the internet and and executes it on your machine. Think about installation instructions like curl <some url> | bash, or "package managers" like pip or npm, or systems like docker where complete OS images and applications are downloaded and started without any verification or, of course, rust crates who downloads random code from the internet and inserts it into projects at compile time. Do you trust all those?
_________________
The gentoo way of bringing peace to the world:
USE="-war" emerge --newuse @world

My shared code repository: https://code.pa4wdh.nl.eu.org
Music, Free as in Freedom: https://www.jamendo.com
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Sat Feb 04, 2023 10:46 am    Post subject: Reply with quote

don quixada,

My firewall mostly stops untrusted devices phoning home.
Think Android, Smart TVs, Windows and so on. It also keeps the trusted (Gentoo) devices separate from the Untrusted devices.

A firewall is about making it difficult for nasty things to get in but that's covered by not running services you don't need and keeping the things you do need up to date.
It also helps limit the damage that nasty things can do if they get in. That's assuming that your firewall is paranoid.
Everything is denied except things that are explicit permitted, in both directions.

Its only one line of defence though. noexec,nodev,nosetuid on /home and /tmp helps deny the nasties anywhere to execute things.

A firewall is only one layer of the security onion.
You need to determine if it has a place in your threat mitigation model.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum