ankohuu commented on PR #18812:
URL: https://github.com/apache/nuttx/pull/18812#issuecomment-4331566687

   Hi @acassis ,
   
   > @ankohuu Nice finding!!! Could you please update the Documentation 
https://nuttx.apache.org/docs/latest/components/net/nat.html to include your 
test?
   > 
   > It seems they have a similar test there, but yours looks a little different
   
   - My test is basically the same as the below one in the documentation. The 
only difference is that I used `ping` to test `ICMP`, while the documented test 
uses `iperf` to test `TCP`.
   - With the same topology, a single host if0 -> if1 NAT case should be enough 
to demonstrate the behavior? Of course, I am also happy to document all the 
cases if that is preferred.
   
   ```
   Do anything in the LAN namespace will go through NAT
   
       # Host side
       iperf -B 10.0.1.1 -s -i 1
       # LAN side
       sudo ip netns exec LAN iperf -B 10.0.10.1 -c 10.0.1.1 -i 1
   ```
   
   > 
   > It seems they have a similar test there, but yours looks a little 
different, and there are only vague examples without further explanation about 
the tests.
   > 
   > It should be nice to give more details for beginners to understand the 
whole process.
   
   I also think the current documentation already has a fair amount of tech 
detail, but it may be made clearer. Can I handle this rst update in a separate 
patch?
   
   
       
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to