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