Hello all friends. I have a main VPN server and I want to authenticate my users by using Mikrotik Socks5 and then send all the traffic to the main VPN server after connecting to Mikrotik socks5. The explanation is that I have connected Mikrotik to the main VPN server using PPTP Client, and I have started the VPN service on Mikrotik, and using a mangle and Default Route, I have sent all traffic related to Mikrotik VPN to the main VPN server. This item works properly. But when I write mangle for mikrotik socks5 traffic, the traffic is not sent to the main VPN server.
I think there is a problem with mangle that I am writing for socks5 on Mikrotik, which does not send the traffic correctly to the PPTP Client connection.
The mangle I wrote for socks 5 is as follows:
ip firewall mangle add chain=prerouting protocol=tcp dst
-port=3128 action=mark-routing new-routing-mark=VPN-MarkRout passthrough=yes
ip route add dst-address=0.0.0.0/0 routing-mark=VPN-Mark
Rout distance=2 type=unicast scope=30 target-scope=10 gateway=pptp-out1
Help me please. thank you