Skip to main content

operate with nfacct/iptables

Project description

nfacct

pip3 install nfacct
$ nf --help
usage: nf [-h] [--in] [--out] [--noreverse] [-p [PROTO]]
          [-s [ADDR [ADDR ...]]] [-d [ADDR [ADDR ...]]]
          [--sport [SPORT [SPORT ...]]] [--dport [DPORT [DPORT ...]]]
          [-u USER] [--dry-run] [-l LEVEL] [--ip-args ARGS]
          [-e FILE [FILE ...]] [-c FILE [FILE ...]] [-v]
          {list,add,del,check,clear,init} [name]

nfacct and iptables

positional arguments:
  {list,add,del,check,clear,init}
                        list/add/del nfacct, or check requirements, add
                        default
  name                  nfacct name to add/del/list

optional arguments:
  -h, --help            show this help message and exit
  --in
  --out
  --noreverse
  -p [PROTO], --proto [PROTO]
                        port protocol
  -s [ADDR [ADDR ...]], --src-addr [ADDR [ADDR ...]]
                        source addr
  -d [ADDR [ADDR ...]], --dst-addr [ADDR [ADDR ...]]
                        dest addr
  --sport [SPORT [SPORT ...]]
                        source port
  --dport [DPORT [DPORT ...]]
                        dest port, support p1,p2,p3 or p1:p2
  -u USER, --user USER  program traffic owned by user[s]
  --dry-run             just print commands, not execute
  -l LEVEL, --level LEVEL
                        log level
  --ip-args ARGS        iptables extra args
  -e FILE [FILE ...], --env-file FILE [FILE ...]
                        load environment variables from env_file, default .env
  -c FILE [FILE ...], --conf-file FILE [FILE ...]
                        load configuation from file, default config.yaml
  -v, --version         show program's version number and exit

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nfacct-0.4.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

nfacct-0.4-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

Details for the file nfacct-0.4.tar.gz.

File metadata

  • Download URL: nfacct-0.4.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

File hashes

Hashes for nfacct-0.4.tar.gz
Algorithm Hash digest
SHA256 0afe700a7b0886a187f6a07659bff7b9361323506709b53af941a20310c3bbe8
MD5 1cb000a3e1ec3bc65b526a12a56156dd
BLAKE2b-256 b437e70ac0a6254d4cfeccccb96f5ce001ee5efe2ba889bf0df7cfa36dcbef84

See more details on using hashes here.

File details

Details for the file nfacct-0.4-py3-none-any.whl.

File metadata

  • Download URL: nfacct-0.4-py3-none-any.whl
  • Upload date:
  • Size: 18.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

File hashes

Hashes for nfacct-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 18cbbd7b21afde0ae8681021297bfe06f27f46be7263e22235edea8d63abf935
MD5 a0615dd3ebc3e8ef3fc7f7b21d2be367
BLAKE2b-256 46dd5f6bd0f783e89786ac142e7a0caecccaa91c39cd0f7c74510b8a65a5f15f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page