Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. Commands:
  2. Either long or short options are allowed.
  3. --append -A chain Append to chain
  4. --check -C chain Check for the existence of a rule
  5. --delete -D chain Delete matching rule from chain
  6. --delete -D chain rulenum
  7. Delete rule rulenum (1 = first) from chain
  8. --insert -I chain [rulenum]
  9. Insert in chain as rulenum (default 1=first)
  10. --replace -R chain rulenum
  11. Replace rule rulenum (1 = first) in chain
  12. --list -L [chain [rulenum]]
  13. List the rules in a chain or all chains
  14. --list-rules -S [chain [rulenum]]
  15. Print the rules in a chain or all chains
  16. --flush -F [chain] Delete all rules in chain or all chains
  17. --zero -Z [chain [rulenum]]
  18. Zero counters in chain or all chains
  19. --new -N chain Create a new user-defined chain
  20. --delete-chain
  21. -X [chain] Delete a user-defined chain
  22. --policy -P chain target
  23. Change policy on chain to target
  24. --rename-chain
  25. -E old-chain new-chain
  26. Change chain name, (moving any references)
  27. Options:
  28. --ipv4 -4 Nothing (line is ignored by ip6tables-restore)
  29. --ipv6 -6 Error (line is ignored by iptables-restore)
  30. [!] --protocol -p proto protocol: by number or name, eg. `tcp'
  31. [!] --source -s address[/mask][...]
  32. source specification
  33. [!] --destination -d address[/mask][...]
  34. destination specification
  35. [!] --in-interface -i input name[+]
  36. network interface name ([+] for wildcard)
  37. --jump -j target
  38. target for rule (may load target extension)
  39. --goto -g chain
  40. jump to chain with no return
  41. --match -m match
  42. extended match (may load extension)
  43. --numeric -n numeric output of addresses and ports
  44. [!] --out-interface -o output name[+]
  45. network interface name ([+] for wildcard)
  46. --table -t table table to manipulate (default: `filter')
  47. --verbose -v verbose mode
  48. --wait -w [seconds] wait for the xtables lock
  49. --line-numbers print line numbers when listing
  50. --exact -x expand numbers (display exact values)
  51. [!] --fragment -f match second or further fragments only
  52. --modprobe=<command> try to insert modules using this command
  53. --set-counters PKTS BYTES set the counter during insert/append
  54. [!] --version -V print package version.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement