Page 1 of 1

VPN tunel and Internet from client

Posted: Sun Dec 29, 2019 4:48 pm
by ramirez
Greetings everyone!

If I set up a VPN connection with certificates between a client M.T. and a host M.T. can I have the host through pre-routing rule in IP/Firewall/Mangle receive Internet from the client?

In the opposite scenario I can have a client use the host's Internet and appear to the world with the host's ISP but don't know if the opposite will work.

The goal is to have a machine that is connected on the host M.T. access the internet through the modem that is connected on the client M.T.

In the past I was able to ping machines on the LAN side of the client (from LAN machines on the Host side) but didn't have access to them. It returned the message "no route to host", and thought in order to solve that, I would have to open a new VPN with the client M.T. to also be the host M.T.

What do you think?

Re: VPN tunel and Internet from client

Posted: Sun Dec 29, 2019 7:24 pm
by Zacharias
Yes you can.
Either with the help of Mangles facility or with Routing rules...
This is called by the way, policy routing....

Re: VPN tunel and Internet from client

Posted: Sun Dec 29, 2019 7:59 pm
by ramirez
Thank you Zacharias,

So (just to double check) although I cannot access client machines (only ping them) from machines behind Host M.T., I will be able to set up a machine behind it (host M.T.) to use client's ISP ? Correct?

Re: VPN tunel and Internet from client

Posted: Sun Dec 29, 2019 8:07 pm
by Zacharias
With a correct configuration you will be able to do both...