NAT y bloqueando todos los puertos 22

NAT y bloqueando todos menos Port 22 es un script de firewall iptables simple.
Descargar ahora

NAT y bloqueando todos los puertos 22 Clasificación y resumen

Anuncio publicitario

  • Rating:
  • Licencia:
  • GPL
  • Precio:
  • FREE
  • Nombre del editor:
  • Peter Rektorschek
  • Sitio web del editor:
  • http://www.linuxguruz.com/iptables/scripts/rc.firewall_024.txt

NAT y bloqueando todos los puertos 22 Etiquetas


NAT y bloqueando todos los puertos 22 Descripción

NAT y bloqueando todos menos el puerto 22 es un script de firewall iptables simple. NAT y bloqueando todos los puertos 22 es un script simple de firewall de iptables. Muestra: # Dispositivos internos y externosDev_World = ppp0dev_int = eth0 # firewall ipaddr_int = 192.168.1.1 # interno netnet_int = 192.168.1.0 / 24 ######### ###########################################Sinsmod ip_tablesinsmod ip_conntrackinsmod ip_conntrack_ftpinsmod ipt_stateinsmod iptable_natinsmod IPT_MASQUERADE ################################################## ### Eliminar todas las reglas en FiltertablePables -F ############################################ ########### DEFINE NUEVOS CHOINSIPTables -N BLOTKIPTables -N EXT-INTIPTables -N INT-Extiptables -n ICMP-Denyiptables -N INT-IFIPTables -N EXT-SI ######## ########################################## iptables -a estado de bloque-m - Estado establecido, relacionado -J aceptibles -A BLOQUE -M Estado - Estado nuevo -I! $ dev_world -j aceptipables -a bloque -j Dropiptables -A INPUT -J Blockiptables -A Forward -J Block ######################################### ######################## PUNTOS A CHOINSIPTABLES -A INPUT -I LO -J ACEPETIPTABLES -A INPUT -IS $ DEV_INT -S $ NET_INT -J INT-IFIPTables -A INPUT -D! $ addr_int -i $ dev_world -s! $ NET_INT -J EXT-IFIPTATS -A INPUT -J DROPIPTABLES -UA DEORROS -D! $ net_int -i $ dev_world -s $ net_int -j int-extipables -a reenvío -d $ net_int -i $ dev_int -s! $ NET_INT -J EXT-INTIPTABLES -A FORWORT -J Dropiptables -A OUTPUT -J Aceptar #################################### ##################### LAS CADENA LAS CADENA LAS CADENACIONES -A EXT-INT -J Dropiptables -A EXT-SI-III! $ dev_world -J Dropiptables -A EXT-IF IF -P TCP --DPORT 22 -J Aceptilables -A EXT-IF IF -P TCP --DPORT 5901 -J aceptables -A EXT-IF IF -P TCP --DPORT 1024: -J Aceptables -a ext-if if -p udp --dport 1024: -j aceptipables -a ext-if if si -j inoxectables -a int-if if -j aceptan ####################### ################################### NORMAS NATURAS # Routingiptipstables estándar -a POSTROUTING -T NAT -O $ DEV_WORLD -j masquerade -s $ net_int # puerto reenvío # iptables -a preruting -t nat -p tcp -d 192.168.1.1 --dport 5901 - a 192.168.1.2:5901 -J DNAT ######### ########################################## Habilitar IP-DordingingOrcho 1> / proc / sys / net / ipv4 / ip_forward)


NAT y bloqueando todos los puertos 22 Software relacionado

Uvlan

UVLAN es un proyecto que consiste en una red de área local virtual de espacio de usuario. ...

170

Descargar