# Network Configuration for SMOM-DBIS-138
# Network topology and IP address allocation

# Base Subnet
SUBNET_BASE="192.168.11"
NETMASK="255.255.255.0"
GATEWAY="192.168.11.1"

# Validator Nodes Network
VLAN_VALIDATORS=100
VALIDATORS_SUBNET="192.168.11"
VALIDATORS_START_IP="192.168.11.100"
VALIDATORS_COUNT=5

# Sentry Nodes Network
VLAN_SENTRIES=101
SENTRIES_SUBNET="192.168.11"
SENTRIES_START_IP="192.168.11.150"
SENTRIES_COUNT=4

# RPC Nodes Network
VLAN_RPC=102
RPC_SUBNET="192.168.11"
RPC_START_IP="192.168.11.250"
RPC_COUNT=3

# Services Network
VLAN_SERVICES=103
SERVICES_SUBNET="192.168.11"
SERVICES_START_IP="192.168.11.60"
SERVICES_COUNT=10

# Monitoring Network
VLAN_MONITORING=104
MONITORING_SUBNET="192.168.11"
MONITORING_START_IP="192.168.11.80"
MONITORING_COUNT=5

# Public/Explorer Network
VLAN_PUBLIC=102
PUBLIC_SUBNET="192.168.11"
PUBLIC_START_IP="192.168.11.140"
PUBLIC_COUNT=10

# DNS Configuration
DNS_SERVERS="8.8.8.8 8.8.4.4"

# Firewall Rules (iptables format)
# Allow P2P communication between nodes
ALLOW_P2P="1"
P2P_PORT=30303

# Allow RPC access
ALLOW_RPC="1"
RPC_PORT=8545
RPC_WS_PORT=8546

# Allow metrics scraping
ALLOW_METRICS="1"
METRICS_PORT=9545

# Allowed RPC IPs (CIDR format)
ALLOWED_RPC_IPS=(
    "0.0.0.0/0"  # Public access - adjust as needed
)

# Static Routes
STATIC_ROUTES=(
    # Format: "destination:gateway"
)

