https://www.youtube.com/playlist?list=PLKK11Ligqitg9MOX3-0tFT1Rmh3uJp7kA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# This startup script initializes a Shadowsocks server in Debian 11. | |
# It's compatible with DigitalOcean, Linode and Vultr. | |
# | |
# Author: @lexrus https://github.com/lexrus | |
# | |
# Get $100 free credit for VPS with my referral links: | |
# DigitalOcean: https://m.do.co/c/3eb5cf371fc9 | |
# Linode: https://www.linode.com/lp/refer/?r=9f144941e797d495a10c2841c3137ce1acde5f15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this needs to be on the *remote* machine. | |
if [ ! -z "$SSH_CLIENT" ] | |
then | |
function code() { | |
local ssh_client_host=$(echo $SSH_CLIENT | cut -d ' ' -f1) | |
if [ -z "$1" ] | |
then | |
local argpath="." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
More recent resolution: | |
1. cd ~/../../etc (go to etc folder in WSL). | |
2. echo "[network]" | sudo tee wsl.conf (Create wsl.conf file and add the first line). | |
3. echo "generateResolvConf = false" | sudo tee -a wsl.conf (Append wsl.conf the next line). | |
4. wsl --terminate Debian (Terminate WSL in Windows cmd, in case is Ubuntu not Debian). | |
5. cd ~/../../etc (go to etc folder in WSL). | |
6. sudo rm -Rf resolv.conf (Delete the resolv.conf file). | |
7. In windows cmd, ps or terminal with the vpn connected do: Get-NetIPInterface or ipconfig /all for get the dns primary and | |
secondary. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#EXTM3U name="北京联通IPTV(RTP)” | |
#EXTINF:-1,CCTV-1高清(1) | |
rtp://239.2.1.129:8000 | |
#EXTINF:-1,CCTV-2高清(2) | |
rtp://239.2.1.60:8084 | |
#EXTINF:-1,CCTV-4高清(4) | |
rtp://239.2.1.105:8092 | |
#EXTINF:-1,CCTV-7高清(7) | |
rtp://239.2.1.61:8104 | |
#EXTINF:-1,CCTV-9高清(9) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#EXTM3U name="bj-unicom-iptv" | |
#EXTINF:-1,CCTV1 | |
rtp://239.3.1.1:8000 | |
#EXTINF:-1,CCTV2 | |
rtp://239.3.1.2:8004 | |
#EXTINF:-1,CCTV4 | |
rtp://239.3.1.4:8216 | |
#EXTINF:-1,CCTV7 | |
rtp://239.3.1.7:8024 | |
#EXTINF:-1,CCTV9 |
- Two type of DNS network activities:
- lookup: DNS client queries a DNS server for information
- zone transfers: DNS server (the secondary server) requests from another DNS server (the primary server)
- DNS lookups are usualy executed usin UDP. (If some of data is lost in transit by UDP, the lookup will be redone using TCP)
- DNS sever uses well-known port 53 (UDP/TCP)
- Proxying characteristics of DNS:
NewerOlder