github.com/Asutorufa/yuhaiin@v0.3.6-0.20240502055049-7984da7023a0/scripts/tun/darwin.md (about)

     1  #
     2  
     3  set address for tun `utun10`
     4  
     5  ```shell
     6  sudo ifconfig utun10 172.16.0.1/32 172.16.0.1 up
     7  ```
     8  
     9  add route for proxy address
    10  
    11  ```shell
    12  sudo route add -net 10.0.2.1/24 172.16.0.1
    13  
    14  sudo route add -net 1.0.0.0/8 172.16.0.1
    15  sudo route add -net 2.0.0.0/7 172.16.0.1
    16  sudo route add -net 4.0.0.0/6 172.16.0.1
    17  sudo route add -net 8.0.0.0/5 172.16.0.1
    18  sudo route add -net 16.0.0.0/4 172.16.0.1
    19  sudo route add -net 32.0.0.0/3 172.16.0.1
    20  sudo route add -net 64.0.0.0/2 172.16.0.1
    21  sudo route add -net 128.0.0.0/1 172.16.0.1
    22  sudo route add -net 198.18.0.0/15 172.16.0.1
    23  ```