I am adding a firewall rule to accept connection from my docker container to a specific host port. It’s working. But why the log is showing accept port:0?
I’ve tried if adding an specific ip address to the same port, it will be showing correctly which port number being added in log. But if adding a local IP range to a specific port, it will show accept port:0
so this defect is for adding IP range to firewall rule? Actually, when I check the iptables, it actually added correctly but just not reflecting properly from log
Thanks, just to clarify the PR submitted seems only replacing port to port_ext inside IF statement. But your sed command in previous reply seems replacing ALL port to port_ext? which one should take?
Just want to learn a bit more from your expertise. Why the if statement still use $port? where is that $port variable comes from, cannot see this from this script file