Force application to use one network interface

I want one application's traffic to go though one interface (ppp0), but everything else using the regular eth0.
The app connects to many IPs, and recieves connections from many others, so I cannot route by IP.
At the moment I use ppp0 as the default route and everything goes through there.
Is there no way to force the app into using ppp0, then I could set the default back to eth0.  Does there exist a wrapper, etc. to do this?  It seems like a simple scenario which is easily doable from a theory POV.
Thanks

You may be able to tweak this script I wrote to do what you're after:
http://github.com/fukawi2/pb-route

Similar Messages

  • Setting applications to use specific network interfaces

    How do I configure my computer such that specific applications will default to a different network interface than all the rest?
    I want to set it up so that Adium always tries to use AirPort first and everything else uses ethernet if it's available.
    Powerbook G4 1.5 Ghz   Mac OS X (10.4.8)   1GB RAM

    You can't (normally) get there from here.
    What you're trying to do is affect the routing (route certain traffic through a specific interface). The issue is that routing works at the IP level, not the application level. This means that you can tell the system to route a.b.c.d (e.g. the address of the IM server you're connecting to) through a speciic router at w.x.y.z (e.g. the AirPort).
    In order to do this, though, you need to have different IP address/subnet masks on each interface.
    For example, assuming your wired ethernet is using 192.168.1.2/255.255.255.0 and your wired ethernet router is at 192.168.1.1, and your AirPort interface is using 10.1.1.2 with the AirPort router at 10.1.1.1 you can run the command:
    <pre class=command>sudo route add a.b.c.d 10.1.1.1</pre>
    and all traffic for a.b.c.d will go over the AirPort link.
    Note that it doesn't matter what protocol you use - any traffic destined for a.b.c.d, whether it's AIM, HTTP, FTP or anything else - or what application you use - Adium, Safari, FireFox, etc. - they'll all use the AirPort link.
    Note that this technique will NOT work if you have both interfaces on the machine configured in the same subnet, but this is not a supported configuration, so you shouldn't be doing that anyway.

  • One or more application are using Itunes scripting interface

    After downloading update on ITunes 10 on windows 7 it freezes.  Or something pops up and says one or more application are using itunes scripting interface quit. 
    I tried everything.  Help.

    well, you're the first one I''m seen reporting this, so that makes me think it is unique to your PC. So I doubt an updated iTunes version is going to "fix" this.
    The way to find things like this is by using MSCONFIG as explained in these directions. But it is tedious to find it, requires a lot of PC restarting. You said it's not a big deal, so you might not want to spend the time.
    http://docs.info.apple.com/article.html?artnum=302538

  • "one or more application is using itunes scripting interface"

    Everytime I exit itunes, a windows pops up saying that message. How do I get rid of it? I don't know any programs that maybe using itunes scripting interface. Please help.

    well, you're the first one I''m seen reporting this, so that makes me think it is unique to your PC. So I doubt an updated iTunes version is going to "fix" this.
    The way to find things like this is by using MSCONFIG as explained in these directions. But it is tedious to find it, requires a lot of PC restarting. You said it's not a big deal, so you might not want to spend the time.
    http://docs.info.apple.com/article.html?artnum=302538

  • Set applications to use specific networks

    i am setting up my networking on a mac pro4,1 (intel) and i have attached too two separate ethernet networks, both are working fine. one is my work server (thru switch to t3) and the other is an inhouse dsl. i want to route traffic from specific applications to specific networks: (i.e. 'firefox' to inhouse and 'entourage' to work server). i have set up the networking with different 'location' configurations so i can change which i use but i want it to work on the fly. how is this done?

    You can't (normally) get there from here.
    What you're trying to do is affect the routing (route certain traffic through a specific interface). The issue is that routing works at the IP level, not the application level. This means that you can tell the system to route a.b.c.d (e.g. the address of the IM server you're connecting to) through a speciic router at w.x.y.z (e.g. the AirPort).
    In order to do this, though, you need to have different IP address/subnet masks on each interface.
    For example, assuming your wired ethernet is using 192.168.1.2/255.255.255.0 and your wired ethernet router is at 192.168.1.1, and your AirPort interface is using 10.1.1.2 with the AirPort router at 10.1.1.1 you can run the command:
    <pre class=command>sudo route add a.b.c.d 10.1.1.1</pre>
    and all traffic for a.b.c.d will go over the AirPort link.
    Note that it doesn't matter what protocol you use - any traffic destined for a.b.c.d, whether it's AIM, HTTP, FTP or anything else - or what application you use - Adium, Safari, FireFox, etc. - they'll all use the AirPort link.
    Note that this technique will NOT work if you have both interfaces on the machine configured in the same subnet, but this is not a supported configuration, so you shouldn't be doing that anyway.

  • Can I use one GBIP-Interface with two programs at the same time?

    Hi, I have one PCI-GBIP-controller with multiple instruments installed. Now I want to use these instruments with two differents programs at the same time.
    E.g.: program 1 uses GPIB0::1 and GPIB0::3
    and program 2 uses GPIB0::4 and GPIB0::7
    Is this possible??
    When I have tried to do this, I always got timeout errors..
    Thanx in advance.
    Philipp

    Hi,
    You shouldn't have any problems accessing different devices from different programs using the same interface. I even used the two VIs to communicate with the same device. Although not the best approach, VISA didn't return any errors.
    DiegoF.

  • Using one Message Interface for all mappings

    Hi Folks,
    I am using a BPM in which i m getting a file from file system which have system ID in it.
    I am having three send Synchronous step following that.
    What i need is to use the Message interface for file to be used for receiver determination based on system id in case of Synchronous interfaces.
    DO i need to include this File msg. interface in each mapping, if i do so will it be possible to send req. and get response for synchronous call.
    OR is there any way to to use the file msg. interface for each mapping.
    we are on SP17,I also tried Extended mapping but i am having SYNCHRONOUS send steps.
    Plz help me out
    Sachin

    Bhavesh
    <i>1. You receiver a file in your BPM . This has a field called SYSTEM ID?
    2. On the basis of the System ID field you need to determine the Receiver to which the Synchronous Request message has to be sent?</i>
    Sorry for that...because I was confused with jai's ans.. that's why said like that
    <b>You are absolutely correct</b>
    This is what i want to do.
    i can't use switch step here.  my BPM looks like this
    RecFile->sync send->transformation1->transformation2->sync send2->transformation3->BLOCK
    in BLOCK
    Sync Send3->transformation4 and so on...
    I am using three different Sync ABS Interface for each Sync send steps.
    In receiver determination i want to get the data from respective R/3 system based on system ID i.e. logical system in File MI.
    Say if it T90CLNT90 then get data from BS_SAPR3_4.6 else from BS_4.7
    Sachin
    Message was edited by:
            Sachin Dhingra

  • Forced upgrade after using icloud web interface

    I used the icloud interface in order to access a Pages document and print a PDF version while I was at the library. When I returned home I wasn't able to open the document and was instead told I needed to upgrade to the new version of Pages for $20. There was no warning of this on the icloud site, and I want access to the file returned - or a free "upgrade". I'll happily take a reversion to the unaltered version of the document, which I never edited on icloud anyway.

    To tell Apple something, you need to post it at
    http://www.apple.com/feedback
    To regain access to the file, open it in iCloud and email it to yourself as a Word doc.  Then you should be able to open it on your Mac again.

  • "securely" use one ethernet interface for WAN and other for the LAN

    I am reconfiguring our dual 2.7 Intel Xserve running MacOSXServer 10.5.4, and had a question.
    Is it possible (or advisable) to use en0 to perform LAN services, and then configure en1 to only allow access to very limited service. VPN, FTP, CALDAV and later Mail.
    I imagine that this is possible via a firewall configuration, but first I do not know how to specify interface in addition to ports, and second I don't know how advisable this would be.
    Currently I have a DSL package from ATT with 5 static IP addresses. I have an Airport Extreme set up as one of those addresses providing DHCP and NAT to the LAN. I am using the LAN ports on the back of that to bridge my three switches (2 managed [clients and oce print server 100 base-T] and 1 unmanaged [ laser printers and copier 10 base-T]).
    I have the LAN based on 192.168.0.x, with the Xserve at 192.168.0.5. I have DNS configured and working (Thank you Antonio Rocco)
    I have 20 LAN clients, 18 mac 1 PC and one PC via Parallels. I will have no more than 1 or 2 WAN clients at any one time
    I provide AFP, SMB, Directory Services currently. As part of the reconfigure, I desire to take better advantage of the collaboration tools to provide wikis and CALDAV services. I also want to allow our employees to publish their individual calendars, so that they can subscribe to them at home, or vice versa.
    I would like to configure VPN, one for me to access configurations when I am away using Remote Desktop (I have used command line to some extent, but still feel more comfortable with the GUI tools) and second for limited access to content for certain users.
    It would also be very helpful for us to have a FTP site. It is unnecessary for this the be a FQDN service, sending the IP address is perfectly acceptable as we only use a service like this 10-15 times a year.
    (Related but unimportant in the grand scheme, is there a way to generate a link to the FTP server that you could email that not only is a link, but also a temporary username and password?)
    Thank you in advance,
    Ion Webster

    First, I missed a zero in the network speeds, I have two managed GbE switches that have all of the GbE capable machines connected to them, and an unmanaged GbE switch that has all the 10 or 100Base-T connections. My apologies for the mistake. That was one of the reasons I went with the GbE capable Airport to bridge the switches.
    Ok, I had been leaning towards a separate hardware firewall, but here is also where there is a hole in my knowledge. Do I need to look at something like the Linksys RVS4000 which bills itself as a +"4-Port Gigabit Security Router with VPN. Secure, smart Gigabit networking for growing business"+ I would like easy configuration, as I take care of these systems in addition to my job, rather than full time. This will be the first time I have set up a VPN connection, so even though I have spent a lot of time researching the manuals, and reading Schoun Regan (Apple Training Series) I don't have real world experience here. So if I buy more hardware, I want it to be the product that will provide the protection, and also allow me to configure it so that I can get these services running. All my VPN clients are running Macs, most on an AIrport connection and have their IP ranges in the 10.0.1.x range. all but one is on OS 10.5.x so I have a fairly homogeneous set of machines to make work together.
    I will review the links you provided regarding static routing, but I do believe the hardware solution is a better one, and wish to pursue it, for all the reasons you give, and that in the brief perusal of the links, it is more than I want to tackle.
    As far as FTP vs sFTP, I have no preference. I simply want a way to have online storage for transfer of large files on occasion. Ideally I want a folder, or a series of folders that are accessible for my LAN users to put items in and take them out, and for my (s)FTP users to do the same
    So long story short, the hardware solution I would like to purchase, I need to be able to do the following:
    VPN connections for content access and ARD access ( knew about and will ensure differing IP ranges)
    (s)FTP
    Calendar publishing
    mail(at a later time)
    Thank you for your help thus far.
    Ion Webster

  • Is there a way to force applications to use window opening (and closing) animations?

    I'm not a big fan of the fact that most of the time, when windows open, they don't display any sort of animation, and pretty much nothing has a closing animation.
    Is there any way to force all apps to use some sort of animations, and also, is there a way to enable window closing animations?
    It just kind of bothers me, probably because of that fact that I just abandoned Windows 8 for OS X.

    Hack using spell checker's smart quote feature:
    If the document doesn't use double quotes...
    Edit > Find/Change:
    Change all ( to "
    Change all ) to "
    Those are straight quotes.
    Edit > Spell Check:
    On all instances with "string", click [Correct]
    On all instances with "string, type in (string) and click [Correct].
    Edit > Find/Change:
    Change all \` to (
    Change all \' to )
    Those are left and right double curly quotes.
    Yes, you have to hit each instance, but it will be click-to-continue except on mismatch.

  • Feature Request: Force Safari to use one window

    This feature is available on Mozilla Firefox. Is there a way to prevent Safari from opening more than one window and force all (target="_blank") links to tabs?
    iMac G5   Mac OS X (10.4)  
      Mac OS X (10.4)  

    Sorry, should have said I know that.  I would like to make the NEW WINDOW option the default.  So I don't have to open the menu each time.

  • How to use Integrated 10/100 Base-T networking interface

    I am new to Solaris, in fact I just installed it. I assumed that I would be able to connect to the internet immediately, but that isn't the case. I have an HP a1610n media center pc, and it comes with an Integrated 10/100 Base-T networking interface. Do I need to install a driver to use this network interface?

    Can Solaris 'see' your device? this tool wil let you know. [Sun Device Detection Tool 2.1      |http://www.sun.com/bigadmin/hcl/hcts/device_detect.jsp]
    If it doesn't see the controller, there are links on the device detection tool page that should help you find a driver - if one's available - for your NIC.
    john

  • Dual network interface when joining multicast group

    Hello,
    I've have a machine with two networks interfaces, eth0 and eth1. The route table is configured to send all the multicast traffic through eth1.
    This is
    route add -net 224.0.0.0 netmask 240.0.0.0 dev eth1
    I have the following code that joins to a multicast address to listen incoming messages in my Java application
    InetAddress group = InetAddress.getByName(multiCastAddress);
    socket = new MulticastSocket(Integer.parseInt(multiCastPort));
    socket.joinGroup(group);
    The result is that the application can not see the multicast traffic since the joinGroup operation is always done on eth0, guess because JVM selects the first one available.
    If I change the route entry to use eth0 for all the multicast traffic, the same code works perfectly, and from my Java application I can see the multicast traffic.
    This is
    route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0
    Is there any way to force to join a specific network interface?
    Thanks

    The answer is staring you in the face in the Javadoc:
    http://java.sun.com/j2se/1.5.0/docs/api/java/net/MulticastSocket.html#joinGroup(java.net.SocketAddress,%20java.net.NetworkInterface)
    That bug report only concerns setNetworkInterface(), which the OP isn't using, on Linux and IPv6, and it's dated 2002.

  • Network Interface selection

    Hello,
    I'd like to use specific network interfaces for different applications. For example using always wi-fi for skype, only one browser on a specified VPN and so on...
    I thought to do it using ipfw, but it seems it is not possible to set rules on the base of process ID.
    Is there any tool allowing to do such a thing? Any other suggestion would be well accepted!
    Thanks in advance

    I am not aware of any tool that can accomplish exactly what you ask. The command line tool "route" can setup protocol-based routes. You could have skype go to one interface and http go through another. But I don't know of any way to make it application-specific.

  • ACS 5.4 multiple network interfaces support

    In ACS 5.4 release note, it says:
    Multiple network interface connector support
    ACS  5.4 supports up to four network interfaces: Ethernet 0, Ethernet 1,  Ethernet 2, and Ethernet 3. ACS management functions use only the  Ethernet 0 interface, but AAA protocols use all configured network  interfaces. You must connect the ACS nodes in the distributed deployment  only to the Ethernet 0 interface. Therefore, the syslog messages are  sent and received at the log collector's Ethernet 0 interface. Data  forwarding from one interface to another interface is prohibited to  prevent potential security issues. The external identity stores are  supported only on the Ethernet 0 interface. In ACS 5.4, multiple network  interface connectors are also supported for proxies.
    But in the CSACS 1121 Series Appliance Rear View section, it still says on Ethernet 0 is usable. All other  interfaces are blocked.
    I am confused. Can anyone clarify for me if we can use multiple network interface in ACS 5.4? What about management interface?
    Thanks!

    We configured 2 interfaces in past within testing enviornment and it worked. ACS 5.4 supports multiple network interfaces on the UCS platform, on a virtual machine and on the legacy ACS 5.x IBM/CAM hardware. The ACS management functions use the interface eth0 only and the AAA protocols use all available network interfaces.
    Jatin Katyal
    - Do rate helpful posts -

Maybe you are looking for

  • Do I need to install the Flip4Mac uninstaller to uninstall Flip4Mac..?

    I updated Quicktime to 7.5 and am now, along with many others, having problems with choppy playback. I have Flip4mac installed and now want to uninstall this to see whether that may be accentuating the problem. Spotlight has revealed a package called

  • Hiow to download idoc to logical system

    Hi , How to download idoc (invoic02 ) to a logical system , when a sale order is created . after downloading how to convert to xml message. can any one help me out how to do this .since i dont have any prer knowledge on idocs little bit elobrate will

  • 1KEK only for AP balances

    Hi, I know that 1KEK will transfer the balances from FI to PCA for Accounts receivable and Accounts payable. Our requirement is to transfer only AP balances as we are using substituion of SD so no need to transfer AR balances. Will it be possible to

  • How to export and import Guide Procedure from one portal to another portal

    Hi all, I have accomplished a Guide Procedure on one portal, but I want to export this Guide Procedure and import it to another portal, please tell me what can I do? Best regards & Thanks!

  • Process Composer in NWDS

    Hi I have installed NW Developer studio trial version.  In the trail version I do not find the Process composer wizard . Is the Process composer installed as a seperate plugin ? Regards Rajeev