[Summary, full note in Shaarli]
Few useful netcat tricks (Luke Maciak, 2007): a ~60 KB tool that reads and writes data over network sockets.
Netcat follows the Unix philosophy: one thing done well. socat is a more powerful fork with a different syntax.
[Summary, full note in Shaarli]
Règles FORWARD et NAT avec iptables (doc RHEL). Voir aussi http://www.admin-debian.com/securite/iptables-et-netfilter/
TLDR :
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport EXTERNAL_PORT -j DNAT --to INTERNAL_IP:INTERNAL_PORT