Networking Forums

Networking Forums > Computer Networking > Linux Networking > Bind service to a particular ethernet device

Reply
Thread Tools Display Modes

Bind service to a particular ethernet device

 
 
Ignacio Garcia
Guest
Posts: n/a

 
      09-05-2005, 10:29 AM
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
 
Reply With Quote
 
 
 
 
gilles
Guest
Posts: n/a

 
      09-05-2005, 11:28 AM
Le Mon, 05 Sep 2005 12:29:30 +0200, Ignacio Garcia a écrit*:

> 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


Hi!

Just set two config files with different IPs, as the IP is binded on an
ethernet device that should do the trick =

--
=Gilles=

 
Reply With Quote
 
Juha Laiho
Guest
Posts: n/a

 
      09-05-2005, 05:31 PM
Ignacio Garcia <(E-Mail Removed)> said:
>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?


Yes, if the configuration of the program allows -- or in other words,
yes, if the program was written to allow this.
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
 
Reply With Quote
 
Chris Lowth
Guest
Posts: n/a

 
      09-06-2005, 07:20 AM
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
 
Reply With Quote
 
David Efflandt
Guest
Posts: n/a

 
      09-18-2005, 10:08 PM
On Mon, 05 Sep 2005, Ignacio Garcia <(E-Mail Removed)> 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?


You do not even need a separate nic. You could bind another instance to
same port of an alias IP on same nic (assuming the service has provisions
to bind to a specific IP).
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how bind telnet service to some IP address? D&S Windows Networking 0 02-22-2009 06:35 AM
Re: device to wirelessly simulate Ethernet? Yousuf Khan Windows Networking 17 02-04-2009 08:28 PM
Wi-Fi Device Through the Ethernet Connection J&D Schnoor Wireless Internet 11 08-20-2007 12:44 AM
Ethernet device in char mode? Jeff Ward Linux Networking 1 10-08-2004 08:40 AM
Can you Bind Terminal Service to a Specific Adapter Bill Diekmann Windows Networking 1 01-20-2004 05:23 PM



1 2 3 4 5 6 7 8 9 10 11