google / google/gvisor

iptables-legacy errors in gVisor (release-20240610.0) with --net-raw

Open
#10,546 6 comments 0 reactions 0 assignees View on GitHub
stale-issue type: bug
Dominant language
Go
Stars
19.3k
Forks
2k
Avg merge
3d 5h
Merged PRs (30d)
264

Description

### Description

I am encountering errors when using iptables-legacy with gVisor version release-20240610.0. I have configured gVisor with the `--net-raw` flag.

The following iptables-legacy commands result in the error message "iptables: Invalid argument. Run 'dmesg' for more information":

* `iptables -P FORWARD DROP`
* `iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT`

However, running `dmesg` does not reveal any relevant logs related to iptables errors.

### Steps to reproduce

1. Install gVisor version release-20240610.0.
2. Configure gVisor with the `--net-raw` flag.
3. Run the following commands:
* `iptables -P FORWARD DROP`
* `iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT`
4. Observe the "Invalid argument" error message.
5. Run `dmesg` and verify there are no relevant iptables error logs.

### runsc version

```shell
runsc version release-20240610.0
spec: 1.1.0-rc.1
```

### docker version (if using docker)

```shell
24.0.5
```

### uname

5.15.0-112

### kubectl (if using Kubernetes)

_No response_

### repo state (if built from source)

_No response_

### runsc debug logs (if available)

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.