User guide
Security Commands
204
IPtables Command
TheiptablescommandisanadministrationtoolforIPv4packetfiltering
andNetworkAddressTranslation(NAT).Theiptablescommand
providesaninterfacetothelinuxiptables.Thecommandparametersand
optionsarethesameasthelinuxsystemcommand.
Theiptablescommandoptionsaredescribedinthefollowingtable.
Command Description
‐Ainput Appendoneormorerulestospecified
chain.
‐‐dport Destinationport
‐‐flush Cleartheiptables
‐jtarget Jumpbasedonthefollowingtarget
keywords:
ACCEPT‐Packetispassedthrough(i.e.for
INPUTchain,processedbylocalstack,for
OUTPUT,sent)
DROP‐Packetisdroppedandnofurther
processingisperformed
LOG‐
QUEUE‐Passesdatagramtouserspace(if
supportedbykernel)
RETURN‐Terminatesprocessingbythis
chainandresumesthecal
lingchain(or
executesthech
ainpolicyifthereisno
callingchain)
‐list Viewthecurrentiptables.
‐‐log‐prefixDOM_IPACL
‐mstate Loadamatchextensionmodule.
‐p Theprotocolofthetraffic.
‐s Sourceaddress
‐save SavetheIPTables.
‐‐stateNEW<enterruleto
triggerhere>
‐tfilter