rubin110

Untitled

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