PDA

View Full Version : Using VPN for certain ports



99shassan
06-06-2010, 09:37 PM
I wanted to know if this was possible, is there a way to encrypt only certain protocols? For example, only encrypt bittorrent traffic on a certain port. Leaving the rest unencrypted.

Expeto
06-07-2010, 02:21 PM
in Linux, takes a few minutes with the iptables.
goes something like this if you are using this client (http://www.bittorrent.com/btusers/download/directory-list#section-linux);
iptables -t nat -A PREROUTING -p tcp --source-port 6881:6999 -j DNAT --to [your proxy server]
but copy paste probably wont work, you need to gets your hands dirty get this work.


in Windows, more tricky
I made a similar set up in my friends windows box, we used putty to forward a local port to the remote machine. Also used comodo firewall to stop leaks but I can't remember how the hell we filtered and redirected bittorrent packages(we used something like works just like routing tables). It worked great, redirected torrent and rapidshare. But it was using a proxy not VPN.