LINUX.ORG.RU

Ответ на: комментарий от Kolins

#id -u debian-tor 123

#sudo iptables -t mangle -A OUTPUT -m owner --uid-owner 123 -j MARK --set-mark 0x2

#sudo ip route add default dev ppp0 table 102

#sudo ip rule add fwmark 0x2/0x2 lookup 102

Нj не работает, точнее не корректно работает.

Тор не соединяется с сетью

Sep 12 15:23:18.000 [notice] Parsing GEOIP IPv4 file /usr/share/tor/geoip.
Sep 12 15:23:18.000 [notice] Parsing GEOIP IPv6 file /usr/share/tor/geoip6.
Sep 12 15:23:18.000 [notice] Bootstrapped 0% (starting): Starting
Sep 12 15:23:19.000 [notice] Starting with guard context "default"
Sep 12 15:23:19.000 [notice] Signaled readiness to systemd
Sep 12 15:23:19.000 [notice] Bootstrapped 5% (conn): Connecting to a relay
Sep 12 15:23:20.000 [notice] Opening Socks listener on /run/tor/socks
Sep 12 15:23:20.000 [notice] Opened Socks listener connection (ready) on /run/tor/socks
Sep 12 15:23:20.000 [notice] Opening Control listener on /run/tor/control
Sep 12 15:23:20.000 [notice] Opened Control listener connection (ready) on /run/tor/control


По tcpdump видно, что пакеты через ppp0 идут.

15:26:39.174600 IP rig01.48283 > n112120247099.netvigator.com.6881: UDP, length 65
15:26:39.794758 IP n112120247099.netvigator.com.6881 > rig01.48283: UDP, length 47
15:26:44.174640 IP rig01.48283 > bba418206.alshamil.net.ae.59615: UDP, length 104
15:26:44.851585 IP bba418206.alshamil.net.ae.59615 > rig01.48283: UDP, length 317
15:26:49.174674 IP rig01.48283 > ec2-54-214-62-55.us-west-2.compute.amazonaws.com.6881: UDP, length 104
15:26:50.714715 IP ec2-54-214-62-55.us-west-2.compute.amazonaws.com.6881 > rig01.48283: UDP, length 76
15:26:54.174709 IP rig01.48283 > ec2-18-188-31-0.us-east-2.compute.amazonaws.com.6881: UDP, length 104
15:26:55.675750 IP ec2-18-188-31-0.us-east-2.compute.amazonaws.com.6881 > rig01.48283: UDP, length 76

Что то надо еще добавить , но что, не понимаю

SANyaSmol ()