Configuracion del GW » Histórico » Versión 3
Leandro Matias Perez, 2026-01-24 17:27
| 1 | 3 | Leandro Matias Perez | hoy 24/10/26 se realizo un backup del CT que se encuentra en el ARIES se guardo la copia en el LEO por que hoy se apago y hubo fallas en el arranque de los discos. |
|---|---|---|---|
| 2 | |||
| 3 | |||
| 4 | 1 | Leandro Matias Perez | h1. Configuracion del GW |
| 5 | |||
| 6 | Se tiene en cuenta que la fibra de claro (dedicada) ingresa a traves de Atena, recordando que se encuentra hosteado en el Aries ( 10.0.1.100) |
||
| 7 | |||
| 8 | # 1. Redirigir el puerto 8090 de la interfaz 'net1' hacia 192.0.0.80:8090 |
||
| 9 | iptables -t nat -A PREROUTING -i net1 -p tcp --dport 8090 -j DNAT --to-destination 192.0.0.80:8090 |
||
| 10 | |||
| 11 | # 2. Redirigir el puerto 8075 de cualquier interfaz hacia 10.0.0.124:8075 |
||
| 12 | iptables -t nat -A PREROUTING -p tcp --dport 8075 -j DNAT --to-destination 10.0.0.124:8075 |
||
| 13 | |||
| 14 | # 3. Redirigir el puerto 8080 (http-alt) hacia 10.0.1.52:80 |
||
| 15 | iptables -t nat -A PREROUTING -p tcp --dport 8080 -j DNAT --to-destination 10.0.1.52:80 |
||
| 16 | |||
| 17 | # 4. Hacer MASQUERADE al tráfico TCP con destino puerto 8090 que salga por net2 |
||
| 18 | iptables -t nat -A POSTROUTING -o net2 -p tcp --dport 8090 -j MASQUERADE |
||
| 19 | |||
| 20 | # 5. MASQUERADE al tráfico TCP con destino 10.0.1.52:80 (http) |
||
| 21 | iptables -t nat -A POSTROUTING -p tcp -d 10.0.1.52 --dport 80 -j MASQUERADE |
||
| 22 | |||
| 23 | # 6. MASQUERADE al tráfico TCP con destino 10.0.0.124:8075 |
||
| 24 | iptables -t nat -A POSTROUTING -p tcp -d 10.0.0.124 --dport 8075 -j MASQUERADE |
||
| 25 | |||
| 26 | # 7. MASQUERADE todo el tráfico con origen 10.0.0.34 que salga por net1 |
||
| 27 | iptables -t nat -A POSTROUTING -s 10.0.0.34 -o net1 -j MASQUERADE |
||
| 28 | |||
| 29 | # 8. MASQUERADE todo el tráfico con origen 10.0.0.124 que salga por net1 |
||
| 30 | iptables -t nat -A POSTROUTING -s 10.0.0.124 -o net1 -j MASQUERADE |
||
| 31 | 2 | Leandro Matias Perez | |
| 32 | # 9. PERMITIR REDIRECCIONAMIENTO NAT |
||
| 33 | echo 1 > /proc/sys/net/ipv4/ip_forward |