Simple transparent proxy library
Find a file
2025-03-19 20:37:03 +08:00
.github Add renovate configuration 2024-10-31 21:59:32 +08:00
internal Fix checksum bench 2025-03-19 20:37:02 +08:00
.gitignore Update .gitignore 2024-02-26 13:22:15 +08:00
.golangci.yml Update linter configuration 2024-09-14 21:26:40 +08:00
go.mod Add Tun.Name 2024-11-28 14:27:11 +08:00
go.sum Add Tun.Name 2024-11-28 14:27:11 +08:00
LICENSE Init commit 2022-07-11 17:15:22 +08:00
Makefile Add bench test to makefile 2025-03-19 20:37:02 +08:00
monitor.go Fix interface callback 2024-11-12 23:18:20 +08:00
monitor_android.go Better atomic using 2025-03-19 20:37:02 +08:00
monitor_darwin.go Better atomic using 2025-03-19 20:37:02 +08:00
monitor_linux.go Fix typo of 'Android' in ErrNetlinkBanned error message 2025-03-19 20:37:02 +08:00
monitor_linux_default.go Better atomic using 2025-03-19 20:37:02 +08:00
monitor_other.go Add mixed stack 2023-08-12 19:38:06 +08:00
monitor_shared.go Fix interface callback 2024-11-12 23:18:20 +08:00
monitor_windows.go Better atomic using 2025-03-19 20:37:02 +08:00
network_name.go Migrate clashtcpip to gVisor tcpip copied 2024-11-08 12:15:37 +08:00
packages.go Use new fswatcher to udpate android packages 2024-06-26 11:02:47 +08:00
packages_android.go Use new fswatcher to udpate android packages 2024-06-26 11:02:47 +08:00
packages_stub.go Use new fswatcher to udpate android packages 2024-06-26 11:02:47 +08:00
README.md Fix system stack for ios 2023-04-17 20:02:10 +08:00
redirect.go Update network handler usages 2024-11-08 12:15:37 +08:00
redirect_iptables.go Fix gateway & FIx prefix check 2024-10-31 21:58:09 +08:00
redirect_linux.go auto-redirect: Move initialize to start 2025-02-06 08:44:55 +08:00
redirect_nftables.go auto-redirect: Fetch interfaces 2025-01-07 19:01:54 +08:00
redirect_nftables_exprs.go Using netipx.IPSet safely 2024-06-22 13:01:06 +08:00
redirect_nftables_rules.go Fix gateway & FIx prefix check 2024-10-31 21:58:09 +08:00
redirect_nftables_rules_openwrt.go auto-redirect: Add route address set support for nftables 2024-06-16 15:37:27 +08:00
redirect_server.go Update network handler usages 2024-11-08 12:15:37 +08:00
redirect_stub.go Add auto-redirect 2024-06-07 15:48:43 +08:00
stack.go Minor fixes 2024-11-08 12:15:39 +08:00
stack_gvisor.go Revert "Update udpant usages" 2024-11-27 18:04:39 +08:00
stack_gvisor_filter.go Update gVisor to 20240212.0-65-g71212d503 2024-05-07 19:52:59 +08:00
stack_gvisor_lazy.go Fix HandshakeFailure usages 2024-11-14 22:04:31 +08:00
stack_gvisor_log.go Add handshake interface support for gVisor UDP 2023-08-07 20:32:32 +08:00
stack_gvisor_stub.go Add mixed stack 2023-08-12 19:38:06 +08:00
stack_gvisor_tcp.go Export interface for WireGuard 2024-11-23 12:58:52 +08:00
stack_gvisor_tcpbuf_default.go Remove unused ICMP replies & Improve tcpbuf options 2024-11-08 12:15:52 +08:00
stack_gvisor_tcpbuf_ios.go Remove unused ICMP replies & Improve tcpbuf options 2024-11-08 12:15:52 +08:00
stack_gvisor_udp.go Revert "Update udpant usages" 2024-11-27 18:04:39 +08:00
stack_mixed.go Revert "Update udpant usages" 2024-11-27 18:04:39 +08:00
stack_system.go Fix wrong parameter in ICMPv4Checksum 2025-02-10 14:20:22 +08:00
stack_system_nat.go Implement TCP and ICMP rejects 2024-11-08 12:15:38 +08:00
stack_system_nonwindows.go Retry system listen 2024-10-14 22:10:23 +08:00
stack_system_packet.go Export interface for WireGuard 2024-11-23 12:58:52 +08:00
stack_system_windows.go Retry system listen 2024-10-14 22:10:23 +08:00
tun.go Add tun.UpdateRouteOptions 2024-12-23 22:17:27 +08:00
tun_darwin.go Fix generate darwin rules 2025-02-17 21:56:54 +08:00
tun_darwin_gvisor.go Split set route to Start() 2024-11-08 12:15:51 +08:00
tun_linux.go Ignore UDP offload error 2025-03-19 20:37:03 +08:00
tun_linux_flags.go Copy UDP GSO support from tailscale 2024-11-23 12:58:52 +08:00
tun_linux_gvisor.go Make GSO optional 2024-11-23 12:58:52 +08:00
tun_nondarwin.go Add system stack 2022-09-08 18:11:26 +08:00
tun_nonlinux.go Add GSO support 2023-12-21 16:51:06 +08:00
tun_offload.go Copy UDP GSO support from tailscale 2024-11-23 12:58:52 +08:00
tun_offload_errors.go Copy UDP GSO support from tailscale 2024-11-23 12:58:52 +08:00
tun_offload_linux.go Copy UDP GSO support from tailscale 2024-11-23 12:58:52 +08:00
tun_other.go Add create tun from file descriptor 2023-02-26 17:11:24 +08:00
tun_rules.go Fix generate darwin rules 2025-02-17 21:56:54 +08:00
tun_windows.go Improve add windows route 2024-12-29 21:19:14 +08:00
tun_windows_gvisor.go Update gvisor to 20241007.0 2024-11-08 12:15:36 +08:00

sing-tun

Simple transparent proxy library.

For Linux, Windows, macOS and iOS.

License

Copyright (C) 2022 by nekohasekai <contact-sagernet@sekai.icu>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.