ali aboos

Linux

Linux: Reset iptables firewall rules

by on Oct.29, 2008, under Linux

Create a shell script (iptables_flush.sh) and copy paste the following lines:

#!/bin/sh
echo "Flushing iptables rules..."
sleep 1
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT

Make the file executable
chmod +x iptables_flush.sh
and run the script:
./iptables_flush.sh

6 Comments :, more...

Linux: Download files using wget from protected url’s – resume broken downloads

by on Oct.29, 2008, under Linux

To download a file from a password protected url (ftp and http):
wget --user=<username> --password=<password> <url>

Download a file to a different directory:
wget <source> -O <destination>

Resume a broken download:
wget -c <url>

Leave a Comment : more...

Linux: Copy files between Linux Servers with scp

by on Oct.29, 2008, under Linux

From source server:
scp /<source directory> <username>@<destination server>:/<target directory>

To copy directories recursively use “-r” option.

Leave a Comment :, more...

Search InsaneLabs.com

Can't find what you're looking for? Drop a comment on a post or email (ali aht insanelabs doht com)

Links

Links open in a new window