Xray-core/common/net
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
..
cnc Move common/net/connection.go into cnc folder 2020-12-28 03:20:39 +08:00
address_test.go Reformat code 2022-05-18 15:29:01 +08:00
address.go v1.0.0 2020-11-25 19:01:53 +08:00
address.pb.go Fix: protobuf file (#724) 2021-09-20 22:41:09 +08:00
address.proto v1.1.0 2020-12-04 09:36:16 +08:00
destination_test.go Reformat code 2022-05-18 15:29:01 +08:00
destination-darwin.go Add "tproxy" option (#1189) 2022-08-20 09:02:18 -04:00
destination-other.go Add "tproxy" option (#1189) 2022-08-20 09:02:18 -04:00
destination.go v1.0.0 2020-11-25 19:01:53 +08:00
destination.pb.go Fix: protobuf file (#724) 2021-09-20 22:41:09 +08:00
destination.proto v1.1.0 2020-12-04 09:36:16 +08:00
errors.generated.go v1.1.0 2020-12-04 09:36:16 +08:00
net.go v1.1.0 2020-12-04 09:36:16 +08:00
network.go v1.0.0 2020-11-25 19:01:53 +08:00
network.pb.go Fix: protobuf file (#724) 2021-09-20 22:41:09 +08:00
network.proto v1.1.0 2020-12-04 09:36:16 +08:00
port_test.go v1.1.0 2020-12-04 09:36:16 +08:00
port.go v1.0.0 2020-11-25 19:01:53 +08:00
port.pb.go Fix: protobuf file (#724) 2021-09-20 22:41:09 +08:00
port.proto v1.1.0 2020-12-04 09:36:16 +08:00
system.go Style: format code by gofumpt (#761) 2021-10-20 00:57:14 +08:00