1-Intro

Ubuntu need a simple proxy

1)-apt installation

sudo curl -fsSL https://sing-box.app/gpg.key -o /etc/apt/keyrings/sagernet.asc
sudo chmod a+r /etc/apt/keyrings/sagernet.asc
echo "deb [arch=`dpkg --print-architecture` signed-by=/etc/apt/keyrings/sagernet.asc] https://deb.sagernet.org/ * *" | \
  sudo tee /etc/apt/sources.list.d/sagernet.list > /dev/null
sudo apt-get update
sudo apt-get install sing-box # or sing-box-beta

2)-config transfer

ไฝฟ็”จ่ฟ™ไธช python ่„šๆœฌ้…ๅˆ่‡ชๅทฑ็š„ template ๅŽปไฟฎๆ”น. https://github.com/Toperlock/sing-box-subscribe


2-History

ไธ€็›ดไปฅๆฅ๏ผŒ ๅฎขๆˆท็ซฏ็š„ไปฃ็†็š„ๆŠ€ๆœฏๆœ‰3็ฑป:

  • System proxy: ็ณป็ปŸๅŽŸ็”Ÿๆ”ฏๆŒ็š„ไปฃ็†
  • Firewall redirection: ็ฝ‘็ปœ็š„ๆต้‡ๅ’Œๆ‹ฆๆˆช, ไพ‹ๅฆ‚ Windows ็š„ WFP, Linux ็š„ Redirect, eBpf, macos ็š„ pf
  • Virtual interface: ๆ‰€ๆœ‰็š„ L2 ๅ’Œ L3 ๅ„็ง vpn ้ƒฝๆ˜ฏๅŸบไบŽ่™šๆ‹Ÿ็ฝ‘็ปœๆŽฅๅฃ, single-box ๅŸบไบŽ clash-premium ็š„ TUN ๅ…ฅ็ซ™ (l3 ๅˆฐ l4 ) ็š„่ฝฌๆขๅŠŸ่ƒฝ. ๆไพ›ไบ†้€ๆ˜Ž็š„ไปฃ็†.

refer