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

Cancelling agent leaves iptables rules #295

Closed
pablochacin opened this issue Aug 11, 2023 · 1 comment
Closed

Cancelling agent leaves iptables rules #295

pablochacin opened this issue Aug 11, 2023 · 1 comment
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@pablochacin
Copy link
Collaborator

When the agent is canceled it leaves iptables rules that affect traffic:

/home/xk6-disruptor # iptables -L -n
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
REJECT     6    --  127.0.0.0/8          127.0.0.1            tcp dpt:80 state ESTABLISHED reject-with tcp-reset
REJECT     6    --  0.0.0.0/0            0.0.0.0/0            tcp dpt:80 state ESTABLISHED reject-with tcp-reset

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination 

Also in the nat table:

/home/xk6-disruptor # iptables -L -n -t nat
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination         
REDIRECT   6    --  0.0.0.0/0            0.0.0.0/0            tcp dpt:80 redir ports 8000

Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
REDIRECT   6    --  127.0.0.0/8          127.0.0.1            tcp dpt:80 redir ports 8000
@pablochacin pablochacin added the bug Something isn't working label Aug 11, 2023
@pablochacin pablochacin added the wontfix This will not be worked on label Aug 18, 2023
@pablochacin
Copy link
Collaborator Author

This happened to be expected as a process cannot handle a KILL signal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant