RepositoryShell
GA

garywill/linux-router

Set Linux as router in one command. Support Internet sharing, redsocks, Wifi hotspot, IPv6. Can also be used for routing VM/containers 🛰️

2.1kstars
181forks
30issues
4views

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: router

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: wifi-hotspot

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: redsocks

#1 Repository Của Tuần

🛰️ linux-router: Linux thành router chỉ bằng một lệnh

Dự án 1-file bash script (lnxrouter) bọc iptables/dnsmasq/hostapd để biến bất kỳ máy Linux nào thành router, NAT gateway, WiFi hotspot, transparent proxy, hỗ trợ cả IPv6 và định tuyến VM/container.

linux-router là một script Shell đơn giản nhưng mạnh mẽ, cho phép cấu hình Linux làm router/NAT trong một lệnh duy nhật. Dự án hỗ trợ chia sẻ Internet, tạo WiFi hotspot, transparent proxy qua redsocks, IPv6, và rất hữu ích cho việc định tuyến các máy ảo hoặc container. Mọi cấu hình được tự động hoá thông qua việc gọi các công cụ như iptables, dnsmasq, hostapd, v.v.

✨ Điểm nổi bật

  • Tạo mạng NAT: Cung cấp Internet cho mạng con thông qua NAT.
  • Máy chủ DHCP và DNS: Gán DNS cho client và hỗ trợ DNS server nội bộ.
  • WiFi hotspot: Tạo AP với hỗ trợ bảo mật WPA2/WPA, chọn kênh, 2.4GHz/5GHz.
  • Transparent proxy (redsocks): Định tuyến toàn bộ lưu lượng qua proxy như Tor.
  • IPv6 hỗ trợ: Hỗ trợ IPv6 trong mạng LAN sau NAT.
  • Quản lý nhiều thể hiện: Chạy đồng thời nhiều mạng con khác nhau.
  • Tự động xử lý xung đột hệ thống: Phát hiện và tránh can thiệp từ NetworkManager, firewalld.
  • Dọn dẹp tự động: Dừng bằng Ctrl+C hoặc đóng cửa sổ terminal.

💡 Vì sao đáng chú ý

linux-router khác biệt ở sự đơn giản: thay vì cấu hình thủ công hàng chục dòng lệnh iptables, dnsmasq, hostapd, người dùng chỉ cần một lệnh như sudo lnxrouter -i eth1 để chia Internet cho một giao diện, hoặc sudo lnxrouter --ap wlan0 MyAP -p Pass để tạo hotspot. Dự án rất hữu ích cho việc chia sẻ kết nối Internet qua WiFi, định tuyến VM/container (LXC, LXD), hoặc thiết lập mạng nội bộ nhanh trên máy Linux.


#Linux #Router #OpenSource #Network #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryC
martin-ger/esp_wifi_repeater

A full functional WiFi NAT Router (and now also a WiFi Repeater)

5.3k
Nov 8, 2026
RepositoryGo
YTwsy/OpenSurge-for-Mac

Surge-style whole-home gateway and control plane for macOS with IPv4/IPv6 support— mihomo TUN, dnsmasq-powered DHCP/DNS, per-device routing, and an agent-friendly validation workspace.

2.7k
Nov 16, 2026
RepositoryC
martin-ger/esp32_nat_router

An AI-enabled NAT Router/Firewall for the ESP32

2.3k
Nov 21, 2026
RepositoryC
droe/sslsplit

Transparent SSL/TLS interception

1.9k
Nov 11, 2026
RepositoryTypeScript
clash-verge-rev/clash-verge-rev

A modern GUI client based on Tauri, designed to run in Windows, macOS and Linux for tailored proxy experience

160.2k
Nov 23, 2026
RepositoryJavaScript
nodejs/node

Node.js JavaScript runtime ✨🐢🚀✨

123.9k
Nov 22, 2026
Repository
jlevy/the-art-of-command-line

Master the command line, in one page

162.8k
Jun 25, 2024
RepositoryPython
sherlock-project/sherlock

Hunt down social media accounts by username across social networks

116.2k
Nov 23, 2026
RepositoryGo
fatedier/frp

A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.

110.7k
Nov 10, 2026