Hello,
my name is Tom and I'm a OpenWrt Freshman.
For my job we have send a computer [Debian Server] and an TP-Link WR1043ND [Our OpenWrt Router] to our customers. This is the structure:
(Internet)
|
[Customer Router]
| LAN-IP 192.168.178.1
|
| WAN-IP 192.168.178.123 (dynamically)
[Our OpenWrt Router]
| LAN-IP 192.168.100.1
|
| LAN-IP 192.168.100.2
[Debian Server]
We need port-forwarding from [Custom Router] to [Our OpenWrt Router]. The IT-Guys at our customers are always pretty bad with finding [Our OpenWrt Router].
That's why I need to make a instruction on our [Debian Server] like: Dear IT-Guy, please forward PORT 123 from your Internet Router to IP 192.168.178.123.
Therefore I need to find out (by Shell Script or similar) the WAN IP-Address of [Our OpenWrt Router]. With our older Netgear Router it worked like this:
$ traceroute microsoft.com -m 2
Output:
1 192.168.178.123 (192.168.178.123) 0.123ms 0.211ms 0.254ms
2 192.168.178.1 (192.168.178.1) 0.134ms 0.212ms 0.212ms
And so I had the NAT IP-address. This is not working on OpenWrt.
Output:
1 OpenWrt.lan (192.168.100.1) 0.123ms 0.211ms 0.254ms
2 192.168.178.1 (192.168.178.1) 0.134ms 0.212ms 0.212ms
Is there any chance to get the (dynamically) WAN IP-Address? Probably with an firewall route? If I redirect an non-existing Internal-IP to WAN and Ping it? Anyone could be so kind an help me?
