I am looking for a command line tool that checks tcp_wrapper configuration file syntax to make sure daemon names are set right and things like that, check for spelling or syntax errors etc.
Asked
Active
Viewed 881 times
1
-
`tcp_wrappers` would probably complain if the syntax was wrong. Nobody can tell that the hostnames are misspelt though. – Kusalananda Feb 28 '19 at 20:50
1 Answers
2
According to ftp://ftp.porcupine.org/pub/security/hints-and-tips.html:
If tcpd access rules do not work as expected, run
tcpdchk -vand see if its output matches your expectation. If that does not clear things up, please use thetcpdmatchcommand, report what it says, and also report what result you expected to get. Both commands come with the tcp wrapper source code.
Jeff Schaller
- 66,199
- 35
- 114
- 250