简体   繁体   中英

acting like a switch between two sockets with python

am very new to this community

192.168.10.159:35621 communicates with 192.168.10.40:9000 where i have act like a switch between two ports validate the inbound and outbound data and send on successful validation i have send same to respected IP's

is there any sniffers or virtual network tools to help me on this please suggest

Try ncat like this:

ncat -o dump -l 192.168.10.159 35621 --sh-exec "ncat 192.168.10.40 9000"

If your distribution doesn't come with ncat or you are on windows you can get it from Nmap download page . No installation required, just drop it somewhere convenient.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM