Está en la página 1de 2

iptables -t filter -P INPUT DROP iptables -t filter -P OUTPUT DROP iptables -t filter -P FORWARD DROP iptables -t filter -A INPUT

-s 10.0.0.2 -d 192.168.2.19 -p tcp --sport 20:21 -j ACCEPT #Ejercicio1 iptables -t filter -A OUTPUT -d 10.0.0.2 -s 192.168.2.19 -p tcp --dport 20:21 -j ACCEPT iptables -t filter -A INPUT -p tcp --sport 20:21 -j ACCEPT #Ejercicio2 iptables -t filter -A OUTPUT -p tcp --dport 20:21 -j ACCEPT iptables -t filter -A INPUT -d 10.0.0.2 -s 192.168.2.19 -p tcp -m time time --t imestart 10:00 --timestop 12:00 -days TUE,THU --dport 20:21 -j ACCEPT #Ejercicio 3 iptables -t filter -A OUTPUT -s 10.0.0.2 -d 192.168.2.19 -p tcp -m time time -timestart 10:00 --timestop 12:00 -days TUE,THU --sport 20:21 -j ACCEPT iptables -t filter -A FORWARD -d 192.168.0.3 -s 10.0.0.2 -p tcp --dport 69 -j AC CEPT# Ejercicio4 iptables -t filter -A FORWARD -s 192.168.0.3 -d 10.0.0.2 -p tcp --sport 69 -j AC CEPT iptables -t filter CEPT# Ejercicio5 iptables -t filter CEPT iptables -t filter ACCEPT iptables -t filter ACCEPT iptables -t filter EPT #Ejercicio6 iptables -t filter CEPT iptables -t filter EPT iptables -t filter CEPT -A FORWARD -d 192.168.0.2 -s 10.0.0.3 -p tcp --dport 69 -j AC -A FORWARD -s 192.168.0.2 -d 10.0.0.3 -p tcp --sport 69 -j AC -A FORWARD -d 192.168.0.2 -s 10.0.0.3 -p tcp --dport 20:21 -j -A FORWARD -s 192.168.0.2 -d 10.0.0.3 -p tcp --sport 20:21 -J -A INPUT -s 10.0.0.2 -d 192.168.2.19 -p tcp --sport 80 -j ACC -A OUTPUT -d 10.0.0.2 -s 192.168.2.19 -p tcp --dport 80 -j AC -A INPUT -s 10.0.0.3 -d 192.168.2.19 -p tcp --sport 80 -j ACC -A OUTPUT -d 10.0.0.3 -s 192.168.2.19 -p tcp --dport 80 -j AC

iptables -t filter -A FORWARD -s 10.0.0.3 -p tcp --sport 80 -j ACCEPT# Ejercicio 7 iptables -t filter -A FORWARD -d 10.0.0.3 -p tcp --dport 80 -j ACCEPT# De esta m anera Impido que se conecte del FW a los equipos de mi otra red pero no puedo co rtar el Http de su lan como son E3, ni internet iptables -t filter -A OUTPUT -p tcp -m multiport --dport 70,55,100 -j ACCEPT#Eje rcicio8 iptables -t filter -A INPUT -p tcp -m multiport --sport 70,55,100 -j ACCEPT iptables -t filter -A OUTPUT -p icmp --icmp-type 8 -j ACCEPT# Ejercicio9 iptables -t filter -A INPUT -p icmp --icmp-type 0 -j ACCEPT# Ejercicio9 iptables -t filter -A FORWARD -d 192.168.0.2 -p icmp --icmp-type 8 -j ACCEPT#Eje rcicio10 iptables -t filter -A FORWARD -d 192.168.0.3 -p icmp --icmp-type 0 -j ACCEPT#Eje

rcicio11

También podría gustarte