Allow telnet in AIX from specific IP adds, but disable for everyone else

I need to change the security on our AIX servers and disable telnet from all but certain IP addresses.

I have hashed the telnet line in /etc/inetd.conf and added filter rules for those IP adds to allow access on port 23, but this didn't work.

Does anyone have any ideas?

Thanks.

Try tcp wrapper.

@Alps
Why not to use OpenSSH with AIX rathar than legacy telent which introduce more functionality in conjunction with tcpwrappers , if telnet is not mandatory .