1st welcome and congrats on picking PostgreSQL. I think your only issue is you're missing CIDR representation in your 'pg_hba.conf'.
Can you 1st establish a local connection from the server (localhost / 127.0.0.1)?
In your $PGDATA/pg_hba.conf, you should have an entry as follows:
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all md5
local postgres postgres ident
# IPv4 local connections:
host all all 127.0.0.1/32 md5
host all all 192.168.1.0/24 md5
As you can see I have a local rule that allows my Linux OS 'postgres' user to map into the database 'postgres' user w/o a password. You can change this to md5 if you want but I prefer it as-is. Make sure you 1st set the password on the 'postgres' OS user before you try and connect or else the mapping will be disabled by Linux.
Assuming you can do this w/o any issue, I would then add a subnet block access list as I did versus individual IP's w/ a 30 CIDR. The last entry in my 'pg_hba.conf' shows anyone can connect to any database as long as they're in that particular IP block. Hope that helps! Everything else looks fine assuming you don't have SSL enabled in your postgresql.conf file.