meoliveira
(usa Debian)
Enviado em 01/03/2012 - 07:29h
Não funcionou novamente, segue as regras...
# Compartilha a conexao
modprobe iptable_nat
#modprobe ip_nat_ftp
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
#liberar CADWEB-DATASUS
iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -I FORWARD -s 192.168.2.91 -d 0/0 !cadweb.datasus.gov.br/main_Portal.asp -j DROP
#Bloqueio de internet
iptables -A FORWARD -s 192.168.2.77 -d 0/0 -j DROP
iptables -A FORWARD -s 192.168.2.91 -d 0/0 -j DROP
iptables -A FORWARD -s 192.168.2.133 -d 0/0 -j DROP
iptables -A FORWARD -s 192.168.2.204 -d 0/0 -j DROP
iptables -A FORWARD -s 192.168.2.251 -d 0/0 -j DROP
iptables -A FORWARD -s 192.168.2.100 -d 0/0 -j DROP
iptables -A FORWARD -s 192.168.2.65 -d 0/0 -j DROP
iptables -A FORWARD -s 192.168.2.188 -d 0/0 -j DROP
iptables -A FORWARD -s 192.168.2.53 -d 0/0 -j DROP
#Liberar Torrent
iptables -A INPUT -p tcp --destination-port 28753 -j ACCEPT
iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport 28753 -j DNAT --to-dest 192.168.2.233
iptables -A FORWARD -p tcp -i ppp0 --dport 28753 -d 192.168.2.233 -j ACCEPT
iptables -t nat -A PREROUTING -i ppp0 -p udp --dport 28753 -j DNAT --to-dest 192.168.2.233
iptables -A FORWARD -p udp -i ppp0 --dport 28753 -d 192.168.2.233 -j ACCEPT
#Host liberados do filtro
iptables -t nat -A PREROUTING -s 192.168.2.49 -d 0.0.0.0/0 -j ACCEPT
iptables -t nat -A PREROUTING -s 192.168.2.232 -d 0.0.0.0/0 -j ACCEPT
iptables -t nat -A PREROUTING -s 192.168.2.233 -d 0.0.0.0/0 -j ACCEPT
iptables -t nat -A PREROUTING -s 192.168.2.29 -d 0.0.0.0/0 -j ACCEPT
iptables -t nat -A PREROUTING -s 192.168.2.87 -d 0.0.0.0/0 -j ACCEPT
iptables -t nat -A PREROUTING -s 192.168.2.210 -d 0.0.0.0/0 -j ACCEPT
iptables -t nat -A PREROUTING -s 192.168.2.216 -d 0.0.0.0/0 -j ACCEPT
iptables -t nat -A PREROUTING -s 192.168.2.201 -d 0.0.0.0/0 -j ACCEPT
iptables -t nat -A PREROUTING -s 192.168.2.234 -d 0.0.0.0/0 -j ACCEPT
iptables -t nat -A PREROUTING -s 192.168.2.109 -d 0.0.0.0/0 -j ACCEPT
iptables -t nat -A PREROUTING -s 192.168.2.72 -d 0.0.0.0/0 -j ACCEPT
iptables -t nat -A PREROUTING -s 192.168.2.219 -d 0.0.0.0/0 -j ACCEPT
iptables -t nat -A PREROUTING -s 192.168.2.33 -d 0.0.0.0/0 -j ACCEPT
iptables -t nat -A PREROUTING -s 192.168.2.22 -d 0.0.0.0/0 -j ACCEPT
iptables -t nat -A PREROUTING -s 192.168.2.189 -d 0.0.0.0/0 -j ACCEPT
iptables -t nat -A PREROUTING -s 192.168.2.71 -d 0.0.0.0/0 -j ACCEPT
iptables -t nat -A PREROUTING -s 192.168.2.150 -d 0.0.0.0/0 -j ACCEPT
iptables -t nat -A PREROUTING -s 192.168.2.237 -d 0.0.0.0/0 -j ACCEPT
iptables -t nat -A PREROUTING -s 192.168.2.47 -d 0.0.0.0/0 -j ACCEPT
iptables -t nat -A PREROUTING -s 192.168.2.153 -d 0.0.0.0/0 -j ACCEPT
iptables -t nat -A PREROUTING -s 192.168.2.215 -d 0.0.0.0/0 -j ACCEPT
iptables -t nat -A PREROUTING -s 192.168.2.202 -d 0.0.0.0/0 -j ACCEPT
iptables -t nat -A PREROUTING -s 192.168.2.2 -d 0.0.0.0/0 -j ACCEPT
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 3128
#Liberando ips para update do avira
iptables -t filter -A FORWARD -m iprange --src-range 80.190.143.225-80.190.143.250 -j ACCEPT
iptables -A FORWARD -d personal.avira-update -p tcp --dport 80 -j ACCEPT