Community discussions

MikroTik App
 
farzin
just joined
Topic Author
Posts: 16
Joined: Wed Feb 29, 2012 4:12 pm

configure a vpn to show source user ip instead of mikrotik router ip

Fri Feb 23, 2018 5:04 pm

Hi, I have a problem in accessing a site from my local internet.
so I have to connect to vpn to be able to view that site. also that site requires me to have my own country IP, so if it detects the country of vpn server it will block my user access.
is it possible to configure mikrotik pptp / l2tp vpn so that it shows the source "connection ID"field to the destination website instead of mikrotik ip?

I have configured a static route. and set prefered source as the IP of my internet. but it couldn't work correctly. ( as the source ip , is not one of that mikrotik IP addresses. )
what can I do? any suggestions appreciated.

for exmaple I connect to vpn using ip : 88.x.y.z
and website ip is : 37.a.b.c
my internet ip is : 1.2.3.4

when I connect to mikrotik vpn , that website will see my ip as 88.x.y.z . , but I want it to see that original 1.2.3.4 ip.
 
User avatar
cdiedrich
Forum Veteran
Forum Veteran
Posts: 997
Joined: Thu Feb 13, 2014 2:03 pm
Location: Basel, Switzerland // Bremen, Germany
Contact:

Re: configure a vpn to show source user ip instead of mikrotik router ip

Fri Feb 23, 2018 5:14 pm

That means that your connection to that server is not going through the VPN connection.
Make sure you tick "Send all traffic through VPN" (or similar) on your VPN client device.

And make sure you src-nat your vpn pool towards outside.

-Chris
 
Sob
Forum Guru
Forum Guru
Posts: 9119
Joined: Mon Apr 20, 2009 9:11 pm

Re: configure a vpn to show source user ip instead of mikrotik router ip  [SOLVED]

Fri Feb 23, 2018 5:45 pm

To me it sounds like the request is for the opposite, to go through VPN, but keep the original non-VPN address. And if that's not just my misunderstanding, it's impossible.
 
User avatar
cdiedrich
Forum Veteran
Forum Veteran
Posts: 997
Joined: Thu Feb 13, 2014 2:03 pm
Location: Basel, Switzerland // Bremen, Germany
Contact:

Re: configure a vpn to show source user ip instead of mikrotik router ip

Fri Feb 23, 2018 5:47 pm

Ah. Now I read the post again and totally agree, Sob.
Definitely impossible.
-Chris
 
farzin
just joined
Topic Author
Posts: 16
Joined: Wed Feb 29, 2012 4:12 pm

Re: configure a vpn to show source user ip instead of mikrotik router ip

Fri Feb 23, 2018 7:11 pm

To me it sounds like the request is for the opposite, to go through VPN, but keep the original non-VPN address. And if that's not just my misunderstanding, it's impossible.
yes, I want to use route, gateway of the mikrotik vpn , when I connect to it using vpn. but that one website see the original non mikrotik of user ISP IP. some how replacing the source ip in route or header or nat or something :))
thanks for answers.
 
User avatar
Consul
just joined
Posts: 3
Joined: Sat Feb 02, 2019 3:48 pm
Location: Tallinn
Contact:

Re: configure a vpn to show source user ip instead of mikrotik router ip

Sat Feb 02, 2019 3:51 pm

untik button "use default gateway on remote network"

or follow this manual

https://seed4.me/blog/send-all-traffic- ... n-windows/

Who is online

Users browsing this forum: No registered users and 86 guests