I get the ports as a variable and I need to delete the rule in nftables. If the port is present in rule then i would grep the handle number and delete the rule. But in nftables service name would be present in rule so how can I delete the rule. Is there any way to find the what port belongs to service or any other way to delete the nftable rule other than handle or any other suggestions ??
Rule management in nftables
427 Views Asked by infantus At
1
There are 1 best solutions below
Related Questions in SHELL
- passing text with \n as one argument in shell
- Delete the extra space after special character in all the lines of text file
- Calling a python function with options from shell script
- bc: prevent "divide by zero" runtime error on multiple operations
- schedule and automate sqoop import/export tasks
- How can launch an external process from java and still be able to interact with this process?
- Linux find files where mtime and ctime are not equal
- Find all files contained into directory named
- Quick way to remove all folders titled CVS in a directory and it's subdirectories?
- shell process not exiting on `exit` inside `$()`
- How to set environment variables with a forward slash in the key
- System 'bash -ic' stuck when I hit ctrl+c
- bash functions returns "command not found"
- Why does pattern "*.so?(.*)" produce a syntax error in a script but not on command line?
- retrieve plaintext password from file using bash command
Related Questions in SERVICE
- Debugging Windows Services while starting
- Error in Calling some service in WCF Client
- i want to create a service that does the login functionality?
- I run an EXE program from a Windows Service but I can't see form C#?
- Android check WIFI status (disconnected or user changed WIFI)
- Having two sequential steps running within a windows service
- Approach for performing long running tasks in .NET
- android - How to get a iBecon detection state when I kill app from Background?
- Symfony2 global function in entity
- Return more that one entity in RESTful response?
- angular unit testing $scope.$on in a service not working
- Are there drawbacks to leaving a SqlConnection open long-term?
- Android control music with headset buttons in a service
- Socket in service on Android writing to server but not reading
- What does the dot mean in Symfony service names?
Related Questions in SH
- How to export multiple files to database using shell script?
- Printing a newline
- Why is rpmbuild installing package?
- POSIX Shell backslash confusion
- Create .sh file
- Linux - sh script - download multiple files from FTP
- Get the value of a variable whose name consists of a variable itself
- Different behaviour of compiler when called in script by LaunchControl
- Is the following snippet valid Bourne shell code?
- Storing data in shell
- shell command to skip file in sequence
- sort on pipe-delimited fields not behaving as expected
- Redirect stdout using exec in subscript
- Increment of multiple file prefixes?
- Executing GUI .sh file with Osx
Related Questions in HANDLE
- Capture moue movements on a WPF window drawn behind icons and dispose the handler on exit
- How to close a file handle which came from a parent process C#
- unelevated program starts an elevated updater, updater should wait for finishing of program
- SendMessage ButtonUp/Down to handle x/y coordinates
- Programmatically close Windows console application c++
- Enumerating process handles, weird issue
- Find source of token handle leak in managed process
- in windows7,when we open a process ,we get a process handle,I want to know what the relation between process handle and process ID
- NtQueryObject hangs on object type number 30 with specific access mask
- How much data can sklearn handle with kernel density estimation
- Matlab GUI: Do I need to pass hObject AND handles?
- Wget changing character around download location
- Get Window handle in Windows store app
- GetProcessId returning zero
- Get handle of top window (Sort windows by Z index)
Related Questions in NFTABLES
- nftables blocking local unix sockets
- nftables.conf with set and rules
- Troubleshooting NFTables Table Creation with Go
- Docker.com's IPv4 always changing - Why?
- nftables set: Could not add set with flags interval on command line
- nftables rate limiting per multiple seconds
- Firewall - nftables blocks outbound traffic
- NFTABLES: How to DNAT in POSTROUTING
- How to translate iptables --physdev statements to nftables
- How do I specify a subnet mask when adding a rule in nftables?
- Rule management in nftables
- cast a `&&*const libc::foreignStruct` to a `&libc::foreignStruct`
- WSL Kernel Netfilter hooks for Pre/Post Routing not available
- How to order columns and rows in ftable
- How to do NETMAP by nftables
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Ports and service name are listed in /etc/services.
You can force the listing to use numeric ports by
I don't know the use case but a better solution may be achieved by using named sets, from which elements can be easily removed.