I am not very experienced with socks proxy. Recently I found the tun2socks. If you open the link, in the 1st paragraph it says :
It implements a TUN virtual network interface which accepts all incoming TCP connections (regardless of destination IP), and forwards them through a SOCKS server.
after that it says :
It can be used, for example, to forward connections through a remote SSH server or through Tor.
I have two questions:
Q1. I can't link the two sayings, I understand the 1st part that it forwards all TCP connections through a SOCKS server, but why it says it can be used to forward connections through SSH server? It sounds like SSH server is the SOCKS server. Could someone please clarify this to me?
Also, if someone could also give a general introduction about tun2socks, It would be great to me. Thanks in advance.
Q2. Since tun2socks is part of a thing called BadVPN, I am wondering how does socks proxy collaborate with VPN? Any examples for me to understand?