Pages

Script Disables Iptables


[thudv@syslogserver ~]$ cat /opt/firewall/firewall.stop

#!/bin/bash
# ---------------------------------------------------------
# A Linux Shell Script with common rules for IPTABLES Firewall.
# By default this script only open port 80, 22, 53 (input)
# All outgoing traffic is allowed (default - output)
# ---------------------Created by thudv--------------------------

IPT="/sbin/iptables"
$IPT -F
$IPT -X
$IPT -t nat -F
$IPT -t nat -X
$IPT -t mangle -F
$IPT -t mangle -X
$IPT -P INPUT ACCEPT
$IPT -P OUTPUT ACCEPT
$IPT -P FORWARD ACCEPT
thudinh Network and Security

No comments:

Adsense

Translate