You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

486 B

title date draft
Escenario ansible y vagrant 2022-10-13T09:09:04+02:00 true

Para hacer el SNAT aplicamos la siguiente regla de iptables:

sudo iptables -t nat -A POSTROUTING -s 10.0.0.0/8 -o eth1 -j MASQUERADE
sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -i eth1 -j DNAT --to 10.0.0.0:80
iptables -t nat -A PREROUTING -p tcp --dport 80 -i ens4 -j DNAT --to 10.0.0.2:80
sudo ip route delete default
sudo ip route add default via 192.168.0.1