Sponsored Content
Full Discussion: Inaddr_any
Special Forums IP Networking Inaddr_any Post 302223071 by Ankit_Jain on Friday 8th of August 2008 09:04:46 AM
Old 08-08-2008
Continuation for same....
Suppoose we have configured logical Interface 2.2.2.2 on a server with Primary IP 1.1.1.1.
Now when I am sending a packet from this server, is it possible to make receiver assume that this packet has come from IP 2.2.2.2 and not 1.1.1.1
I think it is possibl using RAW sockets??? but then do we need to modify kernel also...??

Last edited by Ankit_Jain; 08-08-2008 at 10:28 AM..
 

2 More Discussions You Might Find Interesting

1. IP Networking

INADDR_ANY opposite

Hello, is there some way to obtain system's IP adresses to bind socket to every of them separately instead od INADDR_ANY? OR If there is some way to get server's IP to which client has connected, for example: server_app - bind to listen on INADDR_ANY, gets connected client to 1.2.3.4,... (2 Replies)
Discussion started by: d4rkl0rd
2 Replies

2. IP Networking

UDP server socket inaddr_any - How to get the real IP

Hello ! I seem to have the same problem as in https://www.unix.com/ip-networking/91203-inaddr_any-opposite.html#post302262417 But I can't find a solution. I have a UDP server socket bound to 0.0.0.0. The server hosts the addresses IP1, IP2 and IP3. I get an incoming request to IP1. I use... (1 Reply)
Discussion started by: steinwej
1 Replies
ncaport.conf(4) 						   File Formats 						   ncaport.conf(4)

NAME
ncaport.conf - ncaport configuration file SYNOPSIS
/etc/nca/ncaport.conf DESCRIPTION
The ncaport.conf file is used to configure the IP addresses and ports that the Solaris Network Cache and Acceleration (NCA) kernel module services. The file contains two fields, key and value, in the format of ncaport=ipaddress/port. IPv4 addresses must be in the dot notation d.d.d.d. IPv6 addresses must be in one of the three conventional forms (see inet_pton(3SOCKET)). If an asterisk (*) is used for an IP address, it is interpreted as INADDR_ANY, which matches any IP address. A web server uses the environment variable LD_PRELOAD and the ncaport.conf configuration file to convert an AF_INET socket to an AF_NCA socket. LD_PRELOAD enables the NCA socket utility library to be loaded before libsocket.so.1. See the ncad_addr(4) for details. When a web server issues the bind(3SOCKET) system call, it is intercepted by the interposition library ncad_addr.so. If the bind address is in the ncaport.conf file, the AF_INET socket is converted to a AF_NCA socket. EXAMPLES
Example 1: Sample ncaport.conf File The following is a sample ncaport.conf file: # # NCA Kernel Module Port Configuration File # ncaport=1080:0:0:0:8:800:200C:417A/100 ncaport=192.168.84.71/80 ncaport=*/9000 SEE ALSO
nca(1), bind(3SOCKET), inet_pton(3SOCKET), ncad_addr(4), attributes(5) NOTES
For those web servers that use AF_NCA sockets, the NCA port configuration described here has no effect. NCA does not currently support IPv6. Any IPv6 addresses in the file ncaport.conf are ignored. SunOS 5.10 30 Jul 2001 ncaport.conf(4)
All times are GMT -4. The time now is 05:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy