mefellows / muxy

Chaos engineering tool for simulating real-world distributed system failures
MIT License
823 stars 31 forks source link

Network shape symptom does not discriminate port range on OSX #19

Open mefellows opened 7 years ago

mefellows commented 7 years ago

Given a Muxy configuration as follows, we expect only ports 8181 and 8282 to be shaped.

However, it does in fact still slow down other ports.

  - name: network_shape
    config:
      latency:     250         # Latency to add in ms
      target_bw:   750         # Bandwidth in kbits/s
      packet_loss: 0.5         # Packet loss, as a %
      target_ips:              # Target ipv4 IP addresses/CIDRs
        - "0.0.0.0/0"
      target_ips6:             # Target ipv6 IP addresses
        - "::1/128"
      target_ports:            # Target destination ports
        - "8181"
        - "8282"
        # - "8080:9000"          # Ranges also valid
      target_protos:           # Target protocols
        - "tcp"
        - "udp"
        - "icmp"