Is it possible to redirect to same port two NICs

Dear members,
I have to setup my Solaris10/Apache server with two NICs, then I want to redirect the 80 port to another port like 777 for both of NICs. I mean, all the NICs should listen the 777 port and redirect incoming packets to 80 port. I tried this, but I was never able to set it successfully for both NICs. But when I unplumb one of the NICs, it's ok. The other is redirecting. But I cant do this for both of them.
Any idea about this ? Please help.
Thank you.

user5401524 wrote:
I have additional findings.
After commenting /etc/defaultrouter and flushing the routing table, I'm able to reach the forwarded ports.
If I try from a server which is in the same subnet with this server I'm able to ping, telnet the port or reach via webbrowser. And the port forwarding is working too. But if a try from another subnet, it's not possible. It seems to me like a routing problem but I cant explain that yet.
Fyi.I don't know that the ipfilter syntax provided in the example is correct - I'd check with the ipfilter man page.
It looks like you are trying to redirect any outgoing address for port 7777 to 127.0.0.1 port 80, but when your packets
are looking up the routing table, and finding the default route first so that the outgoing packets would never
really have the 0.0.0.0 ip destination that your rule is set up for.
--Sowmini                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Is it possible to forward the same port for 2 different computers?

    i have WoW and some other programs on 2 pcs that need to use the same port at the same time, and i was wondering if it is at all possible?

    My guess is your only choice is probably with Port Triggering.  This requires the application to send outbound data through a predetermined port in order to trigger the inbound port(s) to open.
    LINKSYS | WRT54G 1.0(R.I.P.) ; WRT54G 2.0/Thibor15c ; WRT54G 3.1 ; WPC54G 1.0 ; WMP54G 1.0 ; WM54G 1.0(mini PCI) ; SD208 1.1
    INTEL | PRO/Wireless 2200BG
    BUFFALO | WHR-HP-G54(125Mbps) ; WHR-G54S(125Mbps) ; WLI2-CB-G54L ; WLI-U2-KG54
    SMC | Barricade SMC7004VWBR

  • How to do a PortForward/Port Proxy? Redirecting traffic from port 8080 to 80 on the SAME machine

    We have a CFTV system running on Win2008R2 that listens on 4 sequential port numbers and the last port is the Web Browser Port number for management and viwing cameras
    When we configure the port 8077 on the software, it opens 8077, 8078, 8079 and 8080 and works with no problem
    But...
    When we try to configure ports 77 (and therefore 77, 78, 79 and 80) thw applications hangs and seems like not be possible to configure to use port 80
    I could confirm that,  using NETSTAT and the main CFTV application open all required ports with no problem, but only works on ports with a different number from "80", wich is what i want, to make users more confortable, avoiding to type ":PORT_NUMBER"
    after the URL, it will be more "ellegant" solution to use default port 80 for user´s connections
    The question is: How to do a PortForward/Port Proxy? Redirecting traffic from port 8080 to 80 on the SAME machine?
    May i Use NETSH? (based on Help, it can be used to do this, but on different machines, not the same one)
    There is a RELIABLE application, running as a service, that can do the port forward/redirect?

    Hi,
    I’m sorry to tell you that we can’t redirect traffic from a port to another port on the same server itself. But we can do it with a router which is configured to portfoward.
    By the way, according to your description, another program may use the port 80. Is there an IIS installed on the server? If it is necessary, you can consult your CFTV system vendor.
    Hope this helps.
    Steven Lee
    TechNet Community Support

  • Is it possible to use both an ILB and an ELB (listening on the same port) in the same Azure cloud service?

    I'm building a test Lync deployment on Azure; yes, I know this is not supported, hence "test".
    Lync Front-End servers expose two set of web services, one for internal users and one for external ones; they listen on different ports (443 and 4443) on the same servers; when external services are published, you need a reverse proxy or a port forwarding
    in order to map port 443 of a public IP address to port 4443 of the Front-End server(s). When you have multiple Front-End servers in a pool, you also need to load-balance them.
    So, a typical Lync deployment looks like this:
           Internal users
                     |
                   443
                      |
              Internal LB
            192.168.0.20
            443         443
              |               |
       Lync FE 1     Lync FE 2
    192.168.0.21 192.168.0.22
              |               |
          4443        4443
              External LB
           Public IP Address
                     |
                  443
                     |
           External Users
    This should be easily replicated in Azure, as it supports both external load balancing and internal load balancing. They are even supported together in the same cloud service, so this configuration should be easy. However, it looks like "should"
    is the keyword here.
    After creating the external load balanced endpoint (which listens on external port 443 and forwards to port 4443 on the servers), I'm trying to create an internal load balancer and add internal endpoints to is; however, while the ILB can be created successfully,
    adding an internal endpoint listening on port 443 and forwarding to port 443 on the servers fails miserably, with an error stating that port 443 is already in use by another endpoint:
    Update-AzureVM : BadRequest : Port 443 is already in use by one of the endpoints in this deployment. Ensure that the port numbers are unique across endpoints within a deployment.
    For reference, my commands are:
    Add-AzureInternalLoadBalancer -InternalLoadBalancerName "LyncILB" -ServiceName "LyncFrontEnd" -SubnetName "LabSubnet" -StaticVNetIPAddress 192.168.0.20
    (This completes successfully)
    Get-AzureVM LYNCFE1 | Add-AzureEndpoint -Name "Https-Int" -Protocol "tcp" -LocalPort 443 -PublicPort 443 -LBSetName "HttpsIntLB" -DefaultProbe -InternalLoadBalancerName "LyncILB"
    (This fails)
    The existing external endpoint is configured as such:
    Get-AzureVM LYNCFE1 | get-azureendpoint
    LBSetName : HttpsExtLB
    LocalPort : 4443
    Name : HTTPS-Ext
    Port : 443
    Protocol : tcp
    Vip :
    ProbePath :
    ProbePort : 4443
    ProbeProtocol : tcp
    ProbeIntervalInSeconds : 15
    ProbeTimeoutInSeconds : 31
    EnableDirectServerReturn : False
    Acl : {}
    InternalLoadBalancerName :
    IdleTimeoutInMinutes :
    LoadBalancerDistribution :
    The error doesn't even make a lot of sense; the external load balancer listens on a public IP address, while the internal load balancer listens on a private IP address in the internal network; there
    shouldn't be any conflict here... however it looks like there is one instead.
    Why doesn't this work? Am I doing something wrong, or is Azure networking just being silly as usual again?

    Hello Massimo Pascucci,
    The issue that you are facing when creating an endpoint with internal loadbalancer is the limitation of not allowing same ports to be listening under a single cloud service. This reason for this is that there is a limitation of only one private IP (Also
    known as the Internal load balanced IP) per cloud service.
    There is also a limitation on the Internal load balancer more than one port to be published per load balancer:
    You can leave your feedback by following the link below:
    https://social.msdn.microsoft.com/Forums/en-US/1805c5a0-3906-4cd6-8561-9802d77e0ae5/is-it-possible-to-use-both-an-ilb-and-an-elb-listening-on-the-same-port-in-the-same-azure-cloud?forum=WAVirtualMachinesVirtualNetwork
    Refer to this article for more information on Internal load balancer:
    http://azure.microsoft.com/blog/2014/05/20/internal-load-balancing/
    Thanks,
    Syed Irfan Hussain

  • I have to send messages through UDP multicast and unicast from same port. In Labview I tried that it throws error. I heard it is possible by means of Datagram (UDP unicast and multicast) Port Sharing. How can it be achieved in Labview?

    I have to send UDP multicast and Unicast messages to a remote port from a single source/local port. I tried by opening UDP unicast and multicast in the same port and got the expected error. I tried by opening a unicast connection and sending unicast messages.After that when multicast messages has to send I closed unicast and opened multicast in the same port.This is not throwing any error. But my requirenment is to comminicate with another application in C ++ which recieves this data, throwing an error of lost connectivity and both the applications are not abled to communicate properly. 
    In the other application with C++ this is implemented using port sharing. So how port sharing can be implemented in labview so that I can send both multicast and unicast messages from the same port?
    Thanks in advance

    UDP is a sessionless protocol, meaning that anyone listening on the specified port CAN receive the data. CAN because as you noted there is no guarantee in the protocol that it will be received. And if you send the data not to a specific address but a multicast address not only one computer can receive it but in fact every computer on the same subnet listening to that multicast address and depending on the TTL of the packet also computers in neighbouring subnets, although that last one is not a very reliable operation since routers can be configured to drop multicast packages anyhow despite of a different TTL saying otherwise.
    Accordingly there is no real way to make sure that a receiving UDP port is not already in use, since you don't build up a connection. UDP is more or less analogous to shouting your messages through a megaphone, and anyone listening on the right frequency (port) can hear it. You do bind the sender socket to a specific port number but that makes little difference.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Two applications wants to read on the same port using Socket

    I have an application running on one machine using TCP/IP socket. The data transfer with the other application on other machine is in ASCII.
    Now I want a new application that can have a copy of data received and sent on the given port, where the previous application is running.
    Is it possible in Java using socket and TCP/IP to have two application reading data from the same port and both can read all the data.

    Even when you don't state the type of app which need to read the data stream (is it a server or a client app???), it's impossible to share a single TCP/IP socket among multiple apps.
    Perhaps the best thing to do is to develop something like a proxy server who listens on the nominated port and provides to contact (if your apps are server ones) or to be contacted (if your apps are client ones) by the desired apps.
    This way, the only job for the proxy is to duplicate the contents of the data stream and make them available to all the apps engaged.
    Hope this helps.

  • How to Send & receive HL7v2.3 & HLv2.5.1 message from same port.

    Hi,
    Currently I have a requirement of sending multiple version HL7 messages say HL7v2.3 & HLv2.5.1 from the same port(say 3333) and receive it at the same port (say 4444) using Oracle SOA Suite.
    To address this problem, I first tried to create multiple versions endpoints in the Healthcare UI of SOA and gave them separate Composites each catering different versions of the HL7 message structure. But this didn't work since, the Healthcare UI refuses to accept two different Composites. Not sure if this supported in Healthcare UI or not?
    Also, another problem which this approach threw at me was that I have another challenge to create a single healthcare adapter to accept both versions which is not possible, i think, because when we are creating the HL7 adapter in the Composite it asks to provide the HL7 structure it follows and there can be only one message structure that I could provide to this healthcare adapter placed at the receiving end.
    With extensive googling I was pointed out to second approach of making it entirely in B2B. But there was also stuck at the time the agreement (Agreement between local partner and remote partner for both the HL7 versions) was to be deployed, since it was giving this error.
    Agr1 is not valid. Please correct the following errors.
    Error -: B2B-52276: Type of the parameter MessageECSFileBlob must match with the value {1}
    On my part I tried to investigate what this MessageECSFileBlob is?
    And the answer I got is that it is part of Document Definition and is  "Absolute file path of ecs".
    My Take & Confusion Around this::
    1. Since I first tried to cater this problem through Healthcare UI so, I have imported the repository for both the versions HL7v2.3 & HLv2.5.1. Now since the B2B shows all the HL7 versions, therefore I didn't create any custom message structure for this since the entire HL7 version repository is already available to me.
    Do I need to remove these versions from the repository and come back to B2B to first provide it custom message structure for both HL7v2.3 & HLv2.5.1?
    2. Any idea if one endpoint can support multiple message structure with different composites in Healthcare UI?
    Thanks
    Saurabh

    Hi citbcj,
    You could "fix" by catching and handling the exception. Here's the pseudo code
    declare
      exception   smtp_error;
      pragma exception_init (smtp_error, -29279);
    begin
      for rec_notify in cur_notify loop
        declare
          l_to   varchar2 (100) := rec_notify.email;
        begin
          html_email (l_to, l_from, l_subject, 'none', l_body);
        exception
          when smtp_error then
            log_it_or_something_and_continue;
        end;
      end loop;
    end;
    /Regards
    Peter

  • Creating a serverSocket while sonnecting to a socket on the same port

    I want to make a file transfer application for multiple clients, there will not be a server that users will connect to, the application serves as client AND server, every client will have a serversocket object listen for new connections (it will recieve a connection when someone wants to send a file to them) and I will also have a socket object that will connect to a client when I want to send a file to them.
    Is it possible to run all these connections on a single port? Or will there be a conflict?

    836981 wrote:
    I want to make a file transfer application for multiple clients, there will not be a server that users will connect to, the application serves as client AND server, every client will have a serversocket object listen for new connections (it will receive a connection when someone wants to send a file to them)Read up on peer-to-peer.
    and I will also have a socket object that will connect to a client when I want to send a file to them.A new socket for each outbound connection.
    Is it possible to run all these connections on a single port?Yes. A serversocket listens for connections to a specific port number, it can accept many connections.
    Or will there be a conflict?No. Your outbound connections will not use the same port number locally.
    You are more likely to encounter problems with clients (peers) behind NAT routers.

  • Open a several sessions in the same port 22224

    i want to receave a severel streams from 3 PC in the same port 22224 using a several sessions of this port(22224). it's possible?and how?
    how i can know the source of the sender of stream (ip adresse for exemple)?.
    thinks a lot.

    <SCRIPT language="JAVASCRIPT">But this is a Java forum, not a Javascript forum.

  • Agents on same port ?

    Hello All,
    It is possible to have two Agents running on the same port ?
    Thanks a lot,
    glains

    No. You can only have one Physical agent listening on a port. It is however possible to have multiple logical agents on a single physical agent. The agent is a multi-threaded application which can deal with concurrent execution of many tasks.
    Craig

  • Is possible to execute the same executable vi more than 1 time (like notepad, for example)?

    I have a Labview executable file that use serial ports to communicate with other devices. I need to execute the same "file.exe" more than 1 time, to control different devices simultaneously. When I double click on an executable been executed (from windows explorer), the file under execution comes to front. Is possible to execute the same file more than 1 time (like notepad, for example)?

    Not the answer you are looking for I know..but still: Copying the application to another location is one possibility...if it has a different path it will execute separately.
    (OR - build control of multiple devices into one and the same application... If you do not want to redesign the code to handle multiple instruments in the same VIs, you could clone the VIs within the same application...)
    MTO

  • Is it possible to use the same Switch for two different clusters.

    I have 10g Rac setup on windows.
    Now I am planning to install 11gR2 on different servers.
    Is it possible to use the same Switch for two different clusters.

    user9198027 wrote:
    I have 10g Rac setup on windows.
    Now I am planning to install 11gR2 on different servers.
    Is it possible to use the same Switch for two different clusters.
    Yes.  Technically there will not be any conflict as long as the private addresses used by the 2 clusters do not collide, and provided that the switch's port capacity and bandwidth will not be exceeded.
    Your NA (netadmin) can also configure the switch to separate the 2 Interconnects from one another (called partitioning when using Infiniband) - if the switch supports such features.
    A major consideration is not to make the switch, public. That typically cause a range of problems and can have a serious impact on an Interconnect. But using 2 private networks on the same infrastructure should not have the same problems - if configured and implemented correctly.

  • Can you have multiple RMI Servers listen at the same port?

    Hi,
    I am wondering if is possible to assign many RMI servers to the same port. I have a working RMI system that is assigning a single server to a specified port when the server is created. I need to scale my project to incorporate Activation and the ability to go through a firewall. I have the power to punch holes in the firewall, so I am thinking that I would like to set up a port for all my activated servers to listen on. Is this possible to put them all on one port?

    Yes you are correct. However, I am wanting the actual servers listening on the same port. I have noticed that when I do not assign a port number when binding my RMI servers to the registry, then the rmi system sets them all up listening on the same port. This port is random and changes each time I restart my server system, which rebinds all the servers to the rmiregistry again. I am look for a way to use custom socket factories and then tell the servers the exact port to listen at. I keep getting port already in use issues though when I try to assign more than one server to a particular port. I don't know if this is even possible. Has anyone ever gotten this to work?

  • Can two java program write to the same port by fetching data from different

    can two java program write to the same port by fetching data from different ports, if yes is thing possible for a 3rd program to get all data (is there any data loss or collision)
    how is this possible

    can two java program write to the same port by fetching data from different portsTwo java clients can connect to the same server port and they can both write to it. However the server will see the connections as two separate accepted sockets.

  • Conflict between MAIL and AOL - cannot send! same port?

    I just spent an hour on the phone with a very nice Apple tech and it turns out that the reason I cannot send mail (I can, intermittently) on my Mac mail application is that it conflicts (he believes) with aol, i.e. perhaps they are sharing the same port.
    The error message says mail cannot be delivered on Port 25 - but when I sign out of aol, mail works!
    Is there a way to adjust the port aol uses, or make some other change with aol so I can have both app's open at the same time?

    I don't use the aol browser, but I do like to sign on directly
    to check my "other" (i.e. aol) email, use the address book, etc.
    Apple provides what is called the AOL Service Assistant which will transfer (from the AOL program) your AOL email account or accounts to the Mail application, AOL address book contacts to the Address Book application and I believe it will also transfer AOL bookmarks to Safari so you can dump using what is a VERY old program for OS X which I doubt AOL will provide another update for.
    I have no idea if it is possible to change the port used by the AOL program and I'm not even sure if the AOL program uses an SMTP server for sending messages with an AOL account.

Maybe you are looking for