Ignacio Garcia wrote:
> Hi there!
>
> I would like to run two instances (with different configurations) of a
> service that runs on a specific port (and I must use that specific port
> only). Is it possible to bind each instance of the program to two
> different ethernet cards so I can access each service on different IPs?
>
> TIA,
>
> Ignacio
It depends on the program itself.
If it's a service that is started by xinetd (like a pop3 server, for
example) then add a "bind" option to the /etc/xinetd.conf or better the
relevant file in /etc/xinetd.d (this is the location on redhat/fedora
distribs)
The bind option takes the IP address of the interface, as in..
service pop3s
{
disable = yes
socket_type = stream
wait = no
user = root
server = /usr/sbin/ipop3d
log_on_success += HOST DURATION
log_on_failure += HOST
bind = 192.168.0.123
}
Chris
--
Rope: The scripting language that runs INSIDE the linux kernel for
writing iptables packet-matching modules.
http://www.lowth.com/rope