Re: Bind service to a particular ethernet device
From: Chris Lowth (my.address.is_at_chris.at.lowth.dot.com)
Date: 09/06/05
- Next message: Chris Lowth: "Re: ping and host"
- Previous message: jackliu: "Please help on Bind"
- In reply to: Ignacio Garcia: "Bind service to a particular ethernet device"
- Next in thread: David Efflandt: "Re: Bind service to a particular ethernet device"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 06 Sep 2005 07:20:33 GMT
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
- Next message: Chris Lowth: "Re: ping and host"
- Previous message: jackliu: "Please help on Bind"
- In reply to: Ignacio Garcia: "Bind service to a particular ethernet device"
- Next in thread: David Efflandt: "Re: Bind service to a particular ethernet device"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|