All,
Would it be possible to mask ip information lets say 192.168.1.1 to xxx.xxx.1.1 from the terminal?
Have been attempting variations of:
cat /etc/sysconfig/iptables | sed 's/\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.\b/xxx.xxx./g'
tried ' and ", sed -i, sed -e, /g or global and without...
but it doesn't appear to be changing the output.
Does it have to output to a file? Was hoping to throw this in an sh and email the output without having to > some.txt and then rm'ing it as this adds alerts from AIDE
Thoughts?
Thanks in advance