Voy a explicar un poco mejor mi problema a ver si a alguien se le ocurre algo: yo tengo un servidor HTTPS en una maquina con IP local fija 192.168.1.2. Este servidor lo uso como repositorio de versiones, y accedo a él con un portatil, unas veces desde dentro de mi LAN y otras veces desde conexiones a internet externas. Tengo contratado un servicio de DNS dinámica, de forma que escribiendo "https://minombre.net" siempre tengo acceso a la IP del servidor. Cuando el portátil está fuera de mi LAN, se conecta sin problemas, pero cuando está dentro, no puede acceder a través de "https://minombre.net", y tiene que hacerlo a través de "https://192.168.1.2". El problema es que el portatil realiza este acceso de forma automática (dentro de un programita de sincronización de ficheros), por lo que es un poco complicado cambiar la dirección dependiendo de donde te conectes a internet.
Dado que el router tiene un Linux BusyBox dentro, y que se puede acceder a él mediante Telnet, lo más sencillo sería editar el fichero /etc/hosts para incluir el nombre de mi servidor y asociarlo a la IP 192.168.1.2. Sin embargo, este fichero no existe, y el BusyBox no me permite crearlo (creo que está capado).
Tengo acceso a las iptables a traves del interfaz TELNET del router. ¿Alguien (quizás Luke) puede explicarme un poco lo que tengo que hacer? No tengo mucha experiencia con iptables. Esto es lo que leo con "ifconfig" y con "iptables -L -v":
br0 Link encap:Ethernet HWaddr 00:15:F2:D0:5B:64
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1492 Metric:1
RX packets:18795 errors:0 dropped:0 overruns:0 frame:0
TX packets:13516 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:11241876 (10.7 MiB) TX bytes:1889073 (1.8 MiB)
br1 Link encap:Ethernet HWaddr 00:30:DA:74:0C:68
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth0 Link encap:Ethernet HWaddr 00:30:DA:74:0C:68
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:18768 errors:0 dropped:0 overruns:0 frame:0
TX packets:14132 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:11655930 (11.1 MiB) TX bytes:2156625 (2.0 MiB)
Interrupt:30 Base address:0x6800
eth0.2 Link encap:Ethernet HWaddr 00:30:DA:74:0C:68
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:17126 errors:0 dropped:0 overruns:0 frame:0
TX packets:12190 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:11137874 (10.6 MiB) TX bytes:1563060 (1.4 MiB)
eth0.3 Link encap:Ethernet HWaddr 00:30:DA:74:0C:68
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1563 errors:0 dropped:0 overruns:0 frame:0
TX packets:1935 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:173224 (169.1 KiB) TX bytes:520280 (508.0 KiB)
eth0.4 Link encap:Ethernet HWaddr 00:30:DA:74:0C:68
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth0.5 Link encap:Ethernet HWaddr 00:30:DA:74:0C:68
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:134 (134.0 B) TX bytes:134 (134.0 B)
nas_8_35 Link encap:Ethernet HWaddr 00:30:DA:74:0C:69
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10773 errors:11 dropped:1 overruns:0 frame:0
TX packets:15011 errors:0 dropped:17 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:933671 (911.7 KiB) TX bytes:10896376 (10.3 MiB)
ppp_8_35_2 Link encap:Point-Point Protocol
inet addr:87.217.159.xxx P-t-P:87.217.159.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:10494 errors:0 dropped:0 overruns:0 frame:0
TX packets:14946 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:821512 (802.2 KiB) TX bytes:10413450 (9.9 MiB)
wl0 Link encap:Ethernet HWaddr 00:15:F2:D0:5B:64
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13 errors:0 dropped:0 overruns:0 frame:2901
TX packets:86 errors:424 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3054 (2.9 KiB) TX bytes:27785 (27.1 KiB)
Interrupt:32
=======================
Chain INPUT (policy ACCEPT 21783 packets, 5029K bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT udp -- ppp_8_35_2 any anywhere anywhere udp dpts:7070:7079
0 0 ACCEPT udp -- ppp_8_35_2 any anywhere anywhere udp dpt:5060
Chain FORWARD (policy ACCEPT 229K packets, 110M bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT tcp -- ppp_8_35_2 any anywhere 192.168.1.3 tcp dpt:https
3900 297K ACCEPT udp -- ppp_8_35_2 any anywhere 192.168.1.2 udp dpt:4672
44490 30M ACCEPT tcp -- ppp_8_35_2 any anywhere 192.168.1.2 tcp dpt:4662
7374 356K TCPMSS tcp -- any ppp_8_35_2 anywhere anywhere tcp flags:SYN,RST/SYN TCPMSS clamp to PMTU
3210 154K TCPMSS tcp -- ppp_8_35_2 any anywhere anywhere tcp flags:SYN,RST/SYN TCPMSS clamp to PMTU
Chain OUTPUT (policy ACCEPT 18354 packets, 5373K bytes)
pkts bytes target prot opt in out source destination
0 0 DROP all -- any ppp_8_35_2 anywhere 239.255.255.250