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.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distributions

nfacct-0.1-py3.6.egg (10.1 kB view details)

Uploaded Source

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: nfacct-0.1.tar.gz
  • Upload date:
  • Size: 4.9 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.1.tar.gz
Algorithm Hash digest
SHA256 038350002b2d473685d4f781d7079b1b4eda5e60922aaa77f7e9b1121c4c447a
MD5 b9dc95f3577e58ff62994e54f49f0a7f
BLAKE2b-256 b143fd6c062927cae5273bd685310183849b36c180c5d66c1d31eccf89f18b1a

See more details on using hashes here.

File details

Details for the file nfacct-0.1-py3.6.egg.

File metadata

  • Download URL: nfacct-0.1-py3.6.egg
  • Upload date:
  • Size: 10.1 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.1-py3.6.egg
Algorithm Hash digest
SHA256 25bca9639abe5412ace9d2da4d177211b5decc6d52f3c2ee8e216dc5c0b6dfcd
MD5 1927eb9b7f285d18d0bb7a20b367f1e9
BLAKE2b-256 e044204ae370f7057971761191a6aa2204ef26f507660dccd457920deb7600b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nfacct-0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6380bb8b38dc6c574cb4258a64f9c996fa14b6d4dea10fe81a3467add7824f23
MD5 4ed4084d5aff4f58eff80e885429c861
BLAKE2b-256 7a299709e5aaba3a5489401d23275e89b63857bb423b261f748d34eb71ea1b0d

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