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

default input policy is not realized #11

Open
toralf opened this issue Mar 12, 2023 · 0 comments
Open

default input policy is not realized #11

toralf opened this issue Mar 12, 2023 · 0 comments

Comments

@toralf
Copy link

toralf commented Mar 12, 2023

I do have

  iptables -P INPUT  ${DEFAULT_POLICY_INPUT:-DROP}

here https://github.com/toralf/torutils/blob/main/ipv4-rules.sh#L6

and verified it

Chain INPUT (policy DROP 110 packets, 6110 bytes)
 pkts bytes target     prot opt in     out     source               destination

but I do get from the exporter:

 # curl -s localhost:9455/metrics  | grep -i policy | grep INPUT
ip6tables_chain_bytes_total{chain="INPUT",policy="ACCEPT",table="filter"} 0
ip6tables_chain_packets_total{chain="INPUT",policy="ACCEPT",table="filter"} 0
iptables_chain_bytes_total{chain="INPUT",policy="ACCEPT",table="filter"} 5294
iptables_chain_packets_total{chain="INPUT",policy="ACCEPT",table="filter"} 90

I had similar issue with the rule values too.

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