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

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

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

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

/**
 * Returns the command that appends a rule to iptables to all interfaces.
 *
 * @return Returns the command that appends a rule to iptables.
 */
public static String appendIptablesRule(Chain chain, org.apache.brooklyn.util.net.Protocol protocol, int port, Policy policy) {
  return addIptablesRule("-A", chain, Optional.<String> absent(), protocol, port, policy);
}
origin: org.apache.brooklyn/brooklyn-utils-common

/**
 * Returns the command that inserts a rule on top of the iptables' rules to all interfaces.
 *
 * @return Returns the command that inserts a rule on top of the iptables'
 *         rules.
 */
public static String insertIptablesRule(Chain chain, org.apache.brooklyn.util.net.Protocol protocol, int port, Policy policy) {
  return addIptablesRule("-I", chain, Optional.<String> absent(), protocol, port, policy);
}
origin: org.apache.brooklyn/brooklyn-utils-common

/**
 * Returns the command that inserts a rule on top of the iptables' rules.
 *
 * @return Returns the command that inserts a rule on top of the iptables'
 *         rules.
 */
public static String insertIptablesRule(Chain chain, String networkInterface, org.apache.brooklyn.util.net.Protocol protocol, int port, Policy policy) {
  return addIptablesRule("-I", chain, Optional.of(networkInterface), protocol, port, policy);
}
origin: org.apache.brooklyn/brooklyn-utils-common

/**
 * Returns the command that appends a rule to iptables.
 *
 * @return Returns the command that appends a rule to iptables.
 */
public static String appendIptablesRule(Chain chain, String networkInterface, org.apache.brooklyn.util.net.Protocol protocol, int port, Policy policy) {
  return addIptablesRule("-A", chain, Optional.of(networkInterface), protocol, port, policy);
}
origin: org.apache.brooklyn/brooklyn-utils-common

/** @deprecated since 0.7.0; use {@link #addIptablesRule(String, Chain, Optional, org.apache.brooklyn.util.net.Protocol, int, Policy)} */
@Deprecated
public static String addIptablesRule(String direction, Chain chain, Optional<String> networkInterface, Protocol protocol, int port, Policy policy) {
  return addIptablesRule(direction, chain, networkInterface, protocol.convert(), port, policy);
}
org.apache.brooklyn.util.sshIptablesCommandsaddIptablesRule

Javadoc

Returns the command that creates a rule to iptables.

Popular methods of IptablesCommands

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

Popular in Java

  • Making http post requests using okhttp
  • findViewById (Activity)
  • setContentView (Activity)
  • getExternalFilesDir (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Best IntelliJ plugins
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