Improvements to UDP blockade bypass

Signed-off-by: main <magic_rb@redalder.org>
This commit is contained in:
main 2022-12-02 18:58:03 +01:00
parent e9a6573a4e
commit 7ecbeb6c98
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E
2 changed files with 17 additions and 4 deletions

View file

@ -86,11 +86,13 @@
};
systemd.services.udp2tcp = {
wantedBy = [ "mutli-user.target" ];
wants = [ "network-online.target" ];
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
path = with pkgs; [ dig.host ];
restartIfChanged = true;
script = ''
${pkgs.udp-over-tcp}/bin/udp2tcp\
--udp-listen 127.0.0.1:6665 \
@ -98,6 +100,15 @@
'';
};
systemd.services.udp2tcp-wake-restart = {
wantedBy = [ "suspend.target" "hibernate.target" "hybrid-sleep.target" "suspend-then-hibernate.target" ];
after = [ "suspend.target" "hibernate.target" "hybrid-sleep.target" "suspend-then-hibernate.target" ];
script = ''
systemctl restrart udp2tcp.services
'';
};
# System
system.stateVersion = "20.09";
};

View file

@ -1,8 +1,10 @@
{ pkgs, ... }:
{
systemd.services.udp2tcp = {
wantedBy = [ "mutli-user.target" ];
wants = [ "network-online.target" ];
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
restartIfChanged = true;
path = with pkgs; [ dig.host ];