A
A
AK2015-10-03 20:42:08
firewall
AK, 2015-10-03 20:42:08

How to open ssh in firewalld only for a trusted subnet?

I am slowly mastering the new CentOs line - after the six, some things seem unusual. I had a question about configuring firewalld: how to open ssh in it only for a trusted network?
It is assumed:
1. There is a server with centos7 (there is no graphical interface and will not be)
2. There is only one network card
3. There are several subnets that are considered trusted and for which you need to allow access via ssh, and deny all other addresses
4. On the server enabled fail2ban (trusted networks are trusted, and fail2ban never hurts)
5. firewalld enabled with default rules

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bukass, 2015-10-05
@bukass

hosts.deny, hosts.allow - not?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question