I have socks5 proxy running on my server. I want to use socks5 proxy through vpn. According to what I found on the internet, I first need to create a device via tun2socks. How can I send pptp server traffic to socks5?
My general goal is to convert tor proxy to pptp vpn and use it in mikrotik and phone.
If possible, please guide me. I don’t know the complete instructions to do this.
socks5 proxy: 127.0.0.1:9050
pptp server ip: 192.168.40.254
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
ip tuntap add dev tun0 mode tun user tun2socks
ip addr add 192.168.70.1/24 dev tun0
ip link set tun0 up
./tun2socks -device tun://tun0 -proxy socks5://127.0.0.1:9050
Ali Kabiri is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.