Simple Python scripts to listen, log and forward network traffic
-
Use forward-tcp.py to forward TCP traffic
-
Use forward-udp.py to forward UDP traffic
-
Edit the file and set listen_host, listen_port, target_host, target_port
-
python forward-*.py
-
Output is written to stdout
-
proxy.py forwards HTTP traffic
- SMTP: python -m smtpd -c DebuggingServer -n localhost:25