forked from guillaume.emorine/siotp
Réorganisation du dépôt de première année.
This commit is contained in:
7
bts_annee_1/tp06_proxy/fichiers_vm_admin/dnsfwd.sh
Normal file
7
bts_annee_1/tp06_proxy/fichiers_vm_admin/dnsfwd.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
echo "1" > /proc/sys/net/ipv4/ip_forward
|
||||
nft add table dnsfwd
|
||||
nft add chain dnsfwd prerouting {type nat hook prerouting priority 0 \; }
|
||||
nft add chain dnsfwd postrouting {type nat hook postrouting priority 0 \; }
|
||||
nft add rule dnsfwd postrouting tcp dport 53 masquerade
|
||||
nft add rule dnsfwd postrouting udp dport 53 masquerade
|
Reference in New Issue
Block a user