Class Rule
java.lang.Object
org.eblocker.server.common.network.unix.firewall.Rule
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic interfaceclassclassstatic enumclassstatic enumclass -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccept()destinationIp(String ip) destinationPort(int port) destinationPorts(boolean match, Integer... ports) dns()drop()getInput()http()http3()https()icmpType(Rule.IcmpType type) icmpv6()jumpToChain(String chainName) mark(int value) ownerUid(boolean match, int uid) redirectTo(int targetPort) redirectTo(String targetIp, int targetPort) reject()states(boolean match, Rule.State... states) tcp()toString()udp()
-
Field Details
-
HTTP_PORT
public static final int HTTP_PORT- See Also:
-
HTTPS_PORT
public static final int HTTPS_PORT- See Also:
-
SSH_PORT
public static final int SSH_PORT- See Also:
-
DNS_PORT
public static final int DNS_PORT- See Also:
-
-
Constructor Details
-
Rule
Copy constructor- Parameters:
template-
-
Rule
public Rule()
-
-
Method Details
-
input
-
output
-
sourceIp
-
destinationIp
-
tcp
-
udp
-
icmpv6
-
http
-
https
-
http3
-
dns
-
destinationPort
-
destinationPorts
-
matchSet
-
states
-
ownerUid
-
icmpType
-
redirectTo
-
redirectTo
-
mark
-
drop
-
accept
-
reject
-
rejectWithTcpReset
-
returnFromChain
-
masquerade
-
jumpToChain
-
comment
-
getAction
-
getSourceIp
-
getDestinationIp
-
getDestinationPort
-
getProtocol
-
getInput
-
getOutput
-
getStates
-
toString
-