Skip to content

Error: "Failed to open config file" #3

@whatmedoin

Description

@whatmedoin

Hello, thanks for the project.

Unfortunately I can't get the most recent version to work on my Arch Linux machine (6.18.7 kernel). The installed executable with install.sh (as per instructions) fails with the following message: Failed to open config file '/etc/pcktbatch/conf.json'. This also applies to local absolute config paths passed with -c. Running with / without sudo doesn't make a difference. Here's a sample config I used for testing:

{  
  "interface": "lo",  
  "sequences": [  
    {  
      "eth": {  
        "smac": "00:11:22:33:44:55",  
        "dmac": "aa:bb:cc:dd:ee:ff"  
      },  
      "ip": {  
        "sip": "127.0.0.1",  
        "dip": "127.0.0.1",  
        "protocol": "tcp"  
      },  
      "tcp": {  
        "dport": 443  
      }  
    }  
  ]  
}

I also tried minifying it (compressing multi-line json to one line) without luck. Can you track down the issue? Or is my config wrong? There aren't any JSON examples, only old YAML ones, which could have been useful. Hope you can help :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions