Second Commit
This commit is contained in:
parent
703f169a05
commit
b5db0b93ef
@ -36,10 +36,11 @@ sudo iptables -A INPUT -p udp --sport 80 -j ACCEPT
|
||||
|
||||
# NAT sur la carte exterieur (pouvoir curl une machine de l'autre coter)
|
||||
sudo iptables -t nat -A POSTROUTING -o "${IFEXT}" -j MASQUERADE -s 10.0.0.0/16
|
||||
sudo iptables -t nat -A POSTROUTING -o "${IFEXT}" -j MASQUERADE -s 172.16.0.0/16
|
||||
#sudo iptables -L -t nat # pour controler
|
||||
sudo iptables -A FORWARD -j ACCEPT
|
||||
|
||||
# Acces DNS sortante
|
||||
sudo iptables -A OUTPUT -p udp --dport 80 -j ACCEPT
|
||||
sudo iptables -A INPUT -p udp --sport 80 -j ACCEPT
|
||||
sudo iptables -A FORWARD -p udp --dport 53 -j ACCEPT
|
||||
sudo iptables -A FORWARD -p udp --sport 53 -j ACCEPT
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user