P
postcd
Guest
Hello,
i would like to use /etc/hosts.deny / hosts.allow
to block all connections except connections from two IP subnets and one hostname (partial match).
these i want to allow:
1.2.3.0/24
4.3.2.0/24
*.tmc*
.tmc is a part of the hostname
So far i found this to add into hosts.deny:
sockd : ALL EXCEPT 1.2.3.0/24
but i need to add two more allow rules..
Can i do:
sockd : ALL EXCEPT /etc/hosts.allow
and into /etc/hosts.allow add:
1.2.3.0/24
4.3.2.0/24
*.tmc*
i assume *.tmc* is wrong syntax
i would like to use /etc/hosts.deny / hosts.allow
to block all connections except connections from two IP subnets and one hostname (partial match).
these i want to allow:
1.2.3.0/24
4.3.2.0/24
*.tmc*
.tmc is a part of the hostname
So far i found this to add into hosts.deny:
sockd : ALL EXCEPT 1.2.3.0/24
but i need to add two more allow rules..
Can i do:
sockd : ALL EXCEPT /etc/hosts.allow
and into /etc/hosts.allow add:
1.2.3.0/24
4.3.2.0/24
*.tmc*
i assume *.tmc* is wrong syntax