Segurança
Por: Marcia.rlds • 10/11/2015 • Trabalho acadêmico • 265 Palavras (2 Páginas) • 165 Visualizações
Exercício Iptables – Segurança de Redes
1) Iptables -t filter –L
2) Iptables -t ! filter -F
3) Iptables -t filter -P FORWARD -j DROP
4) iptables -t filter -A FORWARD -s 127.0.0.1 -j ACCEPT
5) iptables -t filter -A FORWARD -s 192.168.1.0/24 -j ACCEPT
6) Iptables -t filter -A FORWARD -s 10.0.0.0/8 -d www.playboy.com.br -j DROP
7) Iptables -t filter -A FORWARD -s 10.0.0.0/8 -d www.playboy.com.br -j REJECT
8) Iptables -t filter -A FORWARD -d 172.16.0.0/16 -s www.msn.com -j DROP
9) Iptables -t filter -A FORWARD -s 200.221.20.0/32 -j DROP
10) Iptables -t filter -A FORWARD -s 10.0.0.5 -p icmp -j ACCEPT
11)Iptables -t filter -A FORWARD -i eth0 -d 192.168.0.0/24 -j ACCEPT
12) Iptables -t filter -A FORWARD -i ! eth0 -j ACCEPT
13)Iptables -t filter -A FORWARD -s 10.0.0.5 -p tcp –-sport 80 -j LOG
14) Iptables -t filter -A FORWARD -p tcp –sport 25 -j ACCEPT
15)Iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
16)Iptables – t nat –L
17) Iptables – t nat –F
18) Iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
19) iptables -t nat -A PREROUTING -p tcp -d 10.0.0.2 --dport 80 -j DNAT --to 172.20.0.1
20) iptables -t nat -A OUTPUT -p tcp -d 10.0.0.10 -j DNAT --to 10.0.0.1
21) iptables -t nat –A POSTROUTING -o eth0 -j SNAT --to 200.20.0.1
22) iptables -t nat -A PREROUTING -i eth0 -j DNAT --to 172.20.0.1
23) iptables -t nat -A PREROUTING -i eth0 -j DNAT --to 172.20.0.1-172.20.0.3
24) iptables -t nat -A PREROUTING -s 10.0.0.0/8 -p tcp --dport 80 -j REDIRECT --to-port 3128
25)iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o eth1 -j SNAT 200.20.5.0/24
26) Iptables -t mangle -A POSTROUTING -s 192.168.1.0/24 -p tcp -–dport 25 -j TOS –set-tos 16
...