I love these small and helpful videos, the knowledge will be helpful for years.
@theurbanpenguin2 жыл бұрын
Glad you like them, thank you
@othernicksweretaken2 жыл бұрын
That is exactly how I build up script blocks by fiddling with filters interactively in a shell until I get the matches that I require, and then loop over it or make the thus generated line noise a bit more tangible and comprehensible by my sysadmin colleagues by putting the stuff in functions or intermediary variables. However, if the pipes get too messy I might compact it by switching to awk, perl or python.
@theurbanpenguin2 жыл бұрын
excellent
@LVusaAPI2 жыл бұрын
Hey Andrew would love to see more of fw content
@pbezunartea2 жыл бұрын
Wouldn't the "drop" zone be used rather than the "block" zone? I'd give the potential attackers a timeout in their connection rather than a clear rejection...
@timmy.gunner2 жыл бұрын
*Hi Andrew is all this FW automation possible through Ansible / puppet /chief ?*
@theurbanpenguin2 жыл бұрын
You can configure firewalls with Ansible but as it sets the desired state it is hard to specify the IPs you want to block. Using Fail2Ban you can install and configure with Ansible and Fail2Ban does all of the work for you
@pokibali2 жыл бұрын
You could possibly run the command and register the output, then loop through it using the firewalld module, I wonder if that would make sense?
@HumbleHuman-k7g2 жыл бұрын
Thanks for sharing your knowledges, I wonder why you stack on REL clones and don’t move on up to date distribution like Fedora Linux or OnenSuse Linux ?
@kaliroot67562 жыл бұрын
I do not know how familiar you are with linux distributions, but you do not choose Rhel or Rhel like oses (Alma, Rocky, Cloud) cause you want the newest and greatest software. You normaly choose it cause those distributions are very stable. - Fedora is like a Playground, before most features come to RHEL its in a "beta" like fedora release - OpenSUSE is something diffrent, it is like fedora but for SLES(SUSE Enterprise Linux Server)
@othernicksweretaken2 жыл бұрын
Maybe he is working like me for a company or authority where your customers force you to e.g. run Oracle, SAP, JBoss, OpenShift etc. where you virtually end up on RHEL. On my private laptop I too prefer running Fedora. I am also glad that Rocky and Alma continue with a replacement for the discontinued (2024) CentOS (not CentOS Stream).
@SpojlerSSJ2 жыл бұрын
That was very interesting. Good job...
@theurbanpenguin2 жыл бұрын
Thank you
@s.sje4952 жыл бұрын
Hi Andrew, create Video, is it possible to implement a if statement to prevent block my own access by typing a wrong password or any kinds of typo
@theurbanpenguin2 жыл бұрын
you could add a simple grep -v as the final command in the pipleline
@isoslimak2 жыл бұрын
Great, you will block yourself if you misspell your username while logging in.
@theurbanpenguin2 жыл бұрын
I use keys
@home-lab2 жыл бұрын
You could use an extra grep -v to make sure you are not locked out.
@PlanetCypher_2 жыл бұрын
👍
@djengines2 жыл бұрын
Who leaves ssh open 🤣
@theurbanpenguin2 жыл бұрын
For public classes that use SSH
@home-lab2 жыл бұрын
How else to manage your (remote) server?
@djengines2 жыл бұрын
@@home-lab when I said open I meant open to the Internet.
@othernicksweretaken2 жыл бұрын
Maybe one could open it on demand through some port knocking pattern.