how to bind an application to specific ip


 
Thread Tools Search this Thread
Operating Systems Solaris how to bind an application to specific ip
# 1  
Old 10-23-2008
how to bind an application to specific ip

Hello Dear Everyone.

Have you Gurus perhaps got an idea how to bind a particular application/program to specific IP address on solaris box?

Assume there is a server with two NICs with distinct IPs, I install an application (could be a backup sowftware client) and would like to tell to the application:
"please bind to this-and-this IP, and leave the other one intact"

So when typing netstat -an I'd see that application bound to specified IP, not 0.0.0.0 (all IPs).

Sample usage could be: backup software client that should bind and listen to requests on backup-LAN only. There is no point allowing for backup/restore requests over production LAN, especially backup softwares usually are not strong in client/server authentications and spoofing is fairly simple.
# 2  
Old 10-23-2008
This is normally done by the application itself which has to support it, not externally although a dtrace script might do the trick.
# 3  
Old 10-24-2008
Quote:
Originally Posted by jlliagre
This is normally done by the application itself which has to support it, not externally although a dtrace script might do the trick.
how can dtrace do something like this?
# 4  
Old 10-24-2008
Dtrace can patch calls on the fly in the so called "destructive mode". That would be a hack but probably an easy one.
# 5  
Old 10-24-2008
thinking more about it ... tcp wrappers could be used to achieve the same final result, however different way. the sofware would still bound to all available IPs but communicationt would be filtered.

Dtrace path sounds too ,,hidden'' to me. I prefer solutions that can be clearly seen and tracked down, even when you ,,forgot'' to document them immediately after configuring Smilie

But Dtrace solution looks like great dtrace coding excersise.
# 6  
Old 10-24-2008
Like everyone said, it depends on the application.

But here are two ideas:
- Just firewall the connections you don't want to allow. Even better, firewall everything and just allow what you want.
- Or, you could create a zone in Solaris that uses the second NIC. Then launch your app there.
# 7  
Old 10-27-2008
Thank you Everyone for feedback and valuable suggestions!
Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Bind

Hi All I need to do bind of exiting filesystem to new storage allocated mount --bind /prod/OpenCSS /var/lib/test echo "/prod/OpenCSS /var/lib/pgsql bind bind 0 0" >> /etc/fstab will this command just work ? (2 Replies)
Discussion started by: anil529
2 Replies

2. UNIX for Dummies Questions & Answers

Can't bind to IP

When you get the message can't bind to ip already in use. is there a command to search to see everything that is using that IP? I've already check the host and hostname files (2 Replies)
Discussion started by: mchelle_99
2 Replies

3. UNIX for Dummies Questions & Answers

Configure BIND

I know how to manage DNS once it's installed. I can edit named.conf and create zone files. I can sign the zones, use TSIG, etc. How do I take the BIND 9.9 tar ball from All Downloads | Internet Systems Consortium and install it and get it to work? Maybe I am not getting it. Can... (0 Replies)
Discussion started by: brianjb
0 Replies

4. Red Hat

NFS - IP bind

Hello, Our production linux server have multiple network interface. Recently we installed and started NFS. Now the client server cannot mount to the server running NFS. Later it was discovered that the port being used for NFS is only bound to one IP address, which is not the IP address I... (0 Replies)
Discussion started by: hemangjani
0 Replies

5. UNIX for Advanced & Expert Users

Bind Problem

Hi all, I've 2 Debian Etch (4) box used as ns1 and ns2 with BIND9. My domain name is something like this: subdomain.domain.com And I've 2 authorized DNS servers for the subdomain. I set this line in both of ns1 and ns2 (I.e. in ns1.subdomain.domain.com and ns2.subdomain.domain.com): cw ... (1 Reply)
Discussion started by: mjdousti
1 Replies

6. UNIX for Dummies Questions & Answers

How to issue a new application to a specific processor?

We can use "pbind" to bind a process to a specific processor. But it requires the id of the process to be binded, meaning we have to do the binding after starting that process. So how can we bind a process to a specific processor while we start that process. Say we are working on a Sun's... (3 Replies)
Discussion started by: ubcedison
3 Replies

7. UNIX for Advanced & Expert Users

How to bind interrupts on a specific CPU

Hello, we practise our server with operating system ReliantUNIX 5.45 and we are using Informix Dynamic Server 7.31. I ascertained a lot of cpu interrupts per second (int/s). The count of int/s exceeds critical maximum value considerably. Machine specific notes for Informix Dynamic Server... (1 Reply)
Discussion started by: urbale
1 Replies

8. IP Networking

BIND question

Suppose you had a bunch of domains registered with names following the scheme, 11example.com 22example.com 33example.com etc. These domains are all for virutal webhosting, and will have the same web servers with the same IPs on all of them. The question is, because they're 2nd level domains, is... (3 Replies)
Discussion started by: vertigo23
3 Replies

9. UNIX for Dummies Questions & Answers

how do redirect in bind

Hello all! Does anyone know how to redirect i link to a host or alias name? Here is the example: i wank to type "Bob" in my browser and be redirected to http://192.168.54.37:7001/Bob/BobMainServlet on that perticular port. Im using Redhat 6.2 with bind 9.2.3 regards... dOzY (4 Replies)
Discussion started by: dozy
4 Replies
Login or Register to Ask a Question

Featured Tech Videos