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
474 views 2 comments
by anonymous
Hello, I have a RUT240 with an OpenVPN client, I configured the iptables of RUT240 to forward all the traffic from the "tun0" port "x" to a specific IP and port on my LAN.

Here the script that I used:

iptables -t nat -I PREROUTING -i tun0 -p tcp -m tcp --dport 44000 -j DNAT --to-destination 192.168.23.150:44000

So far everything works correctly, now I want to setup a second OpenVPN client and forward the traffic to another device on my lan.

I expect to be able to do something like that:

iptables -t nat -I PREROUTING -i tun1 -p tcp -m tcp --dport 44000 -j DNAT --to-destination 192.168.23.151:44000

But it doesn't work, any suggestion? How can I check which tun adapter is using the second VPN client?

Thanks

1 Answer

0 votes
by anonymous
Hi,

Could you try to share the troubleshoot file? You can download it in Sytem>administration menu.

If you're unable to post it, you may send it to me via private message.
by anonymous
Replied via private message.
by anonymous
Hi,

We have a new firmware release https://wiki.teltonika-networks.com/wikibase/images/8/85/RUT2_R_00.07.01.2_WEBUI.bin

Could you update your device with it? please let me know the soonest if you still face the same problem.