On Sep 10, 9:50 am, Ralph B <goog...@spampot.com> wrote:
> I have a question regarding the config of a wireless PC. My home
> network looks a little like this:
>
> Internet
> |
> Cable modem
> |
> Wired Router
> | \ \ \-- Webserver for mydomain.tld
> | \ \----- Wired PC
> | \-------- Wired PC
> |
> Wireless Router
> z
> z
> Wireless PC
>
> The webserver (Fedora) runs a website - mydomain.tld - that is
> accessible from outside (via dynamic DNS) and internally (via static
> 192.168. entries in the /etc/host files). This works fine for the
> wired PCs - as they never leave the house - but it's not the ideal
> solution for the wireless PC (a Nokia N800).
>
> The problem with the wireless PC is that when it is attached to a
> foreign wireless network the webserver for mydomain.tld is no longer
> accessible at the 192.162 address configured in the /etc/host file.
> It's then necessary to comment out the entry in the /etc/host file
> before mydomain.tld can be accessed via the internet.
>
> So what's the right solution for this? How should I configure the
> wireless PC to use a different address for mydomain.tld when connected
> on different wireless networks.
>
> All/any advice appreciated.
OK, nevermind, it was a config problem with the wired router. After
some googling I found the solution - to turn on NAT loopback. After
this the local server can be reached internally and externally using
the same external ip address. No need to mess
with host files (which is a disaster if you are trying to use a
wireless PC!)
Anyhow I'll include the instructions here in case it can be useful
for
anyone else.
Connect to the router with telnet (the web interface doesn't include
this config item) and find the CLI - menu 24.8.
type "ip nat loopback on" <enter>
This will turn NAT loopback on but if you reboot the setting will go
back to default ie off.
To make the router keep the setting telnet to the CLI - menu 24 , 8
type "sys edit autoexec.net" <enter>
press "i", then type "ip nat loopback on" <enter>
press "x" to save the configuration.
(Credits to
http://www.the-scream.co.uk/forums/t21433.html and
http://us.zyxel.com/support/knowledg...lag=1021682046)