浏览文件
config.yaml
41 行 · 993 B历史下载| 1 | ### |
| 2 | ### This example config implements the legacy behavior, same as |
| 3 | ### you didn't provide any |
| 4 | ### |
| 5 | log-level: info |
| 6 | stack: |
| 7 | mtu: 1500 |
| 8 | subnet: 192.168.127.0/24 |
| 9 | gatewayIP: 192.168.127.1 |
| 10 | gatewayMacAddress: 5a:94:ef:e4:0c:dd |
| 11 | dns: |
| 12 | - name: containers.internal. |
| 13 | records: |
| 14 | - name: gateway |
| 15 | ip: 192.168.127.1 |
| 16 | - name: host |
| 17 | ip: 192.168.127.254 |
| 18 | - name: docker.internal. |
| 19 | records: |
| 20 | - name: gateway |
| 21 | ip: 192.168.127.1 |
| 22 | - name: host |
| 23 | ip: 192.168.127.254 |
| 24 | forwards: |
| 25 | 127.0.0.1:2222: 192.168.127.2:22 |
| 26 | nat: |
| 27 | 192.168.127.254: 127.0.0.1 |
| 28 | gatewayVirtualIPs: |
| 29 | - 192.168.127.254 |
| 30 | dhcpStaticLeases: |
| 31 | 192.168.127.2: 5a:94:ef:e4:0c:ee |
| 32 | vpnKitUUIDMacAddresses: |
| 33 | c3d68012-0208-11ea-9fd7-f2189899ab08: 5a:94:ef:e4:0c:ee |
| 34 | |
| 35 | ### |
| 36 | ### Using while testing |
| 37 | ### |
| 38 | ### go get -v . |
| 39 | ### go test . |
| 40 | ### go run . -config config.yaml |
| 41 | ### |

