Skip to content

MITM tool for NFS traffic on linux

Benjamin Coddington linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Fix default arg order error on swig > 1.xgssapi/gssapi.i+2 -01 reply
2/3Add a tool for modification of NFS network traffic: itmitm/README itm/__init__.py itm/handlers.py +6 more+353 -00 replies
3/3itm: add a handler that truncates READDIR response page dataitm/handlers/readdir_reply_nopages.py+86 -00 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchKinglong Mee
1/3A-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH pynfs 0/3] MITM tool for NFS traffic on linux

What follows is a small tool I think may be convenient to test and reproduce certain types of bugs that are difficult to create from above the filesystem, but are clearly problematic and have well-defined network triggers. Anna's recent BAD_STATEID on WRITES with delegation is a good example of that. This tool uses netfilters NFQUEUE target to allow a linux host to modify the NFS network traffic between existing clients and servers. In that sense, it is very similar to nfs-proxy, however I find it to be much more convenient to use, as it can be quickly inserted and removed from an existing network conection.

Benjamin Coddington (3):
Fix default arg order error on swig > 1.x
Add a tool for modification of NFS network traffic: itm
itm: add a handler that truncates READDIR response page data

 gssapi/gssapi.i                       |    2 +
 itm/README                            |   26 ++++
 itm/handlers.py                       |    9 ++
 itm/handlers/default.py               |   19 +++
 itm/handlers/example.py               |   14 ++
 itm/handlers/readdir_reply_nopages.py |   86 ++++++++++++
 itm/itm.py                            |  230 +++++++++++++++++++++++++++++++++
 itm/run_itm.sh                        |   41 ++++++
 itm/use_local.py                      |   14 ++
 9 files changed, 441 insertions(+), 0 deletions(-)
 create mode 100644 itm/README
 create mode 100644 itm/__init__.py
 create mode 100644 itm/handlers.py
 create mode 100644 itm/handlers/__init__.py
 create mode 100644 itm/handlers/default.py
 create mode 100644 itm/handlers/example.py
 create mode 100644 itm/handlers/readdir_reply_nopages.py
 create mode 100755 itm/itm.py
 create mode 100755 itm/run_itm.sh
 create mode 100644 itm/use_local.py