Firewall_iptables

Nautilus Scripts

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
Score 50.0%
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

9 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

9 years ago

english please

Report

12345678910
product-maker Count: 4 Rating: 5.0
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
1.0
updated Jul 04 2010
added Jul 04 2010
downloads 24h
0
page views 24h 1
System Tags addon