Firewall_iptables
Nautilus Scripts
Score 50%
Description:

Configura delle regole semplici ma efficaci per il firewall
Per usare la porta 21 ftp bisogna usare il passive mode...
E per lanciarlo all avvio basta lanciarlo con il file rc.local richiamandolo...
Nello script c\\\\\\\'è scritto come fare!

By FrankRock.it

jummy

7 years ago

http://yorik.uncreated.net/linuxstuff.html

find: Simple firewall

#!/bin/sh
# Cleans the iptables
iptables -F
# Enables internet connection sharing
modprobe iptable_nat
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
# Opens some ports (22=SSH, 1080=Socks)
iptables -A INPUT -p tcp --destination-port 22 -j ACCEPT
iptables -A INPUT -p tcp --destination-port 1080 -j ACCEPT
# Opens local network
iptables -A INPUT -p tcp --syn -s 192.168.0.0/255.255.255.0 -j ACCEPT
# Closes everything else
iptables -A INPUT -p tcp --syn -j DROP

Report

Zinn

7 years ago

english please

Report

product-maker 6 6

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
1.0
updated Jul 04 2010
added Jul 04 2010
downloads today
0
page views today 0