1
I want to see my hosted pages using my public address from inside and outside my network, but so far I can only from outside.
The thing is that I recently changed ISP, and they brought me a ZTE-F660. It has routing capabilities, but I use a Cisco E3200 (running tomato) as my router where I manage my network. The ZTE-F660 is kind of limited in functionality, so I port-forward everything to the E3200, and manage it from there.
Now, It seems my previous ISP modem had NAT loopback enabled, but so far the ZTE-F660 doesn't seem to support it. Yet the E3200 does.
The thing is that I've been unable to get it to work. I think it's because the ZTE-F660 modem is doing something to prevent the E3200 router from translating the public IP to a local IP.
If I run iptables -n -L -v -t nat i get:
Chain POSTROUTING (policy ACCEPT 0 packets, 0 bytes) pkts bytes
target prot opt in out source destination
0 0 SNAT all -- * vlan2 0.0.0.0/0 0.0.0.0/0 to:192.168.0.10
0 0 SNAT all -- * br0 192.168.2.0/24 192.168.2.0/24 to:192.168.2.1
192.168.0.10 is the E3200 Router IP assigned by the ZTE-F660 modem, and 192.168.2.1 is the E3200 Router IP assigned for the home network.
If I type http://192.168.0.10 I get the response I get from typing my Public IP from outside the network.
I'm sure there is something I'm missing, or not understanding.
Any help or insight will be greatly appreciated.
NAT loopback happens on the ZTE, so the configuration on the E3200 won't help (assuming the iptables output above is from tomato). Do you have the option to put the zte in bridge mode? That way, you are in complete control as it will just act as a layer 2 device, and the public IP will be on the Cisco. – Paul – 2016-02-14T23:46:04.163
Thanks. I thought something like that might be happening. No, I can't put the zte in bridge mode (If there is a way to do it, I can't find it). – Jose Rafael Perez Balen – 2016-02-15T03:40:34.453
Ok, so you'll need to do a NAT for the public IP on the ZTE and loop it back there. But of course, that would require that the public ip is static - is it? – Paul – 2016-02-15T03:51:23.963
Yes, it is static. How do I do a NAT for the public IP on the ZTE? – Jose Rafael Perez Balen – 2016-02-15T06:02:33.743