Antoine Junod a écrit :
>>
>>What you ping is actually the router.
>
> To be exact, the external interface of my router, yes.
No, the external address of your router. You ping an address, not an
interface. When ping'ing from the internal LAN, the external interface
is not involved.
>>Your router/firewall is not doing the port redirection properly when
>>the client is inside the LAN.
>
> I had he same conclusion. But is it a 'feature' (ie, I'm not correctly
> understanding what is going on because of a misunderstanding of the
> technical stuff and the behavior is normal) or a 'bug' (ie the
> firewall is bad and is not able to handle such a case)?
It's probably a case that the designers didn't think about. Whether you
call it a bug or a feature does not make much difference.
>>This is a rather common flaw in SOHO routers. If it runs some Linux
>>flavour and you have a shell access to it, it may be possible to fix
>>it by adding a couple of iptables rules.
>
> To say the firewall to do what?
1) Accept forwarded traffic from the internal interface back to the
internal interface. Some call it "loopback", but it don't like it
because it may be confused with the loopback interface which is a very
different thing.
2) Masquerade all forwarded connections from the internal LAN, not only
those which are forwarded to the external interface.
>>Otherwise, you can set up your local BIND to be authoritative for
>>lan.mydomain.com and serve the local web server private IP address.
>
> This is not a solution for me as the firewall is forwarding ports to
> not only one machine inside the LAN. A DNS setting would redirect all
> queries comming from inside the LAN to the same machine.
You could create and use a different hostname for each machine. Outside
the LAN, all these names would resolve to the external IP address of
your router, while inside they would resolve to the private IP addresses
of the machines.
|