CypherpunkArmory / UserLAnd

Main UserLAnd Repository
Other
3.59k stars 397 forks source link

Bug report - Unable to Install UFW. Iptables don't work #1241

Closed drshaktiyadav closed 4 years ago

drshaktiyadav commented 4 years ago

Describe the bug

Tried to install ufw with kali and ubuntu and got permission error citing Issue with iptables. Exact code and error below

Steps to reproduce the behavior:

lazypanda@localhost:~$ sudo ufw status ERROR: problem running iptables: iptables v1.6.1: can't initialize iptables table `filter': Permission denied (you must be root) Perhaps iptables or your kernel needs to be upgraded.

lazypanda@localhost:~$ iptables -L iptables v1.6.1: can't initialize iptables table `filter': Permission denied (you must be root) Perhaps iptables or your kernel needs to be upgraded.

lazypanda@localhost:~$ sudo iptables -L iptables v1.6.1: can't initialize iptables table `filter': Permission denied (you must be root) Perhaps iptables or your kernel needs to be upgraded.

Screenshot

N/A

Device Information

Device: [e.g. Redmi Note 8 Pro].
Android Version: [e.g. 9.0].
UserLAnd Version [e.g. 0.1.2].
Whether the device is rooted - No Whether the device is running MIUI 11

Apparently arm version of kali and ubuntu have some issues with iptables legacy and nft versions of ip table Trying to move legacy and symlink as default might fix it.

enforce-issue-templates[bot] commented 4 years ago

Hello @drshaktiyadav!

This message has been autogenerated.

It looks like you've posted an issue, but in order for us to best assist you, we need some additional information. We have created some issue templates to make this process easier. You can find them here.

These templates contain lines that begin with the '#' character. These lines are headers. In your issue, please leave these headers as is, and fill out information relevant to the header in the space below it.

If you don't think that you have any information relevant to the header, fill the space below it with something like 'N/A', or consider using a different template.

These headers are essential in allowing us to recreate and resolve your issue. The more detailed your issue, the more quickly we can begin working on it.

It looks like you were attempting to use the bug_report.md template. Copy and paste the headers, including the '#' character, remove the single quotes, and use it to edit your issue. That template requires the following headers:

'# Describe the bug' '# Steps to reproduce the behavior:' '# Screenshots' '# Device Information'

If your issue is not updated to follow a template, it may be removed. If you edit your issue to follow a template, the bot will remove its comment.

Thanks for your help in improving UserLAnd!

drshaktiyadav commented 4 years ago

Updated

desyncr commented 4 years ago

@drshaktiyadav I had the same issue. Unfortunately UserLAnd doesn't run as root so it can't change iptables.

As a workaround I used Termux (with root privileges) and run iptables there.