Dev
Mock Network Config Generator
Network engineers and DevOps teams often need realistic config data before infrastructure is provisioned — for seed scripts, parser tests, lab exercises, or documentation. The mock network config generator produces plausible blocks for four resource types: hosts, interfaces, firewall rules, and VPN peers. Set the count (1–15) and pick a type. Host blocks include hostname, IP, subnet mask, gateway, MAC, and DNS servers. Interface blocks carry interface name, CIDR address, MTU, link speed, and state. Firewall rule blocks include rule ID, action, protocol, source and destination CIDRs, destination port, and priority. VPN peer blocks include endpoint, allowed IPs, keepalive, and a 44-character base64 public key. All IPs are randomly generated. Some may fall outside RFC 1918 ranges, so filter if your environment enforces private-only addressing.
How to use
- Choose your options above
- Click Generate
- Copy your result
Detailed instructions
- Set the Count field to the number of config blocks you need for your test or documentation task.
- Open the Config Type dropdown and select the format that matches your use case: host, interface, firewall rule, or VPN peer.
- Click Generate to produce all config blocks at once in the output panel below.
- Review the output to confirm the field structure matches your expected schema, then copy individual blocks or the full output.
- Paste the configs into your test fixture, documentation template, or seed script as needed.
Use Cases
- •Seeding a CMDB or network inventory demo with realistic host and subnet records
- •Unit-testing a firewall rule parser against varied protocol, port, and action combinations
- •Populating Ansible inventory files with dummy host configs before real devices are provisioned
- •Building VPN peer entries for integration tests in a Terraform or Pulumi staging environment
- •Creating onboarding lab configs for new network engineers without exposing live topology
Tips
- →Generate firewall rule configs in batches of 20+ to get enough field variation for thorough parser edge-case testing.
- →If you need strictly RFC 1918 private addresses, filter the output for 10.x, 172.16-31.x, or 192.168.x ranges before use.
- →Combine host and interface outputs to build a two-layer inventory: hosts as the device layer and interfaces as the port layer.
- →For VPN peer configs, generate at least two sets and pair them manually to simulate realistic tunnel endpoint relationships.
- →Use the output as seed data in factories or fixtures files so your test suite always has deterministic-looking but varied network data.
- →When demoing a network UI, generate configs across all types and mix them in your demo dataset to show how the interface handles diverse record formats.
FAQ
are the generated IP addresses safe to use in test environments
The IPs are randomly constructed and do not correspond to any live infrastructure. However, some may fall outside RFC 1918 private ranges (10.x, 172.16–31.x, 192.168.x), so if your test environment enforces private-only addressing, scan the output before use.
what fields do firewall rule and vpn peer configs actually include
Firewall rule blocks include rule_id, action (allow/deny/log), protocol (tcp/udp/icmp/any), source CIDR, destination CIDR, dport, and priority. VPN peer entries include peer_id, endpoint (IP:port), allowed_ips with CIDR, persistent_keepalive, and a 44-character base64 public_key placeholder. MAC addresses are omitted from both types.
can I use the output directly in GNS3 or as real device config
No — simulation platforms like GNS3 or EVE-NG require vendor-specific syntax, and real devices need verified addressing that fits your actual topology. Treat the output as realistic source material to adapt rather than a drop-in config file.
which interface names does the interface type generate
Interface names are drawn from the pool: eth0, eth1, ens3, ens18, enp0s3, and bond0 — Linux kernel naming conventions for physical and bonded interfaces. The output does not include macOS (en0) or Windows (Ethernet 0) naming styles.
You might also like
Popular tools from other categories that share themes with this one.
Try these next
More free tools from other corners of the catalog, picked by shared themes.