Skip to content

Instantly share code, notes, and snippets.

@1nikolas
Last active February 4, 2024 16:53
Show Gist options
  • Save 1nikolas/4efbfb6b0d37eba8c9ab471c55f5e892 to your computer and use it in GitHub Desktop.
Save 1nikolas/4efbfb6b0d37eba8c9ab471c55f5e892 to your computer and use it in GitHub Desktop.

Revisions

  1. 1nikolas revised this gist Feb 4, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-udpgw.sh
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,6 @@ if [ "$OS" == "x86_64" ]; then
    sudo wget -O /usr/bin/badvpn-udpgw "https://raw.githubusercontent.com/daybreakersx/premscript/master/badvpn-udpgw64"
    fi
    sudo touch /etc/rc.local
    sudo echo "\nscreen -AmdS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7300" >> /etc/rc.local
    echo "\nscreen -AmdS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7300" | sudo tee -a /etc/rc.local
    sudo chmod +x /usr/bin/badvpn-udpgw
    sudo screen -AmdS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7300
  2. 1nikolas revised this gist Mar 4, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-udpgw.sh
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,6 @@ if [ "$OS" == "x86_64" ]; then
    sudo wget -O /usr/bin/badvpn-udpgw "https://raw.githubusercontent.com/daybreakersx/premscript/master/badvpn-udpgw64"
    fi
    sudo touch /etc/rc.local
    sudo sed -i '$ i\screen -AmdS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7300' /etc/rc.local
    sudo echo "\nscreen -AmdS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7300" >> /etc/rc.local
    sudo chmod +x /usr/bin/badvpn-udpgw
    sudo screen -AmdS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7300
  3. 1nikolas revised this gist Mar 3, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions install-udpgw.sh
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,7 @@ sudo wget -O /usr/bin/badvpn-udpgw "https://raw.githubusercontent.com/daybreaker
    if [ "$OS" == "x86_64" ]; then
    sudo wget -O /usr/bin/badvpn-udpgw "https://raw.githubusercontent.com/daybreakersx/premscript/master/badvpn-udpgw64"
    fi
    sudo touch /etc/rc.local
    sudo sed -i '$ i\screen -AmdS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7300' /etc/rc.local
    sudo chmod +x /usr/bin/badvpn-udpgw
    sudo screen -AmdS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7300
  4. 1nikolas created this gist Mar 3, 2019.
    9 changes: 9 additions & 0 deletions install-udpgw.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    #!/bin/sh
    OS=`uname -m`;
    sudo wget -O /usr/bin/badvpn-udpgw "https://raw.githubusercontent.com/daybreakersx/premscript/master/badvpn-udpgw"
    if [ "$OS" == "x86_64" ]; then
    sudo wget -O /usr/bin/badvpn-udpgw "https://raw.githubusercontent.com/daybreakersx/premscript/master/badvpn-udpgw64"
    fi
    sudo sed -i '$ i\screen -AmdS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7300' /etc/rc.local
    sudo chmod +x /usr/bin/badvpn-udpgw
    sudo screen -AmdS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7300