Xray-core/transport/internet
S-Mocking 59602db02d
Add "tproxy" option (#1189)
* Add "tproxy" option
Added the function of "MacOS" FreeBSD firewall traffic forwarding and resolving destination address
example:
  "inbounds": [
    {
      "listen": "127.0.0.1",
      "port": 1122,
      "protocol": "dokodemo-door",
      "tag": "dokodemo",
      "settings": {
        "network": "tcp",
        "followRedirect": true,
        "userLevel": 0
      },
      "streamSettings": {
        "sockopt": {
          "tproxy": "pf"
        }
      }
    }
  ]

* Add "tproxy" option
Added the function of "MacOS" FreeBSD firewall traffic forwarding and resolving destination address
example:
  "inbounds": [
    {
      "listen": "127.0.0.1",
      "port": 1122,
      "protocol": "dokodemo-door",
      "tag": "dokodemo",
      "settings": {
        "network": "tcp",
        "followRedirect": true,
        "userLevel": 0
      },
      "streamSettings": {
        "sockopt": {
          "tproxy": "pf"
        }
      }
    }
  ]

* Add "tproxy" option
Added the function of "MacOS" FreeBSD firewall traffic forwarding and resolving destination address
example:
  "inbounds": [
    {
      "listen": "127.0.0.1",
      "port": 1122,
      "protocol": "dokodemo-door",
      "tag": "dokodemo",
      "settings": {
        "network": "tcp",
        "followRedirect": true,
        "userLevel": 0
      },
      "streamSettings": {
        "sockopt": {
          "tproxy": "pf"
        }
      }
    }
  ]

Co-authored-by: Mocking <fanhaiwang0817@gmail.com>
2022-08-20 09:02:18 -04:00
..
domainsocket Reformat code 2022-05-18 15:29:01 +08:00
grpc Reformat code 2022-05-18 15:29:01 +08:00
headers Reformat code 2022-05-18 15:29:01 +08:00
http Reformat code 2022-05-18 15:29:01 +08:00
kcp Reformat code 2022-05-18 15:29:01 +08:00
quic Fix new Quic lib: KeepAlivePeriod (#1139) 2022-07-10 21:38:39 -04:00
stat Fix: CounterConnection with ReadV/WriteV (#720) 2021-09-20 20:11:21 +08:00
tagged Fix some tests and format code (#830) 2021-12-14 19:28:47 -05:00
tcp Reformat code 2022-05-18 15:29:01 +08:00
tls Reformat code 2022-05-18 15:29:01 +08:00
udp fix(udp): check addr nil (close 1807) 2022-08-12 20:33:33 -04:00
websocket Reformat code 2022-05-18 15:29:01 +08:00
xtls Reformat code 2022-05-18 15:29:01 +08:00
config.go v1.1.0 2020-12-04 09:36:16 +08:00
config.pb.go Add "tproxy" option (#1189) 2022-08-20 09:02:18 -04:00
config.proto Add "tproxy" option (#1189) 2022-08-20 09:02:18 -04:00
dialer.go Fix some tests and format code (#830) 2021-12-14 19:28:47 -05:00
dialer_test.go Reformat code 2022-05-18 15:29:01 +08:00
errors.generated.go v1.1.0 2020-12-04 09:36:16 +08:00
filelocker.go v1.0.0 2020-11-25 19:01:53 +08:00
filelocker_other.go Style: format code 2021-09-20 21:00:55 +08:00
filelocker_windows.go v1.0.0 2020-11-25 19:01:53 +08:00
header.go v1.1.0 2020-12-04 09:36:16 +08:00
header_test.go v1.1.0 2020-12-04 09:36:16 +08:00
internet.go v1.1.0 2020-12-04 09:36:16 +08:00
memory_settings.go v1.0.0 2020-11-25 19:01:53 +08:00
sockopt.go Fix: TFO AsIs bug (#452) 2021-03-30 16:42:02 +00:00
sockopt_darwin.go Add TCPKeepAliveIdle in Sockopt option (#1166) 2022-07-31 09:55:40 -04:00
sockopt_freebsd.go Add TCPKeepAliveIdle in Sockopt option (#1166) 2022-07-31 09:55:40 -04:00
sockopt_linux.go Add TCPKeepAliveIdle in Sockopt option (#1166) 2022-07-31 09:55:40 -04:00
sockopt_linux_test.go v1.1.0 2020-12-04 09:36:16 +08:00
sockopt_other.go Style: format code 2021-09-20 21:00:55 +08:00
sockopt_test.go Reformat code 2022-05-18 15:29:01 +08:00
sockopt_windows.go Add TCPKeepAliveIdle in Sockopt option (#1166) 2022-07-31 09:55:40 -04:00
system_dialer.go Add TCPKeepAliveIdle in Sockopt option (#1166) 2022-07-31 09:55:40 -04:00
system_listener.go Add TCPKeepAliveIdle in Sockopt option (#1166) 2022-07-31 09:55:40 -04:00
system_listener_test.go v1.1.0 2020-12-04 09:36:16 +08:00
tcp_hub.go Fix some tests and format code (#830) 2021-12-14 19:28:47 -05:00