Tabnine Logo
IptablesCommands.appendIptablesRule
Code IndexAdd Tabnine to your IDE (free)

How to use
appendIptablesRule
method
in
org.apache.brooklyn.util.ssh.IptablesCommands

Best Java code snippets using org.apache.brooklyn.util.ssh.IptablesCommands.appendIptablesRule (Showing top 4 results out of 315)

origin: org.apache.brooklyn/brooklyn-utils-common

/** @deprecated since 0.7.0; use {@link #appendIptablesRule(Chain, org.apache.brooklyn.util.net.Protocol, int, Policy)} */
@Deprecated
public static String appendIptablesRule(Chain chain, Protocol protocol, int port, Policy policy) {
  return appendIptablesRule(chain, protocol.convert(), port, policy);
}
origin: org.apache.brooklyn/brooklyn-utils-common

/** @deprecated since 0.7.0; use {@link #appendIptablesRule(Chain, String, org.apache.brooklyn.util.net.Protocol, int, Policy)} */
@Deprecated
public static String appendIptablesRule(Chain chain, String networkInterface, Protocol protocol, int port, Policy policy) {
  return appendIptablesRule(chain, networkInterface, protocol.convert(), port, policy);
}
origin: org.apache.brooklyn/brooklyn-utils-common

@Test
public void testAppendIptablesRulesForAllInterfaces() {
  Assert.assertEquals(IptablesCommands.appendIptablesRule(Chain.INPUT, Protocol.TCP, 3306, Policy.ACCEPT),
      appendIptablesRuleAll);
}
origin: org.apache.brooklyn/brooklyn-utils-common

@Test
public void testAppendIptablesRules() {
  Assert.assertEquals(IptablesCommands.appendIptablesRule(Chain.INPUT, "eth0", Protocol.TCP, 3306, Policy.ACCEPT),
      appendIptablesRule);
}
org.apache.brooklyn.util.sshIptablesCommandsappendIptablesRule

Javadoc

Returns the command that appends a rule to iptables.

Popular methods of IptablesCommands

  • insertIptablesRule
  • addFirewalldRule
    Returns the command that adds firewalld direct rule.
  • firewalldService
  • firewalldServiceIsActive
  • firewalldServiceStatus
  • firewalldServiceStop
  • saveIptablesRules
    Returns the command that saves iptables rules on file.
  • addIptablesRule
  • cleanUpIptablesRules
    Returns the command that cleans up iptables rules.
  • firewalldServiceRestart
  • firewalldServiceStart
  • iptablesService
  • firewalldServiceStart,
  • iptablesService,
  • iptablesServiceStatus,
  • iptablesServiceStop,
  • listIptablesRule

Popular in Java

  • Running tasks concurrently on multiple threads
  • putExtra (Intent)
  • getExternalFilesDir (Context)
  • requestLocationUpdates (LocationManager)
  • Menu (java.awt)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now