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

How to set match LOCAL #338

Open
Konrad-Ziarko opened this issue Apr 26, 2023 · 4 comments
Open

How to set match LOCAL #338

Konrad-Ziarko opened this issue Apr 26, 2023 · 4 comments

Comments

@Konrad-Ziarko
Copy link

Hi,
Is it possible to set 'ADDRTYPE match dst-type LOCAL' for with iptx?

@jllorente
Copy link
Collaborator

I don't have an access to a Linux box at the moment, but could you try adding the rule via the CLI with the iptables command and then use the library to iptc.easy.dump_chain() and share the output ? 🙏

@Konrad-Ziarko
Copy link
Author

>>>pprint(iptc.easy.dump_chain('nat', 'OUTPUT'))
[{'addrtype': {'dst-type': 'LOCAL'},
  'counters':(3242, 301756),
  'target': 'CNI-HOSTPORT-DNAT'}]

@jllorente
Copy link
Collaborator

Does that answer your question ? :)

@Konrad-Ziarko
Copy link
Author

I do not see those props in Rule object. So i do not think so.

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

2 participants