Skip to content

Monthly Archives: June 2010

Ubuntu Server Firewall Script

20-Jun-10

# Clear any existing firewall stuff before we start iptables –flush iptables -t nat –flush iptables -t mangle –flush # As the default policies, drop all incoming traffic but allow all # outgoing traffic. This will allow us to make outgoing connections # from any port, but will only allow incoming connections on the ports [...]

How can I force fsck on next boot

20-Jun-10

How can I force fsck on next boot You can force an automatic full check by changing the check interval using tune2fs (-c and/or -i). -c max-mount-counts Adjust the number of mounts after which the filesystem will be checked by e2fsck(8). If max-mount-counts is 0 or -1, the number of times the filesystem is mounted [...]