Closed euphoria360 closed 4 years ago
Is the paste above the full output of service vpn-policy-routing status
? It should list a section of DNSMASQ ipsets
.
And just to confirm -- have you tried rebooting the testing device or otherwise purging the DNS cache on it?
@stangri
yes, it was the full output of service vpn-policy-routing
status.
This is the current output (I've added abit more rules since then):
root@abyss-r:~# service vpn-policy-routing restart
vpn-policy-routing 0.0.4-1 stopped [✓]
Creating table 'wan/192.168.49.1' [✓]
Creating table 'wg0/10.180.83.84' [✓]
Routing 'lan' via wg0 [✓]
Routing 'telegram' via wg0 [✓]
Routing 'media' via wg0 [✓]
Routing 'news' via wg0 [✓]
Routing 'social' via wg0 [✓]
Routing 'torrent1' via wg0 [✓]
Routing 'torrent2' via wg0 [✓]
Routing 'other' via wg0 [✓]
vpn-policy-routing 0.0.4-1 started on wan/192.168.49.1 wg0/10.180.83.84 [✓]
vpn-policy-routing 0.0.4-1 monitoring interfaces: wan wg0 [✓]
root@abyss-r:~# service vpn-policy-routing status
vpn-policy-routing 0.0.4-1 running on OpenWrt 18.06.2. WAN (IPv4): wan/dev/192.168.49.1.
============================================================
Dnsmasq version 2.80 Copyright (c) 2000-2018 Simon Kelley
Compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC no-ID loop-detect inotify dumpfile
============================================================
Routes/IP Rules
default 192.168.49.1 0.0.0.0 UG 0 0 0 eth0
IPv4 Table 201: default via 192.168.49.1 dev eth0
IPv4 Table 201 Rules:
32747: from all fwmark 0x10000 lookup 201
IPv4 Table 202: default via 10.180.83.84 dev wg0
IPv4 Table 202 Rules:
32746: from all fwmark 0x20000 lookup 202
============================================================
IP Tables PREROUTING
-N VPR_PREROUTING
-A VPR_PREROUTING -d 151.101.60.193/32 -m comment --comment other_imgur_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 151.101.60.193/32 -m comment --comment other_imgur_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 52.205.36.130/32 -m comment --comment other_docker_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 52.205.36.130/32 -m comment --comment other_docker_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 52.86.8.163/32 -m comment --comment other_docker_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 52.86.8.163/32 -m comment --comment other_docker_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 34.232.230.241/32 -m comment --comment other_docker_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 34.232.230.241/32 -m comment --comment other_docker_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 108.168.194.93/32 -m comment --comment other_bintray_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 108.168.194.93/32 -m comment --comment other_bintray_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 205.185.216.10/32 -m comment --comment other_netdna-ssl_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 205.185.216.10/32 -m comment --comment other_netdna-ssl_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 185.178.208.182/32 -m comment --comment torrent2_nyaa_si -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 185.178.208.182/32 -m comment --comment torrent2_nyaa_si -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.25.47.104/32 -m comment --comment torrent2_eztv_io -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.25.47.104/32 -m comment --comment torrent2_eztv_io -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.25.48.104/32 -m comment --comment torrent2_eztv_io -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.25.48.104/32 -m comment --comment torrent2_eztv_io -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.25.108.19/32 -m comment --comment torrent2_ettv_tv -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.25.108.19/32 -m comment --comment torrent2_ettv_tv -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.25.109.19/32 -m comment --comment torrent2_ettv_tv -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.25.109.19/32 -m comment --comment torrent2_ettv_tv -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.31.71.121/32 -m comment --comment torrent2_btbit_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.31.71.121/32 -m comment --comment torrent2_btbit_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.31.70.121/32 -m comment --comment torrent2_btbit_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.31.70.121/32 -m comment --comment torrent2_btbit_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.31.17.3/32 -m comment --comment torrent2_1337x_to -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.31.17.3/32 -m comment --comment torrent2_1337x_to -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.31.16.3/32 -m comment --comment torrent2_1337x_to -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.31.16.3/32 -m comment --comment torrent2_1337x_to -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.27.212.30/32 -m comment --comment torrent2_torrentdownloads_me -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.27.212.30/32 -m comment --comment torrent2_torrentdownloads_me -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.27.213.30/32 -m comment --comment torrent2_torrentdownloads_me -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.27.213.30/32 -m comment --comment torrent2_torrentdownloads_me -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.25.202.13/32 -m comment --comment torrent2_zooqle_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.25.202.13/32 -m comment --comment torrent2_zooqle_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.25.203.13/32 -m comment --comment torrent2_zooqle_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.25.203.13/32 -m comment --comment torrent2_zooqle_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.27.214.28/32 -m comment --comment torrent2_yts_am -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.27.214.28/32 -m comment --comment torrent2_yts_am -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.27.215.28/32 -m comment --comment torrent2_yts_am -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.27.215.28/32 -m comment --comment torrent2_yts_am -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 91.212.150.157/32 -m comment --comment torrent2_katcr_co -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 91.212.150.157/32 -m comment --comment torrent2_katcr_co -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.27.217.28/32 -m comment --comment torrent2_thepiratebay_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.27.217.28/32 -m comment --comment torrent2_thepiratebay_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.27.216.28/32 -m comment --comment torrent2_thepiratebay_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.27.216.28/32 -m comment --comment torrent2_thepiratebay_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.27.131.137/32 -m comment --comment torrent1_open_demonii_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.27.131.137/32 -m comment --comment torrent1_open_demonii_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.27.130.137/32 -m comment --comment torrent1_open_demonii_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.27.130.137/32 -m comment --comment torrent1_open_demonii_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 208.83.20.20/32 -m comment --comment torrent1_exodus_desync_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 208.83.20.20/32 -m comment --comment torrent1_exodus_desync_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 62.210.79.110/32 -m comment --comment torrent1_tracker_opentrackr_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 62.210.79.110/32 -m comment --comment torrent1_tracker_opentrackr_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 188.241.58.209/32 -m comment --comment torrent1_tracker_leechers-paradise_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 188.241.58.209/32 -m comment --comment torrent1_tracker_leechers-paradise_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 195.22.28.198/32 -m comment --comment torrent1_glotorrents_pw -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 195.22.28.198/32 -m comment --comment torrent1_glotorrents_pw -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 62.138.0.158/32 -m comment --comment torrent1_tracker_coppersurfer_tk -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 62.138.0.158/32 -m comment --comment torrent1_tracker_coppersurfer_tk -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 50.31.169.131/32 -m comment --comment news_arstechnica_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 50.31.169.131/32 -m comment --comment news_arstechnica_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 212.58.249.207/32 -m comment --comment news_bbci_co_uk -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 212.58.249.207/32 -m comment --comment news_bbci_co_uk -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 212.58.249.206/32 -m comment --comment news_bbci_co_uk -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 212.58.249.206/32 -m comment --comment news_bbci_co_uk -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 212.58.244.210/32 -m comment --comment news_bbci_co_uk -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 212.58.244.210/32 -m comment --comment news_bbci_co_uk -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 212.58.244.129/32 -m comment --comment news_bbci_co_uk -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 212.58.244.129/32 -m comment --comment news_bbci_co_uk -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 151.101.128.81/32 -m comment --comment news_bbc_co_uk -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 151.101.128.81/32 -m comment --comment news_bbc_co_uk -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 151.101.64.81/32 -m comment --comment news_bbc_co_uk -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 151.101.64.81/32 -m comment --comment news_bbc_co_uk -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 151.101.0.81/32 -m comment --comment news_bbc_co_uk -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 151.101.0.81/32 -m comment --comment news_bbc_co_uk -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 151.101.192.81/32 -m comment --comment news_bbc_co_uk -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 151.101.192.81/32 -m comment --comment news_bbc_co_uk -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 151.101.128.81/32 -m comment --comment news_bbc_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 151.101.128.81/32 -m comment --comment news_bbc_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 151.101.64.81/32 -m comment --comment news_bbc_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 151.101.64.81/32 -m comment --comment news_bbc_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 151.101.0.81/32 -m comment --comment news_bbc_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 151.101.0.81/32 -m comment --comment news_bbc_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 151.101.192.81/32 -m comment --comment news_bbc_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 151.101.192.81/32 -m comment --comment news_bbc_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 52.94.228.167/32 -m comment --comment media_imdb_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 52.94.228.167/32 -m comment --comment media_imdb_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 52.94.225.248/32 -m comment --comment media_imdb_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 52.94.225.248/32 -m comment --comment media_imdb_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 52.94.237.74/32 -m comment --comment media_imdb_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 52.94.237.74/32 -m comment --comment media_imdb_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 92.240.234.122/32 -m comment --comment media_opensubtitles_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 92.240.234.122/32 -m comment --comment media_opensubtitles_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 172.64.109.34/32 -m comment --comment media_subscene_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 172.64.109.34/32 -m comment --comment media_subscene_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 172.64.108.34/32 -m comment --comment media_subscene_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 172.64.108.34/32 -m comment --comment media_subscene_com -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.16.60.155/32 -m comment --comment media_tmdb_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.16.60.155/32 -m comment --comment media_tmdb_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.16.59.155/32 -m comment --comment media_tmdb_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.16.59.155/32 -m comment --comment media_tmdb_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.16.58.155/32 -m comment --comment media_tmdb_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.16.58.155/32 -m comment --comment media_tmdb_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.16.57.155/32 -m comment --comment media_tmdb_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.16.57.155/32 -m comment --comment media_tmdb_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.16.61.155/32 -m comment --comment media_tmdb_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.16.61.155/32 -m comment --comment media_tmdb_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 143.204.214.98/32 -m comment --comment media_themoviedb_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 143.204.214.98/32 -m comment --comment media_themoviedb_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 143.204.214.89/32 -m comment --comment media_themoviedb_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 143.204.214.89/32 -m comment --comment media_themoviedb_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 143.204.214.74/32 -m comment --comment media_themoviedb_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 143.204.214.74/32 -m comment --comment media_themoviedb_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 143.204.214.5/32 -m comment --comment media_themoviedb_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 143.204.214.5/32 -m comment --comment media_themoviedb_org -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.20.81.229/32 -m comment --comment media_trakt_tv -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.20.81.229/32 -m comment --comment media_trakt_tv -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.20.82.229/32 -m comment --comment media_trakt_tv -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 104.20.82.229/32 -m comment --comment media_trakt_tv -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 54.171.218.244/32 -m comment --comment media_plex_tv -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 54.171.218.244/32 -m comment --comment media_plex_tv -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 54.171.147.115/32 -m comment --comment media_plex_tv -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 54.171.147.115/32 -m comment --comment media_plex_tv -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 54.171.5.253/32 -m comment --comment media_plex_tv -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 54.171.5.253/32 -m comment --comment media_plex_tv -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 52.50.215.159/32 -m comment --comment media_plex_tv -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 52.50.215.159/32 -m comment --comment media_plex_tv -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 52.31.211.151/32 -m comment --comment media_plex_tv -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 52.31.211.151/32 -m comment --comment media_plex_tv -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 52.18.254.79/32 -m comment --comment media_plex_tv -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 52.18.254.79/32 -m comment --comment media_plex_tv -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 52.16.101.236/32 -m comment --comment media_plex_tv -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 52.16.101.236/32 -m comment --comment media_plex_tv -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 63.32.177.143/32 -m comment --comment media_plex_tv -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 63.32.177.143/32 -m comment --comment media_plex_tv -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 149.154.172.0/22 -m comment --comment telegram -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 149.154.172.0/22 -m comment --comment telegram -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 149.154.168.0/21 -m comment --comment telegram -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 149.154.168.0/21 -m comment --comment telegram -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 149.154.160.0/21 -m comment --comment telegram -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 149.154.160.0/21 -m comment --comment telegram -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 91.108.56.0/22 -m comment --comment telegram -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 91.108.56.0/22 -m comment --comment telegram -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 91.108.8.0/22 -m comment --comment telegram -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 91.108.8.0/22 -m comment --comment telegram -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 91.108.4.0/22 -m comment --comment telegram -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -d 91.108.4.0/22 -m comment --comment telegram -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -s 192.168.48.38/32 -m comment --comment lan -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -s 192.168.48.38/32 -m comment --comment lan -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -s 192.168.48.37/32 -m comment --comment lan -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -s 192.168.48.37/32 -m comment --comment lan -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -s 192.168.48.21/32 -m comment --comment lan -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -s 192.168.48.21/32 -m comment --comment lan -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -s 192.168.48.20/32 -m comment --comment lan -c 4 640 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -s 192.168.48.20/32 -m comment --comment lan -c 4 640 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -m set --match-set wg0 dst -c 0 0 -j MARK --set-xmark 0x20000/0xff0000
-A VPR_PREROUTING -m set --match-set wan dst -c 0 0 -j MARK --set-xmark 0x10000/0xff0000
============================================================
IP Tables FORWARD
-N VPR_FORWARD
============================================================
IP Tables INPUT
-N VPR_INPUT
============================================================
IP Tables OUTPUT
-N VPR_OUTPUT
============================================================
Current ipsets
create wan hash:net family inet hashsize 1024 maxelem 65536 comment
create wg0 hash:net family inet hashsize 1024 maxelem 65536 comment
============================================================
DNSMASQ ipsets
ipset=/facebook.com/wg0 # social
ipset=/fbcdn.net/wg0 # social
ipset=/atdmt.com/wg0 # social
ipset=/twitter.com/wg0 # social
ipset=/twimg.com/wg0 # social
ipset=/t.co/wg0 # social
ipset=/reddit.com/wg0 # social
ipset=/redditmedia.com/wg0 # social
ipset=/redditstatic.com/wg0 # social
ipset=/quora.com/wg0 # social
============================================================
Your support details have been logged to '/var/vpn-policy-routing-support'. [✓]
For reboots, yes. a dozen times.
I guess I found where the issue is:
If I add an entry into vpn-policy-routing
LuCi page and set the port to TCP, upon service reload, it will be added into DNSMASQ ipsets section in service vpn-policy-routing status
. Also, it will be applied much faster and subdomains are working.
But when I set the port to UDP or TCP/UDP, no. It will not get added to DNSMASQ ipsets section in service vpn-policy-routing status
. It will be slow, and sometimes with errors. and no subdomain works.
AFAIK HTTP is a TCP service, why would you want to set the domain-only policy to TCP/UDP?
@stangri, lots of my tunneled services are websites/HTTP. but not all. Torrent trackers use udp mostly. And seems some google services use QUIC which is based on UDP (That's gonna become HTTP/3 probably). Telegram and Skype use UDP for VoIP.
And unfortunately, something in each of those examples above need to be tunnelled by me
WON'T FIX -- DNSMASQ's ipset matching can only work for TCP packets, that's the iptables limitation.
"Torrent trackers use udp mostly." - not for the web-sites and you still need a UDP rule for the whole internet for device running a torrent client. " google services use QUIC which is based on UDP " -- set up UDP port forwarding for port 80. "Telegram and Skype use UDP for VoIP." -- set the DSCP tags for these apps.
The only alternative would be to route all traffic thru the tunnel (and exclude as needed) route or all traffic from specific client thru the tunnel.
This is a feature, not a bug, for additional discussion please visit the forum.
I may have read an article which led me to believe DNSMASQ ipset only supports TCP incorrectly. Currently ipsets should be protocol agnostic, but I'll be modifying that behaviour soon.
Please test the updated version. Please reopen this if the issue still persists.
Info and needed configs and logs
Device: TP-Link WR-842ND OS: OpenWrt 18.06.2, r7676-cddd7b4c77
Issue Description
Hi and thanks for this great package. I've been using this on Openwrt 18.6.1 for few months and it was mostly ok. yesterday I clean installed OpenWRT 18.6.2 and tried whole day to make it work, but no luck! not all intended Traffic is routed to wireguard interface, especially level 3 domains that are CNAME of another domain.
Wireguard Interface is set up on wg0 and working.
here is the ping through wg0 interface:
In VPR have redirected arstechnica.com and arstechnica.net to wg0. When I traceroute arstechnica.com on a PC in LAN, everything is ok:
as you can see 2nd hop is my WG endpoint.
But if I traceroute cdn.arstechnica.net:
2nd hop is my upstream router, not WG endpoint. So no cdn.arstechnica.net content is being redirected to wg0. Can someone tell me where the problem is?