From d19dde4d9a4f9f236e915a43aadee542c51bde79 Mon Sep 17 00:00:00 2001 From: vincent Date: Tue, 5 Apr 2022 22:26:57 +0200 Subject: [PATCH] format scriptblock --- IT/linux/IPTables.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IT/linux/IPTables.md b/IT/linux/IPTables.md index b0770d8..b852ab2 100644 --- a/IT/linux/IPTables.md +++ b/IT/linux/IPTables.md @@ -2,7 +2,9 @@ ## Forward un port sur un autre +```sh iptables -t nat -A PREROUTING -p udp -m udp --dport 53 -j REDIRECT --to-ports 8600 iptables -t nat -A PREROUTING -p tcp -m tcp --dport 53 -j REDIRECT --to-ports 8600 iptables -t nat -A OUTPUT -d localhost -p udp -m udp --dport 53 -j REDIRECT --to-ports 8600 iptables -t nat -A OUTPUT -d localhost -p tcp -m tcp --dport 53 -j REDIRECT --to-ports 8600 +```