good afternoon
I have certain LAN clients that can connect to socks 5 proxy but not autonomously be wireguard clients
I would like to configure my mikrotik HAP AX3 router to route its own socks 5 proxy thru a specific wireguard connection (such wireguard connection works because I use it for certain mangle rules)
I have tried the following configuration but it doesn’t work (if I enable the socks proxy and the firewall mangle rules).
Please note:
192.168.77.1 is my router IPv4 address
/ip socks
set max-connections=500 version=5
/ip socks access
add src-address=192.168.77.0/24
/ip firewall mangle
add action=mark-connection chain=prerouting comment=
“Mark SOCKS5 Traffic (TCP)” disabled=no dst-address=192.168.77.1
dst-port=1080 new-connection-mark=socks_proxy protocol=tcp
add action=mark-connection chain=prerouting comment=
“Mark SOCKS5 Traffic (UDP)” disabled=no dst-address=192.168.77.1
dst-port=1080 new-connection-mark=socks_proxy protocol=udp
add action=mark-routing chain=prerouting comment=
“socks_proxy → use-es_vlc-surfshark_vpn” connection-mark=socks_proxy
disabled=no new-routing-mark=use-es_vlc-surfshark_vpn
/routing table
add disabled=no fib name=use-es_vlc-surfshark_vpn
/ip route
add comment=“rerouting es_vlc-surfshark-wg” disabled=no distance=1
dst-address=0.0.0.0/0 gateway=es_vlc-surfshark-wg pref-src=“”
routing-table=use-es_vlc-surfshark_vpn scope=30 suppress-hw-offload=no
target-scope=10
/routing rule
add action=lookup-only-in-table disabled=no routing-mark=
use-es_vlc-surfshark_vpn table=use-es_vlc-surfshark_vpn
can someone kindly point me to the error in the configuration or alternative mode to achieve the same result? I just want to route thru such VPN the traffic of those clients that use the socks proxy, the rest of the clients shall follow the routing rules already configured in the router
thank you very much