FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
193 views 0 comments
by anonymous
Hi,

We have a RUT240 in the field, that connects to a LAN and has a 4G WAN uplink. An OpenVPN has been established between the Teltonika and our office. This works and we can remotely access the LAN behind the Teltonika.

One of subnets behind the Teltonika is overlapping with an office subnet. As such, we need to NAT that subnet from our office end. The overlapping subnet is 192.168.127.0/24 and we have NATTED it to 172.168.127.0/24 (ping to 172.168.127.0/24 is sent to the Teltonika).

Now on the Teltonika, we need to forward the ping towards 172.168.127.0 to 192.168.127.0 AND masquerade the source to be the Teltonika (otherwise the end device does not know how to send a reply back). How can we accomplish this?

I am afraid of just testing stuff, as the remote site is 3 hours away and is hard to get access to.

Kind regards,

Tom

2 Answers

0 votes
by anonymous
Did you get a resolution to this one?  Seems to be a very similar issue to what we're having.

We could get it working via SNAT in v6 firmware but not via custom rules in v7 firmware...
0 votes
by anonymous

Hello,

Sorry for the late response!

We have a Wiki article about dealing with this situation. While the article is meant for use with IPsec, similar NAT rules should apply to OpenVPN as well.

Hope this helps!

Best regards,
DaumantasG