firewall + random init pkt size
This commit is contained in:
1 parent
42eef31a64
commit
dbcd167a85
12 files changed
+286
-4
No files matched your search
@@ -59,6 +59,12 @@ struct CFG_ROUTE_ENTRY {
|
||||
uint8_t netmask;
|
||||
};
|
||||
|
||||
struct CFG_FIREWALL_RULE {
|
||||
uint32_t ip; // IPv4 in host byte order for sorting
|
||||
uint16_t port; // 0 means any port
|
||||
uint8_t bypass; // 1 for allow=all (bypass all checks)
|
||||
};
|
||||
|
||||
struct global_config {
|
||||
char my_private_key_hex[MAX_KEY_LEN];
|
||||
char my_public_key_hex[MAX_KEY_LEN];
|
||||
@@ -88,6 +94,11 @@ struct global_config {
|
||||
int tun_test_mode; // test mode: 1 = don't open real TUN, queues only
|
||||
int keepalive_timeout; // keepalive timeout in ms (default: 2000)
|
||||
int keepalive_interval; // keepalive interval in ms (default: 200)
|
||||
|
||||
// Firewall configuration
|
||||
struct CFG_FIREWALL_RULE *firewall_rules;
|
||||
int firewall_rule_count;
|
||||
int firewall_bypass_all;
|
||||
};
|
||||
|
||||
struct utun_config {
|
||||
|
||||
Reference in new issue
Block a user