Thanks for the prompt reply.

Can you create static routes on your modem

No, I just checked; the modem can just create static reserved IP based on the MAC address but nothing about routes.

So I connect the WAN cable port to the 192.168.1.x switch and the LAN cable port to the 192.168.8.x switch (from now on is useless to call the private network 192.168.2.x, just leave it as it is).

  1. Then I have to configure the modem to do a virtual server for port 80 to the GL’s IP in the network 192.168.1.x and then set the GL to do port forwarding the port 80 to what? Several machines use port 80, but I can do port-forwarding to just one.
  2. Postgres reply to port 5432 will be on a different machine, but ther is only a postgres server, it is not a problem with port-forwarding.
  3. How to deal with port 22, it has to do port-forwarding only from my local static IP?

You have to re-do the firewall rules

How to do that? I guess that this answer will answer to the questions 1-3, too.

Am I on the right track?