Iftach Hyams wrote: > > I installed termpkg (termnetd) successfully. > Now, to be a real friendly terminal server I would like to have specific IP > to each com port, and > all will be listening to the default telnet port (23) using the bind option > (man xinetd.conf). > Of course, the daemon must change. > What are the requirements for a deamon to work correctly under xinetd ? > It should accept its bind & port options.
1. Set up your terminal server to accept telnet connections for port 1 as 3001, 2 as 3002, etc. 2. Define a virtual interface for each IP address you want to use. In /etc/sysconfig/network-scripts you define each interface. Assuming they should exist on eth0, you create a file called ifcfg-eth0:1 which contains: DEVICE=eth0:1 BROADCAST=192.168.1.255 IPADDR=192.168.1.2 NETMASK=255.255.255.0 NETWORK=192.168.1.0 ONBOOT=yes And then sucessive files for each additional interface. All should be the SAME as eth0 except for IPADDR and DEVICE. 3. Now assuming your real interface is 192.168.1.1, you would add the line to ALL of your entries in /etc/xinetd.d: interface 192.168.1.1 This will prevent ftping,etc to the termnetd interfaces if you care, they only would get the same as the original address. I'm not sure xinetd is set up for pointing to different services for the same port based on ip address. You may have to run multiple xinted's, or use redirecting firewall rules, (see transparent proxy). If xinetd were to work, here's what to do: 3. Add lines to /etc/services for each port: termnet001 23/tcp # termnet server port 001. 4. Create an entry in /etc/xinetd.d called terment001. In it put: service termnet001 { interface = 192.168.1.2 redirect = 3001 } Duplicate as needed changing interface and service. Geoff. -- Geoffrey S. Mendelson Bloomberg L.P., BFM (Israel) 2 hours ahead of London, 7 hours ahead of New York. Tel: 972-(0)3-754-1158 Fax 972-(0)3-754-1236 Email: [EMAIL PROTECTED] ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]