Link to home
Start Free TrialLog in
Avatar of System Admin
System Admin

asked on

RHEL 7.4 Allow IP for SSHD autheticated scan from Security Scanner

There is a security system scanner that needs to access a server to scan.  If it states the below, what would be the command to allow?  I've check sshd_config and thought allowed IPs would be in that config.  But it seems I need a command and the system previous setup owner is gone at my current new job.  

RHEL 7.4 Maipo

If you are running IP filters or IP wrappers you will need to permit the systems to access your system via Secure Shell (SSH) on port 22. The IP addresses for the systems are

1.2.3.4
2.3.4.5
and
2.5.6.7

These are just placeholder IP addresses.  
What would be the command line only to add this?
Avatar of arnold
arnold
Flag of United States of America image

for ip wrappers, you would add
sshd:IP in /etc/hosts.allow to allow IP access to the SSH port.

which RHEL firewall is in use, firewalld or iptables
the generatl rule would be to check if the source is IP and the destiantion is port 22 then accept.
where IP is the IP you wish to authorize.
If you have both, a firewall and wrappers, you would have to do both to allow the system with IP access to port 22.
Avatar of System Admin
System Admin

ASKER

Firewalld, I'm testing some commands now.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.