Browse Source

WIP: NAT route table auto configure

xcbosa-itx 2 years ago
parent
commit
51e8ccfbdc
1 changed files with 4 additions and 0 deletions
  1. 4 0
      webuiconf.h

+ 4 - 0
webuiconf.h

@@ -21,6 +21,10 @@ namespace xc::conf {
     const int mtu = 1536;
     const int mtu = 1536;
     const bool enableStaticAssetsController = false;
     const bool enableStaticAssetsController = false;
 
 
+    const string natMachineIPPrefix = "10.";
+    const int natMachineLocalhostPortBegin = 50000;
+    const int natMachineLocalhostPortSize = 10000;
+
     const string title("Frp-WebUI-XCBOSA");
     const string title("Frp-WebUI-XCBOSA");
     const int allowPortCountPerProfile(10);
     const int allowPortCountPerProfile(10);