Score:0

Unable to add rules to iptables in Ubuntu 18.04

fr flag

I am trying to add rules to allow port 161 in iptables . But it is giving below error while executing this command "sudo iptables -L"

iptables v1.6.1: can't initialize iptables table `filter': Permission denied Perhaps iptables or your kernel needs to be upgraded.

I am using latest version of iptables.

Doug Smythies avatar
gn flag
It might be a syntax error. Please edit your question and add the iptables rule you are trying to execute.
in flag
Is this a straight installation of Ubuntu 18.04 or is it running on WSL? If it's WSL, then `iptables` is not supported until 20.04.
Arjun Ganta avatar
fr flag
Actually I have installed Ubuntu Bionic 18.04 in my Android phone using Termux and Androinx. Will it be possible to configure in this way.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.