I would like to run a Tor relay through my VPN (Linux using OpenVPN).
My anonymous VPN service connects through an OpenVPN tun0 interface. I run both "Tor ->- over ->- VPN" and "TBB ->- over ->- VPN" with no problems.
Using the netstat -nr
command to check (I blocked out my VPN's public IP address and internal IP addresses):
$ netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 10.---.---.--- 0.0.0.0 UG 0 0 0 tun0
10.-.-.- 10.---.---.--- 255.255.255.255 UGH 0 0 0 tun0
10.---.---.--- 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
111.222.333.444 192.168.1.1 255.255.255.255 UGH 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
I have my /etc/tor/torrc
configured to run a middle-man relay on port 9001.
Right after, I start Tor using this command:
systemctl start tor.service
And then using these two netstat commands to check right after starting tor:
netstat -tuapenv | grep -i established
netstat --all --numeric --programs --inet --inet6
I am able to see about 80 different ESTABLISHED connections to "foreign addresses" that are linked to my VPN's internal IP address in the "Local Address" column.
The 80 different "Foreign Address" are only shown for the first few minutes, then after a couple of minutes all I have left are my original three EntryGuard IP addresses shown when using those netstat commands.
So if my VPN's public address is 111.222.333.444 and its internal IP address is 10.---.---.--- which connects to my local 127.0.0.1 then how would I run a relay that stays connected and shows its IP address on the Tor Network Status page at blutmagie?