How to disable network connections for an application

Hi to all,
I would like to know if there is any way a user can disable network connections for a specific application.
Thank you,
Xwang

Yes, but I would like to block only a specific application, not all the traffic from the PC.
I've found this "solution" which uses iptables on the net:
"Add a group to your system (I use nonet myself), then add a rule to your output chain like this: -A OUTPUT -m owner --gid-owner nonet -j REJECT --reject-with icmp-net-unreachable Run the program for which you know in advance that you want to block, with sg (sg nonet "your_prog your_args")."
Do you think is it right?
Another suggestion was to use unshare to call the program disabling the net for that program only.
The problem is that unshare is runnable only by root so, in case, I should turn on its setuid flag in order to execute the program as a normal user, but I don't know if it is safe to do that.
Last edited by Xwang (2014-10-11 08:06:16)

Similar Messages

  • How can I disable the Keychain for an application?

    How can I disable the Keychain for an application? A window pops up every time I open a page in Safari asking me for a password. I'm using a student laptop, so while I'm an administrator I lack access to a few things, such as the Keychain Access application. Is there any way to deal with this?

    It's possible you may be able to trick it by creating an Applications folder in your Home directory and moving Safari to it.
    I can't test this but it might work. The problem is that you would miss Safari updates, so you'd have to keep an eye out for them. Another solution may be to download another Safari and install in yourname/Applications.

  • Accept/Deny incoming network connection for apps already accepted/denied

    i am constantly getting the dialog box to allow/deny incoming network connections for applications that i launch on my MBPro, even though these programs have already been allowed or denied. this causes multiple entries for the same applications in my firewall advanced list. each time i accept or deny, a new entry of the same program is added to the list. as an example, for Excel i have 5 entries - 2 that allow incoming connections, 3 that deny. the same goes for apps like itunes, word, nleac, and others.
    if i delete these extra entries, they just get added to the next time i launch the program.
    i've tried the remedy suggested by the macfixit forum (http://reviews.cnet.com/8301-13727_7-10330466-263.html) of deleting the firewall preference file "com.apple.alf.plist" and performing a disk permission under Safe Mode - didnt help.
    looking for new suggestions. incidently, this wasnt always the case and other than upgrading to snow leopard, i cant specifically recall a change that started this problem.

    i've been doing that for some time now, as this problem has been going on for months. even after i delete all of the programs that have multiple listings (and the key word there is ALL because basically every program that wants access has multiple listings here) the list gets re-populated the next/every time i launch that application. even if i later deny an application's request after accepting previously, they'll be multiple listings for that app - including listings to Allow and listings to Deny - for the the same app!!!

  • DHCP Failover, one DHCP Server Partners Supnet is deactivated, Clients losing network connectivity for 3 sec. after renewing they IP Adress

    Hello,
    currently we are using two W2K12R2 DHCP server configured in "load balance Mode". On DHCP1 the IP-scope with failover partnership to DHCP2 is deactivated. DHCP2 is working fine. Now we register that 50 percent of our clients (W2K8R2 application
    server) losing the network connectivity for 3 sec. after rereleasing they IP-Address. On DHCP2 servers eventlog we receive a lot of
    BINDING ACK reject events 20291 and 20292 for these IP addresses entries.
    These 3 sec. of loosing they Network connectivity is our big Problem because the Client application (W2K8R2 application server) cannot handle these timeout. It looks like a
    DISCOVER-OFFER-REQUEST-NAK cycle that are described here:
    http://blogs.technet.com/b/teamdhcp/archive/2014/02/26/dhcp-failover-patch-to-address-a-reservation-issue-and-another-issue-related-to-failover-partner-not-accepting-state-transition-from-bad-address-gt-active-has-been-released.aspx#pi47623=2
    there is a solution to prevent the 3 sec network failure?
    Rgds

    Hi Steffen,
    Have you applied KB2919355 in the server?
    If issue persists, please check the detailed information about the event. It will tell us why does the server send the NAK.
    Best Regards.
    Steven Lee Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How to disable password complexity rules at application express 4.2 installation?

    Please, provide me how to disable password complexity rules at application express 4.2 installation.
    Best Regards,
    Moustafa

    According to the manual you need to check "Configuring Password Protection" in Oracle Database Security Guide
    In the security guide http://docs.oracle.com/cd/B28359_01/network.111/b28531.pdf, section 3-9/p61, you'll see you need to alter the script UTLPWDMG.SQL. You''l find the script in ORA_HOME/rdbms/admin.
    You'll need to change the script to your own liking.

  • How to disable gprs connection on BB 8900?

    Hi,
    Anybody knows how to disable gprs connection on BB 8900?
    I don't want to get connected to gprs accidentally w/o knowing...
    Thanks!

    Sure I can! Please follow the steps below:
    From the home screen on the BlackBerry click Options > Mobile Network and then change Data Services to Off.

  • How to disable Network Address Translation

    how to disable Network Address Translation

    Hi KalaiArasu.K,
    As Chen V said, please tell us more detailed information about your requirement.
    In addition, please refer to the two following links to learn how to disable Network and computer from Explorer Navigation Pane:
    How to Add or Remove Network from the Windows 7 Navigation Pane
    http://www.sevenforums.com/tutorials/39699-network-add-remove-navigation-pane.html
    How to Remove “Computer” from Windows 7 Explorer Navigation Pane?
    http://www.askvg.com/how-to-remove-computer-from-windows-7-explorers-navigation-pane/
    Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information. What’s more, incorrectly editing the registry
    may severely damage your system. Before making changes to the registry, you should back up any valued data.
    For your infomation, plase refer to the following article to learn how to configure a Registry Item via GPO:
    Configure a Registry Item
    http://technet.microsoft.com/en-us/library/cc753092.aspx
    Regards,
    Lany Zhang

  • How to change Apple ID for all applications in iPad2?

    I have changed Apple ID via Settings > Store > Apple ID > Sign out my old Apple ID > Sign in with my new Apple ID.... But, by this method, Apple ID in  iCloud, Facetime, and iMessage isn't changed follow to my new one! Do I misunderstand about changing ID? and How to change Apple ID for these applications?
    PS. I do not want to do hard reset my iPad2
    Thank you all for your kindly help ^^

    Go into Settings > iCloud > Account > Change to your new Apple ID
    Settings > Messages >  Recieve At > New Apple ID
    Settings > Facetime > Change to new Apple ID

  • How to have Secure Connection for File Adapter.Pls help

    Hi All,
    For File to File Scenario
    How to have Secure Connection for File Adapter.
    Pls send links/blogs explaining this scenario.
    Regards

    hi rich
    go through these links
    FTPs connection failed - error ".. certificate rejected by ChainVerifier"
    Re: What is SFTP, FTI channels
    http://help.sap.com/saphelp_erp2005/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
    FTPS implementation question.
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/0e16bfd7b021aee10000000a1553f6/frameset.htm
    Server certificate rejected by ChainVerifier:FTPS server(Points Guaranteed)
    /people/krishna.moorthyp/blog/2007/07/31/sftp-vs-ftps-in-sap-pi
    File adapter
    thanks
    Kunaal

  • JCo connection for the application data

    Dear All,
    Now, we configure BP for MSS. When we set JCo connection for the application data, from this link  http://help.sap.com/saphelp_erp2005/helpdata/en/29/d7844205625551e10000000a1550b0/frameset.htm we selected the method "Ticket".
    When we run the page in "Team" area, we found some errors as follow:
    - You do not have the authorization to start service sap.com/pcui_gp~isr/IsrStatusoverview
    - You do not have the authorization to start service sap.com/mssreccand/CandidateStatusOverview
    - Pages about "Employee Information" display Blank iViews.
    But if we set JCo connection for application data by using "User/Password" method (UserID have "SAP_ALL" profile in back-end system), the application work fine.
    Kindy advise us which method should be used to set JCo connection (Ticket or User/Password).
    If the method should be "User/Password", please advise authorization and user type for UserID that be used to map JCo connection.
    Thank you very much,
    Anek.

    Hi,
    Go through the contents in,
    http://help.sap.com/saphelp_ep60sp2/helpdata/en/8f/67d27676ace84080964d4c4223bb3c/content.htm
    Hope this helps !
    Regards
    Srinivasan T

  • How To run Currency translation for Consolidation Application in BPC NW

    In "How To do Currency Translation for Financial Application in BPC 7 NW", the author mention that there is another "How To run Currency translation for Consolidation Application in BPC NW", anybody know where to get it?

    Hi...
    Check if the below links are useful to you.....
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/6052a57b-8c64-2c10-b3a5-b0378ff21243&overridelayout=true
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0ea1fd8-d6d3-2a10-c1ab-e8164dd98316
    You can find all How-to docs in the below link
    http://wiki.sdn.sap.com/wiki/display/BPX/EnterprisePerformanceManagement%28EPM%29How-to+Guides

  • How to capture memory usage for web application

    In OATS openscripts, how to capture memory usage for web application? Does it have the exisitng java method that we can call to get the memory data (e.g. peak bytes, private bytes) consumed by web application?

    JProbe

  • TS1702 HOW TO CANCEL AN SUBSCRITION  FOR AN APPLICATION THAT DOES NOT WORK

    HOW TO CANCEL AN SUBSCRITION  FOR AN APPLICATION THAT DOES NOT WORK

    Please stop SHOUTING at us.
    http://support.apple.com/kb/ht4098

  • Does Anyone Knows How To Disable The "Check For Updates" Option in Adobe Edge Code and Reflow?

    Does Anyone Knows How To Disable The "Check For Updates" Option in Adobe Edge Code and Reflow?
    Thanks in Advance

    I don't think there is a way for Edge Code. I'm not sure about Reflow.
    Why don't you just upgrade? That will stop the notifications.
    Randy

  • How to build ear files for ADF application using Ant task

    How to build ear files for ADF applications using Ant. The ojdeploy ant task can not find application-level deployment profiles. I am trying to automated build and release for ADF application.
    Any help is highly appreciated.
    Thanks
    Shiva

    Hi Timo
    Thanks for your reply.
    I have successfully created ear file using ojdeploy on jenkins. however when am trying to auto deploy using WLDeploy ant task am getting the following
    error :
    weblogic.application.ModuleException: :oracle.mds.config.MDSConfigurationException:MDS-01335: namespace "/oracle/webcenter/quicklinks/scopedMD" mapped to metadata-store-usage "WebCenterFileMetadataStore" but its definition was not found in MDS configuration
    Please advise how to handle this.
    As am a newbie to ADF, could you please advise if it is possible for the ADF application deployments can be automated for different environments using jenkins due to this MDS dependencies.
    Appreciate your help.
    Thanks
    Shiva

Maybe you are looking for

  • EAM Asset Number Open Interface  - Technical Reference docs required

    Hello, I'm developing a migration of EAM assets. I have no issue by filling the interface tables MTL_EAM_ASSET_NUM_INTERFACE and MTL_EAM_ATTR_VAL_INTERFACE and then running the "Import Asset Number" standard functionallity. But, I need to work with g

  • How to understand the way OBIEE implements outer joins?

    Hello guys I have a few scenarios where I have to implement outer joins and inner joins between dimensions and facts.. There are 2 ways as far as I know that allows me to implement outer joins in BMM layer. 1, Join the Logical dim table A to Logical

  • PRIMARY KEY(MASTER)를 REFERENCE하는 FOREIGN KEY 찾는 SQL

    제품 : ORACLE SERVER 작성날짜 : 2004-03-12 PRIMARY KEY(MASTER)를 REFERENCE하는 FOREIGN KEY 찾는 SQL ======================================================== $sqlplus sys/manager(SYS user 로 login 함) sql> select c.name constraint_name from dba_objects a, cdef$ b,

  • Running bat files in Flex

    Is there any way in which we can run a *.bat or *.exe file in a flex web application. Will fscommand() work in Web application?? I heard that it is used in AIR applications...

  • Adobe reader fails to load

    I attempted to load Adobe Reader and received the error message "Object already Exists" with Adobe failing to load.  Please help.