Hi all, I'm trying to get a inetd controlled service to bind to a specific IP address. Reason is that I wan't to have two different services on one machine, listening on same port number, but on different logical interfaces.
I have created a simple service myself and tested without any success and I have tried to manipulate native ftp and telnet services without any luck as well. What I do is, inetadm -m 'service' bind_addr='IP_address' (replace 'xxx' with the actual as, inetadm -m ftp bind_addr=192.168.0.100) (I can see with inetadm -l that the changes are accepted by the system, as well as with svccfg) I have restarted inetd service, the actual service, rebooted (you name it....) and I still always get *.'port' output from "netstat -an|grep LISTEN". (example *.ftp), where I would expect something like '192.168.0.100.ftp .... LISTEN' I saw one posting in some other forum that someone had made this change for telnet without any problem, but when I test with telnet, ftp or my own "service" I always have the service responding on any IP address defined on the machine. I have tested on several Solaris 10 machines with same result. My own service I created simply by adding the following to inetd.conf, "redirect stream tcp nowait root /usr/local/bin/redirect.sh redirect", followed by "inetconv". The service "redirect" also is defined in /etc/services as "redirect 9001/tcp". My service is working as I can do "telnet localhost 9001" and get correct respons, but as I said before, the problem I have is the same also for native services as ftp and telnet. Anybody having any ideas of what to change to get this working???? I feel I have tested all svc* and inet* commands and searched manuals and on Internet (and on Sunsolve), but no hints found anywhere. Kind regards Anders Bostrom This message posted from opensolaris.org