Could someone help me to understand what the Actions(tee and redirect) mean?

I am traying to use Zertier in my networks.
I saw the Actions( tee and redirect) somewhere.
they may help me to make the networks better.
Could you give me some examples of how to use it ?

So the closest analog to the tee command actually comes from the unix/linux command line. The tee executable takes the output of a command and prints it to the screen along with a place or file of our choice. So… for example

df -h | tee disk_usage.txt
Filesystem      Size  Used Avail Use% Mounted on
dev             7.8G     0  7.8G   0% /dev
run             7.9G  1.8M  7.9G   1% /run
/dev/nvme0n1p3  212G  159G   43G  79% /
tmpfs           7.9G  357M  7.5G   5% /dev/shm
tmpfs           7.9G     0  7.9G   0% /sys/fs/cgroup
tmpfs           7.9G   15M  7.9G   1% /tmp
/dev/nvme0n1p1  511M  107M  405M  21% /boot
/dev/sda1       459G  165G  271G  38% /data
tmpfs           1.6G   16K  1.6G   1% /run/user/120

You get the above output to the screen and there will also be a file called disk_usage.txt with the same contents.

The tee action in the rules engine does the same thing. If given the rule

tee 32 deadbeef01;

It will send the first 32 bytes of every packet to the node ID deadbeef01.

redirect does just what it sounds like. It takes packets that go to A and redirect them to the redirect target.

thank you
but, i didn’t learn any linux knowledge.
if “tee 32 deadbeef01”,then
deadbeef01 nead tools to receive the bytes or watch some info?

About Redirect.
i want to visit node A,port 80, the action redirect the port 80 to node B.
then the web page i will say is from node B.
right or no?

This topic was automatically closed after 30 days. New replies are no longer allowed.