Hi All,
1. I am trying to get a shell command to fire off when tcpd
lets someone in. This will later be moved to hosts.deny and
appended to ALL : ALL
I am getting a syntax error.
2. tcpwrappers is working on my Linux box but not on the
IRIX.
Prob 1 on Liniux Box
--------------------
/etc/hosts.allow
in.telnetd: abc.de.fg.56 : echo "Host %h trying daemon %d"
| mail mikel &
When I telnet in from my other machine (an IRIX box) the
logs say:
in.telnetd[907]: error: /etc/hosts.allow, line 7: bad
option name: "echo"
in.telnetd[3998]: refused connect from abc.de.fg.56
Line 7 is the line in hosts.allow as above.
If I remove the echo line it allows connection fine.
/etc/hosts.deny
ALL: ALL
The man page says.....
SHELL COMMANDS
If the first-matched access control rule contains a shell
command, that command is subjected to %<letter>
substitutions ....
The shell command
echo "test" | mail mikel &
works fine when run from a terminal. I et the test mail OK.
I gather this means also that ONLY the 1st line can contain
shell statement.
Prob 2 on IRIX
--------------
hosts.allow on the IRIX box needs to contain an ALL : LOCAL
to allow my Linux box in. If I just have the line
"in.telnetd <ip addr of linux box>" it won't let me in.
The logs on the IRIX say connectiion refused from <name of
my linux box> so it is resolving the address. Makes no diff
if I use name, FQDN or ip address of the linux box. Still
refuses me.
I do the usual "killall -HUP inetd" between config changes
and the logs show that inetd is being reconfigured.
Mike
--
--------------------------------------------------------------------
Michael Lake
University of Technology, Sydney
Email: mailto:[EMAIL PROTECTED] Ph: 02 9514 1724 Fx: 02
9514 1628
URL: http://www.science.uts.edu.au/~michael-lake/
Linux enthusiast, active caver and interested in anything
technical.
--------------------------------------------------------------------
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug