Where is the conflict in the configuration file?

Hello,
My Tor as a proxy works with these lines very good:

SocksPort 172.20.2.54:9050
RunAsDaemon 1
DataDirectory /var/lib/tor

I installed the OpenVPN on my server and I want it use the Tor. I changed the Tor configuration as below:

SocksPort 172.20.2.54:9050
RunAsDaemon 1
DataDirectory /var/lib/tor

## OpenVPN
VirtualAddrNetwork 20.192.0.0/10
AutomapHostsOnResolve 1
DNSPort 20.20.0.1:53530
TransPort 20.20.0.1:9040

Then, I restarted the Tor service:

# systemctl restart tor
#
# systemctl status tor
● tor.service - Anonymizing overlay network for TCP (multi-instance-master)
     Loaded: loaded (/lib/systemd/system/tor.service; enabled; preset: enabled)
     Active: active (exited) since Mon 2023-10-23 13:56:48 +0330; 31s ago
    Process: 164581 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
    Process: 164610 ExecReload=/bin/true (code=exited, status=0/SUCCESS)
   Main PID: 164581 (code=exited, status=0/SUCCESS)
        CPU: 2ms

Oct 23 13:56:48 Tor systemd[1]: Starting tor.service - Anonymizing overlay network for TCP (multi-instance-master)...
Oct 23 13:56:48 Tor systemd[1]: Finished tor.service - Anonymizing overlay network for TCP (multi-instance-master).
Oct 23 13:57:12 Tor systemd[1]: Reloading tor.service - Anonymizing overlay network for TCP (multi-instance-master)...
Oct 23 13:57:12 Tor systemd[1]: Reloaded tor.service - Anonymizing overlay network for TCP (multi-instance-master).

But, the Tor has not been run:

# netstat -nat
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
tcp        0    172 172.20.2.54:22          172.21.50.67:47884      ESTABLISHED
tcp6       0      0 ::1:25                  :::*                    LISTEN     
tcp6       0      0 :::22                   :::*                    LISTEN  

Why?

Thank you.

Hello,
Should I create a separate profile for the Proxy and OpenVPN?

Thank you.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.