
leandrobrunoo
(usa Ubuntu)
Enviado em 16/09/2009 - 09:05h
ja tentei, e naum da certo !
oq fazer ?
segue meu firewall
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Limpando as regras
iptables -t filter -F
iptables -t nat -F
iptables -t mangle -F
# Compartilha conecxaO
modprobe iptable_nat
echo 1> /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
# Abre para rede locaL
iptables -A INPUT -p tcp --syn -s 192.168.1.0/255.255.255.0 -j ACCEPT
#Fecha o resto da rede
iptables -A INPUT -p tcp --syn -j DROP
exit 0