Skip to content

BUG: Iptables rules are not applied properly for all apps #84

Description

@walrus543

What happened?

When using de1984 with iptables as the backend firewall, one of my app (package name ml.docilealligator.infinityforreddit.plus) doesn't have Internet access.
If I just switch to VPN as the backend firewall, the app has access to Internet.

I noticed errors in the log:

2026-01-21 14:30:15.779 E/IptablesFirewall: Failed to delete custom chains
kotlinx.coroutines.JobCancellationException: Job was cancelled; job=SupervisorJobImpl{Cancelling}@86c2a56
2026-01-21 14:30:15.780 D/De1984Error: handleError: Re-throwing CancellationException for operation: delete iptables chains
2026-01-21 14:30:15.781 E/IptablesFirewall: Failed to delete iptables chains
kotlinx.coroutines.JobCancellationException: Job was cancelled; job=SupervisorJobImpl{Cancelling}@86c2a56
2026-01-21 14:30:15.782 D/De1984Error: handleError: Re-throwing CancellationException for operation: delete iptables chains

Steps to reproduce

I don't know why I have this issue with this specific app only.

  • Set iptables as the backend firewall of De1984
  • Allow Internet for the app
  • Run the app
  • Return to De1984 and switch the backend to VPN
  • Run the app again

What did you expect to happen?

The app should have access to Internet with all backends.

Logs

n_de1984_logs_20260121_143054.txt

Device information

  • Device: OnePlus 8 Pro
  • Android 16 (LineageOS 23.0)
  • De1984 v2.6.2
  • Root access: yes (Magisk 30.6)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions