Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to send traffic from aria2 (a download manager) through an OpenVPN conneciton, but leave the rest of my network alone. I saw this question and was wondering if it could be modified to send over a VPN tunnel instead of wlan0. I'm using Ubuntu Server 12.04. Right now all the traffic goes through the VPN.

share|improve this question
Possibly. Try tun0. –  Elliott Frisch Apr 11 '14 at 20:16
So just change ssh to aria2 and wlan0 to tun0? I'll give it a shot. –  Ian Hyzy Apr 11 '14 at 20:17
I get shibe@dogenet:~$ iptables -t mangle -A OUTPUT -p tcp --dport aria2 -o eth0 -j MARK --set-mark 1 iptables v1.4.12: invalid port/service aria2 specified Try iptables -h or iptables --help for more information. –  Ian Hyzy Apr 11 '14 at 23:11
Yes. What are you fetching with aria2 (a program, not a protocol). FTP, HTTP? –  Elliott Frisch Apr 11 '14 at 23:17
bitorrent. Actually, I may have found a workaround. Aria2 has an option to set a proxy in its flags and this should work with me. –  Ian Hyzy Apr 11 '14 at 23:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.