Community discussions

MikroTik App
 
mef123
just joined
Topic Author
Posts: 1
Joined: Sat Mar 26, 2022 8:17 pm

Full forward from/to IP over VPN/tunnel

Wed Mar 30, 2022 2:43 am

Hello all,

I've specific use case that unfortunately is out of my skills:
I've embedded device that using specific port for incoming and outgoing connections and require this port to work.
In my network I've same device and i can't forward same part to two devices, so my idea is to use IP/port from other location where i have full control over network.
Just to be more difficult, both devices are using same port on Mikrotik, so it's limiting options to add port to bridge for example.
On top of that devices can be configured only via DHCP.

Both places using Mikrotik routers and I've IP tunnel between (if it's needed).

In perfect scenario:
Internet -> port 1234 IP 1.2.3.4 (ext ip location 1) -> ip tunnel(or something supported by Mikrotik) -> port 1234 IP 192.168.123.4 (int. ip location 2)

Location 1:
external ip: 1.1.1.1
internal networks: 192.168.10.0/24, 192.168.11.0/24
IP Tunnel: 10.100.0.1

Location 2:
external ip: 2.2.2.2
internal networks: 192.168.100.0/24, 192.168.101.0/24, 192.168.150.0/24
IP Tunnel: 10.100.0.2
Embedded device 1 from DHCP (sharing same cable): 192.168.150.100 port 1234
Embedded device 2 from DHCP (sharing same cable): 192.168.150.101 port 1234

Current situation:
IP tunnel over internet - 1.1.1.1 <-> 2.2.2.2
ssh from 192.168.100.xx -> 192.168.11.xx - OK
ssh from 192.168.10.xx -> 192.168.101.xx - OK

Target:
Internet -> 2.2.2.2 port 1234 -> 192.168.150.100 port 1234
Internet -> 1.1.1.1 port 1234 -> 192.168.150.101 port 1234

Thanks in advance even for time spend to read this :)

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], LunaticRv, scoobyn8 and 53 guests