Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ips with multiple IP addresses failed with error: "conn.Receive: netlink receive: invalid argument" #164

Open
wuujiann opened this issue Dec 1, 2023 · 0 comments

Comments

@wuujiann
Copy link

wuujiann commented Dec 1, 2023

When specifying multiple IP addresses in ips in the docker-compose file, the following error is reported.
No error if only a single IP address is provided for ips.

{"level":"error","time":"2023-12-01T19:02:58.683384501Z","msg":"error creating mapped port rules","container.id":"104aaea35e86","container.name":"web","error":"conn.Receive: netlink receive: invalid argument","stacktrace":"github.com/capnspacehook/whalewall.(*RuleManager).createContainerRules\n\tgithub.com/capnspacehook/whalewall/create.go:301\ngithub.com/capnspacehook/whalewall.(*RuleManager).createRules\n\tgithub.com/capnspacehook/whalewall/create.go:62\ngithub.com/capnspacehook/whalewall.(*RuleManager).Start.func1\n\tgithub.com/capnspacehook/whalewall/manager.go:118"}

Below is the docker-compose.yml file:

version: "3"
services:
  web:
    container_name: web
    image: nginx:latest
    ports:
      - "8080:80"
    labels:
      whalewall.enabled: true
      whalewall.rules: |
        mapped_ports:
          localhost:
            allow: true
          external:
            allow: true
            ips:
              - 76.76.21.21
              - 66.42.79.248
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant