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
352 views 1 comments
by anonymous
Hello alltogether,

after trying for days to get my problem solved without success, i hope you got some game-changing information for me..

A device in 192.168.1.0/24 -network, connected to LAN Port needs to be simultaneously shared to OpenVPN (for remote access) and a different network of our client 192.168.188.0/22 via WAN Port (configured as LAN)

VPN access without integrating a client network worked well with:

#!/bin/sh
#
iptables -t nat -I PREROUTING -d 10.61.8.0/24 -i tun_c_tun0  -j NETMAP --to 192.168.1.0/24
iptables -t nat -I POSTROUTING -s 192.168.1.0/24 -o tun_c_tun0  -j NETMAP --to 10.61.8.0/24
exit 0

But how to include the client network connected to the (free remaining) WAN Port ?

Already tried several VLAN configs and traffic rules..

What am i doing wrong ?

Thanks in advance

Harry

1 Answer

0 votes
by anonymous
Hi,

As far as I understood, you only need to establish traffic bettwen both subnets. To achieve this config you can use static routes, or add a traffic rule.

As you said you "configured port as LAN", I assume you have a RUT240, if so, these are the links for RUT240.

Static routes --> https://wiki.teltonika-networks.com/view/RUT240_Routing

https://wiki.teltonika-networks.com/view/RUT240_Firewall#Traffic_Rules

Even if you wan to forward all the traffic from VPN to LAN, you can do it using zone forwarding feature.

https://wiki.teltonika-networks.com/view/RUT240_Firewall#Zone_Forwarding

Please let me know if it helped you, if don't please let me know what are your doubts and we can try to solve them.

Regards.
by anonymous
Thanks for sharing.