File size: 2,184 Bytes
50d86e3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
  "dhcp": {
    "network": "10.0.0.0/24",
    "range_start": "10.0.0.10",
    "range_end": "10.0.0.100",
    "lease_time": 3600,
    "gateway": "10.0.0.1",
    "dns_servers": [
      "8.8.8.8",
      "8.8.4.4"
    ]
  },
  "nat": {
    "port_range_start": 10000,
    "port_range_end": 65535,
    "session_timeout": 300,
    "host_ip": "0.0.0.0"
  },
  "firewall": {
    "default_policy": "ACCEPT",
    "log_blocked": true,
    "log_accepted": false,
    "max_log_entries": 10000,
    "rules": [
      {
        "rule_id": "allow_dhcp",
        "priority": 1,
        "action": "ACCEPT",
        "direction": "BOTH",
        "dest_port": "67,68",
        "protocol": "UDP",
        "description": "Allow DHCP traffic",
        "enabled": true
      },
      {
        "rule_id": "allow_dns",
        "priority": 2,
        "action": "ACCEPT",
        "direction": "BOTH",
        "dest_port": "53",
        "protocol": "UDP",
        "description": "Allow DNS traffic",
        "enabled": true
      }
    ]
  },
  "tcp": {
    "initial_window": 65535,
    "max_retries": 3,
    "timeout": 300,
    "time_wait_timeout": 120,
    "mss": 1460
  },
  "router": {
    "router_id": "virtual-isp-router",
    "default_gateway": "10.0.0.1",
    "interfaces": [
      {
        "name": "virtual0",
        "ip_address": "10.0.0.1",
        "netmask": "255.255.255.0",
        "enabled": true,
        "mtu": 1500
      }
    ],
    "static_routes": []
  },
  "socket_translator": {
    "connect_timeout": 10,
    "read_timeout": 30,
    "max_connections": 1000,
    "buffer_size": 8192
  },
  "packet_bridge": {
    "websocket_host": "0.0.0.0",
    "websocket_port": 8765,
    "tcp_host": "0.0.0.0",
    "tcp_port": 8766,
    "max_clients": 100,
    "client_timeout": 300
  },
  "session_tracker": {
    "max_sessions": 10000,
    "session_timeout": 3600,
    "cleanup_interval": 300,
    "metrics_retention": 86400
  },
  "logger": {
    "log_level": "INFO",
    "log_to_file": true,
    "log_file_path": "/tmp/virtual_isp.log",
    "log_file_max_size": 10485760,
    "log_file_backup_count": 5,
    "log_to_console": true,
    "structured_logging": true,
    "max_memory_logs": 10000
  }
}