Question: access a router through another router

Hi.
Description:

  1. I am an adsl user with dynamic valid ip.
  2. I’ve a local MikroTik router installed as a virtual machine with VMware Workstation on my windows 7.
  3. I’ve another MikroTik router installed on a remote machine with a static valid ip.
  4. I’ve configured VPN server on both routers and i can access the local and remote vpn server from my main OS (windows).
    Question:
    I want to connect local vpn server to remote vpn server.
    and make the remote vpn server accessible for local vpn server user.
    then if i connect the local vpn server, it will mean i’m connected to remote vpn server and i could access internet through remote vpn server.
    (in other words i want to make local virtual router behavior as a gateway.)
    if the question is not clear tell to explain more.
    Thanks.

you have to set up routing on your host so that default gateway goes through your local router, or just create vpn tunnel dirrectly from your host to external router and set that use that as default gateway.

Hi Janisk.
Can you explain more each one or give any examples?
or link to MikroTik wiki.
Thanks for your answer.

well, it is pure windows configuration i know nothing about. you will have to look up windows manual/help for that

I could make remote router accessible to local vpn server users as a part of local network.
but when i do this, accessing to the internet fails for local vpn server users.
I think I must make remote server to do something for this purpose.
if anybody knows , help.
thanks.

from routing point of view you have to do the following:

  1. have the route to your gateway, so that those who try to connect to VPN server can reach it
  2. create tunnel to remote server
  3. add default route through the tunnel

route with more specific destination will be selected first, so that packets to VPN erver will go as usual, the rest of the traffic should go through the tunnel. you can do that on the router or on your host, it does not matter, you just have to set routing right.

check your gateway. did you add gateway on both side on server and router?

Guru


Chicago new additions
Chicago historic home renovation

yes I have gateway on both routers.
I checked /firewall/connections .
I noticed that requests come to my server on remote but they are not replied (Unreplied - U flag) from server because of remote dns requests decline.
therefore i need to try setting a dns server.
how can i configure router to accept remote dns requests ?
Do i need to buy a dns server for this purpose ?
(I’m not sure this is true solution but maybe it’s answer)
thanks.

http://wiki.mikrotik.com/wiki/Manual:IP/DNS

allow-remote-requests=yes

Yes I saw this link.
and my question is how to make a dns server?
Do i need to buy an additional ip ?
Can I use a local ip as dns server’s ip?
(I tried local ip but it did not work)
thanks.

what, why dns server?

if you have to set up some local bindings you can use RouterOS /ip dns menu and there add static entries and point your PC to router to resolve DNS names.

Thanks Janisk.
I added dns servers on my remote server.
now, i can access web through my remote router just on icmp protocol ( i can ping any website with its domain name or ip) but i can’t view websites … (tcp connections).
Do you have any idea?

Any idea? : :confused: