Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to specify a Network Interface for a certain port.

Status
Not open for further replies.

rudy23

Programmer
Feb 12, 2004
31
US
Hi all.

We are working on deploying a Java based tiered application on the Solaris Platform. I would like to get some information on multiple interfaces and how to specify which interface to use for a certaion request.

The Machine itself has 3 Network interface cards. Each Card is on a seperate Network and Subnet and their purpose is listed below. All are NAT'd internal ip's.

Interface A Connected to Data base
Interface B Connected by Dedicated line to news provider.
Interface C Connected by dedicated line to Back end system.

Now our application at one point or another needs to talk via all three entities. Each request is bieng made on a different port number. Is it possible to specify a certain interface for each port? Is this the right way to do it or is there any other suggestion especially since this will be a production application and I want to get this rigth the first time.

Any help is greatly appreciated.

Thanks
 
this is very deep inside, so all my answers are afaik:
the interface is defined by the routingtable (first match), so it's up to you which IPs and Subnets you use
ports: default Solaris does not offer something like that, but there is a GNU Software called tcpwrapper, this may offer what you want...

btw, there is a good thread in this forum about "Solaris hardening" where you can find a lot of infos about this topic; I's easy to find, because it's having so many stars, just sort the threads by stars...

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years
 
Thanks a lot daFranze. It sure helps. Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top