LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-13-2018, 11:41 AM   #1
LeFex
LQ Newbie
 
Registered: Dec 2018
Posts: 2

Rep: Reputation: Disabled
Question How to route? system -> openvpn -> tor -> openvpn -> internet


Hello Guys,
I already have "system -> OpenVPN -> tor -> internet".
But I thought it must be possible to route it like in the Subject of this post!

Code:
export OVPN=tun0
iptables -A INPUT -i $OVPN -s 10.8.0.0/24 -m state --state NEW -j ACCEPT
iptables -t nat -A PREROUTING -i $OVPN -p udp --dport 53 -s 10.8.0.0/24 -j DNAT --to-destination 10.8.0.1:53530
iptables -t nat -A PREROUTING -i $OVPN -p tcp -s 10.8.0.0/24 -j DNAT --to-destination 10.8.0.1:9040
iptables -t nat -A PREROUTING -i $OVPN -p udp -s 10.8.0.0/24 -j DNAT --to-destination 10.8.0.1:9040
this works pretty fine, but i want to add one more VPN between Tor and the Internet...
does anyone of you guys know how to route it like "system -> openvpn -> tor -> openvpn -> internet", i think you know what i mean.
I know my Ping will be like I don't know xD...
Thank You, LeFex

Last edited by LeFex; 12-13-2018 at 11:43 AM.
 
Old 12-14-2018, 05:52 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,454

Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
Welcome to LQ, LeFex.

What you are doing is already OTT. A good friend of mine has lived in China for 10 years using windows and an external VPN. He is one of Jehovah's Witnesses, and that's banned in China. They'd throw him out as a foreign national, or lock him up & throw away the key if he was Chinese. They haven't caught him yet. He doesn't bother with tor. Where do you live? Why do you need so much security?

The story of Silk Road showed us that even the NSA can't crack Tor. If you live in a free country, guys will suspect your motives.

I don't think you can do as you desire, because Tor takes over routing and performs like a vpn of it's own. So tor routes itself, and you can't route tor anywhere. You're best considering Tor AS the internet.
 
Old 12-14-2018, 02:50 PM   #3
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Unless you own or control the exit points all you are really going to do is open a VPN connection that goes through a tor connection that goes through a VPN connection. Because of the overhead for the packets your are going to limit yourself in the amount of traffic you can send and receive.

Code:
===============================================
+++++++++++++++++++++++++++++++++++++++++++++++
***********************************************
   <<<<<<<<<< Traffic >>>>>>>>>>
***********************************************
+++++++++++++++++++++++++++++++++++++++++++++++
===============================================

VPN1 =
TOR +
VPN2 *
 
Old 01-09-2019, 01:54 PM   #4
LeFex
LQ Newbie
 
Registered: Dec 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
Okay, thank y for that reply, im living in Germany.
I was thinking about such topics, but theres is no reason, why i should need so much security.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Packet going out of wrong interface due to OS adding cache route - OS trying to route through default route msr1981 Linux - Networking 2 10-11-2017 02:58 PM
Packet going out of wrong interface due to OS adding cache route - OS trying to route through default route msr1981 Red Hat 1 10-09-2017 05:45 AM
openvpn push route priority over existing route lievendp Linux - Networking 0 06-22-2012 07:52 AM
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 04:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration