Open a range of ports with iptables
In RedHat/Fedora you can define firewall rules in the file /etc/sysconfig/iptables. By adding this line you open ports in the range 5920-5960 -A RH-Firewall-1-INPUT -p tcp –destination-port 5920:5960 -j ACCEPT
A chronological documentation test project, nothing serious, really!
In RedHat/Fedora you can define firewall rules in the file /etc/sysconfig/iptables. By adding this line you open ports in the range 5920-5960 -A RH-Firewall-1-INPUT -p tcp –destination-port 5920:5960 -j ACCEPT
For å sikre seg mot at filer er korrupt kan man benytte kommandoen md5sum Windows md5sum -b *.JPG > checksum.md5 Linux Deretter kopierer man denne md5-fila til rett katalog i Linux og tester at disse filene er identisk vha MD5Sums, et grafisk Windows program.
Ossec kan lese nmap grepable filer og bruke de som en verktøy for å sjekke og varsle om host endringer. Følgende endringer er gjort for å få det til å fungere.
A script using bash and md5sum to keep track of file integrity. # Change the separator to allow for filenames containing spaces # (the default is ” \t\n”, which confuses the for loop) IFS=$’\n’ FOLDERS=`find /Volumes/disk\ 1/Pictures/Photos -type d | sed ‘s/ /\\ /g’` for FOLDER in $FOLDERS; do # mind you, this will only […]
grep “^[0-9*]” nmap.out|awk ‘{print $1 “,” $2 “,” $3 “,” $4 “,” $5}’