Ubuntu Support Template
Ubuntu Version:
Example:24.04.4 LTS
Desktop Environment (if applicable):
Example: server only VM Hyper-V
Problem Description:
When using the line commands as sudo and type ip6tables -F, then all went fine
when using a bash script and set define $ip6tables -F or $ip6tables --flush, I get command not found
This behavior is the same for many other lines similar as -Z --zero, -A --append
Example:
Create a bash shell file
insert some ip6table rules like:
Flush all tables.
$ip6tables -F
Zero out all counters.
$ip6tables -Z
Relevant System Information:
standard installation
Screenshots or Error Messages:
If applicable, paste error messages or screenshots.
We prefer copy-pasted text and screenshots instead of photos of screens.
What I’ve Tried:
use terminal command to test the ip6commands according to the manual
How to solve this issue?