- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- TCP Wrappers and "spawn" option
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2003 12:30 AM
09-29-2003 12:30 AM
TCP Wrappers and "spawn" option
TCP WRAPPERS 11.11, v1
In the previous versions for TCP Wrappers (7.6), the following example statement existed in the hosts.allow file:
"telnetd : XXX.XXX.XXX.XXX
: /bin/echo "`date +%%b' '%%e' '%%X' '%%Y` %H inetd[%p]: %d: from (%a) %c %h Use
r=%u " >> /var/adm/tcpd.log"
and this resulted is the following tcpd.log entry:
"Sep 26 11:05:11 2003 server inetd[19326]: telnetd: from (XXX.XXX.XXX.XXX) user2 user2 User=unknown"
Note that the entry begins with a date/time stamp.
In this new version, the hosts_options "spawn" was introduced. The following entry now exists:
"telnetd : XXX.XXX.XXX.XXX: spawn (/bin/echo Host address = %a \nClient Information = %c \nDaemon Process name = telnetd \nHost Name = %h \nClient Server Hostname = %n \nDaemon PID
= %p \nServer Info = %s \nClient Username = %u" >> /var/adm/syslog/tcpd.log)"
Note that the entry is no longer date/time stamped. I have tried several ways to get the tcpd.log line entry to date stamp and all have failed. I checked all the available % values returned from the tcpd and none of them return a date/time entry.
Does someone - anyone have a "spawn" option string that can properly date and time stamp the tcpd.log entry for this new version?
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2003 01:19 AM
09-29-2003 01:19 AM
Re: TCP Wrappers and "spawn" option
eg:
/bin/echo `date +%Y%m%d-%H:%M:%S` Host address ...
If that doesn't work, then remove the parentheses and try again.
One of the two versions should work.
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2003 02:05 AM
09-29-2003 02:05 AM
Re: TCP Wrappers and "spawn" option
I tried all combinations of entries (with and without ",',`). Also, the ":" in the time part of the string is being interpreted by tcpd as "next option".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2003 02:43 AM
09-29-2003 02:43 AM
Re: TCP Wrappers and "spawn" option
/sbin/echo `date` Host address ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2003 03:22 AM
09-29-2003 03:22 AM
Re: TCP Wrappers and "spawn" option
telnetd : XXX.XXX.XXX.XXX : spawn (date >> /var/adm/syslog /tcpd.log) : spawn (/bin/echo "Successful %d connection received from %c handled
by PID [%p] \n" >> /var/adm/syslog/tcpd.log)
This results in a tcpd.log file entry with 2 lines as:
"Mon Sep 29 11:10:46 CDT 2003
Successful telnetd connection received from XXX.XXX.XXX.XXX handled by PID [21443]"
This appears to be the only way to do this and for the time being is acceptable.
For any other creative thinkers out there - you thoughts are welcome.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2003 11:57 PM
09-29-2003 11:57 PM
Re: TCP Wrappers and "spawn" option
I problem is that I can not get the banners option to work at all! Its like the tcpd doesn't even know they exist. even the simplest line "telnetd:ALL:banners /tmp/banners/telnetd" doesn't even work. I even checked all permissions and this did nothing.
Signed confused