mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2024-12-22 22:36:03 +00:00
(feature) Solves #7
This commit is contained in:
parent
ce0efaeb7b
commit
13e78bde6d
2
Makefile
2
Makefile
@ -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)
|
||||||
|
@ -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.
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user