(feature) Solves #7

This commit is contained in:
Vadim Vetrov 2024-07-31 13:51:51 +03:00
parent ce0efaeb7b
commit 13e78bde6d
No known key found for this signature in database
GPG Key ID: E8A308689D7A73A5
3 changed files with 4 additions and 2 deletions

View File

@ -81,7 +81,7 @@ install: all
uninstall: uninstall:
rm $(PREFIX)/bin/youtubeUnblock rm $(PREFIX)/bin/youtubeUnblock
rm $(PREFIX)/lib/systemd/system/youtubeUnblock.service rm $(PREFIX)/lib/systemd/system/youtubeUnblock.service
systemctl disable youtubeUnblock.service -systemctl disable youtubeUnblock.service
clean: clean:
rm -rf $(BUILD_DIR) rm -rf $(BUILD_DIR)

View File

@ -26,7 +26,7 @@ Here iptables serves every tcp packet, destinating port 443 for this userspace p
Run an application with `youtubeUnblock 537` where `537` stands for the queue-num (must be the same as in the iptables rule). Run an application with `youtubeUnblock 537` where `537` stands for the queue-num (must be the same as in the iptables rule).
Systemd daemon is also available. Do `systemctl enable --now youtubeUnblock.service` after installation (uses queue-num `537`). Systemd daemon is also available. Do `systemctl enable --now youtubeUnblock.service` after installation (uses queue-num `537`). Please, note that systemd will configure iptables automatically. If you have troubles with it, delete ExecStartPre and ExecStop from youtubeUnblock.service and configure iptables manually (may be a useful case for nftables).
Also DNS over HTTPS (DOH) is preferred for additional anonimity. Also DNS over HTTPS (DOH) is preferred for additional anonimity.

View File

@ -5,7 +5,9 @@ Description=youtubeUnblock
StandardError=journal StandardError=journal
StandardOutput=journal StandardOutput=journal
StandardInput=null StandardInput=null
ExecStartPre=iptables -t mangle -A OUTPUT -p tcp --dport 443 -j NFQUEUE --queue-num 537 --queue-bypass
ExecStart=$(PREFIX)/bin/youtubeUnblock 537 ExecStart=$(PREFIX)/bin/youtubeUnblock 537
ExecStop=iptables -t mangle -D OUTPUT -p tcp --dport 443 -j NFQUEUE --queue-num 537 --queue-bypass
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target