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
Release files for nfacct 0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nfacct-0.6.tar.gz | 5.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nfacct-0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.1 kB
Release files / nfacct-0.6.tar.gz
| Download URL | nfacct-0.6.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c297ba5030715f980295a6eb121b917f20b52a6d97984d96acabb1052b17fe46
|
|
BLAKE2b-256 checksum How to use checksums |
59120b9da5638e71bd959e9eebb3f6c607adf7bc5704d771d3a610efb1575522
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / nfacct-0.6-py3-none-any.whl
| Download URL | nfacct-0.6-py3-none-any.whl |
|---|---|
| Size | 18.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
00bafc9ae43650d7146b29f0fa73c64a9fb5fe8d5971050d26ccc7bc73848a7a
|
|
BLAKE2b-256 checksum How to use checksums |
bc3c6aee750a06312c50873681e2b814b56f066f54905bff901c93812c39c67d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|