Hot answers tagged

1 vote
Accepted

Blocking traffic from specific countries. How to kill existing connection?

Since several years, the Linux kernel has been having an API to forcibly kill existing IP sockets whatever their state. It can be done with the ss command and its filter syntax: -K, --kill Attempts ...
A.B's user avatar
  • 11.2k
1 vote

Bash parameter substitution (baparmsub?) Isnt working

You have to use shopt -s extglob which is usually on for interactive shell, but off in scripts. #!/bin/bash shopt -s extglob step=_SOME_under_SCORES a=${step//_+([a-zA-Z])/_} echo "[$step]=>[...
Alexey Ten's user avatar
  • 8,465

Only top scored, non community-wiki answers of a minimum length are eligible