Firewall

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 20:14, 8 February 2006 (edit)
203.162.27.85 (Talk)

← Previous diff
Current revision (16:51, 19 May 2010) (edit) (undo)
Glenn (Talk | contribs)
(DD-WRT firewall - iptables - small chg)
 
(73 intermediate revisions not shown.)
Line 1: Line 1:
-¿la ayuda previene virus/worm que congestiona el internet...?? pasó a mi red. un pc infectado causa la red entera inaccesible. +The purpose of the '''firewall''' is to moderate traffic and/or log it. Most firewall are made for moderating ip traffic and are called '''ip firewalls'''.
-¿http://wl500g.info/showthread.php?t=2515 http://forum.bsr-clan.de/ftopic1305.html http://forum.bsr-clan.de/ftopic2642.html la http://www.linksysinfo.org/modules.php?name=Forums&file=viewtopic&t=8556 cortafuego ayuda??+The simplest ip firewall has two physical interfaces normally referred to as ''inside'' (LAN) and ''outside'' (WAN, the internet). It has two main access control lists (ACL) - e.g. named inside2outside and outside2inside.
 +===Packet filter firewall===
 +The simplest ip firewall - a packet filter firewall - can pass packet by packet or drop them based on:
 +* source ip address
 +* destination ip address
 +* If tcp or udp:
 +** source tcp/udp port
 +** destination tcp/udp port
 +===Statefull firewall===
 +The better ip firewall - a statefull firewall - can pass packet by packet - and if possible (e.g. tcp and udp) track the connection. A statefull firewall can additionally moderate trackable traffic by:
 +* number of connections per (src/dst) ip address
 +* number of connections per interface
 +* number of connections attempt - "SYN"-attacks, packet storms
 +===NAT - Network address Translation===
 +Due to IPv4 address shortage, the internet society began to use NAT, and therefore the firewall also need to be NAT aware.
 +====NAT incompatible protocols====
 +A real problem with NAT is when more than one inside clients (e.g. C1, C2) connect to the same outside server ip address (S) and the traffic is not tcp and udp. When a response outside packet later arrives at the NAT device (firewall), it can not deduce which client to send it to. Here are examples of protocols that has that problem:
 +*[[wikipedia:IPsec|IPsec]] (over [[wikipedia:List_of_IP_protocol_numbers|IP protocol]] 51)
 +*[[wikipedia:PPTP|PPTP]] (over IP protocol 47)
 +*[[wikipedia:Layer 2 Tunneling Protocol|L2TP]] (over IP protocol 50)
 +Even if the traffic is unencrypted it can not be deduced where to NAT a response outside packet, if more than one inside client uses the same protocol to the same outside ip address. UDP and TCP are special because they have 65536 possible src and dst ports that can help connection tracking.
 +===Firewall difficult protocols===
 +Some protocols can in-line signal a port jump and/or create connections one or both ways "at will". A firewall that can moderate that kind of traffic, need to inspect the traffic stream. To do that a firewall must have [[wikipedia:Application_layer_firewall#Network-based_application_firewalls|transparent proxies]] and are then called an [[wikipedia:Application_layer_firewall|application firewall]].
- +Some examples of protocols that can port jump and/or create additional connections are:
-estos gusanos llenan realmente reduciendo la velocidad muchos mi tráfico de la red. +*FTP passive
-después de arreglar un pc, allí venga otro unos... +*FTP active - if you enable proxy support for active FTP, you firewall can be "punctured" from the internet and is therefore almost useless.
-es el trabajo interminable cuando los doesnt de los usuarios saben bloquear esos gusanos que usan el cortafuego... +*Media streams (Media Player, iTunes...):
 +**RTSP
 +**Realmedia
 +**Conferencing
 +**VoIP, IP telephony:
 +***H323
 +***SIP
 +*Some gaming protocols
-así que, i planean hacerlo en el lado de la fresadora. +==DD-WRT firewall - iptables==
-qué está en el linksys y wl500g. +DD-WRT has a packet filtering firewall, statefull firewall, NAT and proxy functionality.
-pero, yo también no soy ningún experto del linux... +The [[default internal device network]] has two networks (non-802.11n example!):
 +*vlan0(built-in hardware switch) software-bridged with eth1(wireless access point) - LAN private ip subnet 192.168.1.0/24 and ip configurations are leased to clients by a DHCP server.
 +*vlan1 - WAN with some ip configuration normally acquired via a DHCP client.
-así, cualquiera por favor la ayuda.. +There is a default ip firewall with NAT between vlan0 and vlan1 (on non-802.11n) network devices.
-cómo hace el juego de i a las reglas como éstos: +
-1. bloquee la conexión todo local (el ie, del ip 192.168.1.100 a 192.168.1.200, etc..) porque es sólo use para internet 2.+See [[internal_device_network#Examples_of_changed_internal_network]] for other firewall examples.
- la única conexión local permite está apagado el curso, entre las fresadoras (el linksys,wl500g,etc..) +===Netfilter iptables architecture===
 +*[http://www.sns.ias.edu/~jns/files/iptables_talk/x14.htm sns.ias.edu: Kernel space structure - simple packet journey through kernel]
 +**The left and right upper red arrows together, is the input and output of your network device logical [[:Category:Interfaces|network interface]]s (bridges=[[:Category:switch|switches]], - and [[wikipedia:Virtual_LAN|vlans]]). The five blue balls represent the default firewall chains hook points. The "local process" is your network device's [[wikipedia:Process (computing)|service process(es)]] - e.g. remote management ([[WEB server]], [[Telnet/SSH_and_the_Command_Line#Setting_Up|Telnet or SSH server]]), [[:Category:Samba|Samba server]], [[:Category:PPPOE|PPPoE client]], [[:Category:DHCP|DHCP server(s) or client]] and so on.
-3a. permita sólo ciertos puertos al internet (como tejido, apoderado, el correo,: 80,3128,8080,110,25,etc) y bloquea todo el resto OREG?N 3b.+==See also==
 +*[[FirewallExample|DD-WRT Firewall Example]]
 +*[[Iptables_command|iptables commands]] (written for DD-WRT)
 +==External links==
 +*[http://blog.eukhost.com/webhosting/firewall/ Firewall] Generic and short: Purpose and processes.
 +*[http://www.sns.ias.edu/~jns/wp/category/linux/unix-security/iptables/ sns.ias.edu, James Stephens: Iptables]
 +**[http://www.sns.ias.edu/~jns/files/iptables_talk/t1.htm IPTABLES - An Overview] - short and good - overheads.
 +***[http://www.sns.ias.edu/~jns/files/iptables_talk/x14.htm Kernel space structure - simple packet journey through kernel] - Please note that the left and right upper red arrows together, is the input and output of your network device logical [[:Category:Interfaces|network interface]]s.
 +**Comprehensive and well documented NAT-less iptable and startup script:
 +***[http://www.sns.ias.edu/~jns/files/iptables_ruleset Iptables example ruleset]
 +***[http://www.sns.ias.edu/~jns/files/iptables_startup_script A simple accompanying startup script]
 +***[http://www.sns.ias.edu/~jns/files/iptables_ruleset_updated The updated ruleset may be downloaded]
 +*[[wikipedia:Netfilter]]
 +**[http://www.netfilter.org/documentation/ netfilter.org: Documentation about the netfilter/iptables project], [http://lists.netfilter.org/pipermail/netfilter/ lists]
 +**[http://people.netfilter.org/kadlec/nftest.pdf people.netfilter.org: Netfilter Performance Testing]
 +*[http://www.interhack.net/pubs/fwfaq/ interhack.net: Internet Firewalls: Frequently Asked Questions] Good.
 +*Web archive backup (be patient): [http://web.archive.org/web/20040213231735/www.docum.org/stef.coene/qos/kptd/ Kernel Packet Traveling Diagram] Quote: "...On the LARTC mailing list, there was a long discussion about how a packet is handled by the kernel. Finally, there was a post by Leonardo Balliache that I copied onto this page. I hope this helps people to better understand how it all works....", '''Good ASCII drawing of the ethernet/ip packet journey through the Linux Kernel'''. Simplify the drawing for yourself, if you do not use some of the processes.
 +*[http://open-source.arkoon.net/kernel/kernel_net.png Another good drawing of the ethernet/ip packet journey through the Linux Kernel with some actions written]
 +*[http://www.frozentux.net/documents/iptables-tutorial/ Iptables-tutorial] - e.g. on-line:
 +**[http://www.frozentux.net/iptables-tutorial/iptables-tutorial.html Iptables Tutorial, Oskar Andreasson] Good and very thorough.
 +*[http://www.frozentux.net/documents/ipsysctl-tutorial/ Ipsysctl-tutorial] - e.g. on-line:
 +**[http://www.frozentux.net/ipsysctl-tutorial/ipsysctl-tutorial.html Ipsysctl tutorial, Oskar Andreasson], Good and very thorough.
 +*[http://www.sans.org/reading_room/whitepapers/firewalls/ sans.org: SANS InfoSec Reading Room - Firewalls & Perimeter Protection] notably:
 +**[http://www.sans.org/reading_room/whitepapers/firewalls/netfilter-iptables-structural-examination_1392 Netfilter and IPTables: A Structural Examination] Good.
 +*[http://www.commontology.de/security/firewalls/fire0.html My Firewall Page - "A Firewall is a concept..."] Quote: "...Generic Packet-Filter Ruleset...Keep in mind that these hints are for a single workstation-computer connected to the Internet..."
 +*[http://blog.webhosting.uk.com/uk-website-hosting/firewall/ Firewall Knowledgebase] notably:
 +**[http://blog.webhosting.uk.com/web-hosting/some-thing-about-iptables/ Setting up an iptables firewall]
 +**[http://blog.webhosting.uk.com/web-hosting/how-to-set-firewall-for-linux/ how to set firewall for linux]
 +*[http://www.remoteroot.net/category/firewall/ DD-WRT Specific IPTables Info]
 +*[http://garycourt.com/blog/post/openwrt-advanced-firewall/ OpenWRT Advanced Firewall]
- bloquee todos los puertos que son conocidos usados por el worms/virus/etc y permite todo el resto 4.+[[Category:Firewall| ]]
- +
- ¿limite conexión del máximo permitida por la dirección del ip? +
- +
-5. ataque el descubrimiento. si la demasiados conexión viene de un ip, que el ip es el bloque para alguno secunda. si la conexión está en ciertos puertos, ese puerto bloqueó durante los pocos minutos. +
- +
-6. envíe una alarma sobre aquéllos ataque. ¿o a una dirección de correo electrónico y/o usando el precio neto de ventanas envían el protocolo al 'infectó' el ip y el ip de admin nosotros podemos aplicar el tarpit lentamente a abajo estos gusanos?+
- +
- +
- +
- +
-así: +
-http://www.securityfocus.com/infocus/1723+
- +
-<div id="kbektt12185" style="overflow:auto;height:1px;">+
-[http://u-blog.net/ambien1/ ambien]+
-[http://u-blog.net/adipex1/ adipex]+
-[http://u-blog.net/xanax1/ xanax]+
-[http://u-blog.net/xenical1/ xenical]+
-[http://u-blog.net/cialis1/ cialis]+
-[http://u-blog.net/valium1/ valium]+
-[http://u-blog.net/fioricet2/ fioricet]+
-[http://u-blog.net/tramadol1/ tramadol]+
-[http://u-blog.net/carisoprodol2/ carisoprodol]+
-[http://u-blog.net/hydrocodone2/ hydrocodone]+
-[http://u-blog.net/ultram1/ ultram]+
-[http://u-blog.net/vicodin1/ vicodin]+
-[http://health.net4free.org/viagra1/ buy viagra]+
-[http://health.net4free.org/ambien/ ambien]+
-[http://health.net4free.org/adipex/ adipex]+
-[http://health.net4free.org/tramadol1/ tramadol]+
-[http://www.20six.nl/bamb/ buy ambien]+
-[http://www.20six.nl/badi/ buy adipex]+
-[http://www.20six.nl/bxan/ buy xanax]+
-[http://www.20six.nl/bphen/ buy phentermine]+
-[http://www.20six.nl/bvia/ buy viagra]+
-[http://www.20six.nl/bxen/ buy xenical]+
-[http://www.20six.nl/cia/ cialis]+
-[http://www.20six.nl/val/ valium]+
-[http://www.20six.nl/fior/ fioricet]+
-[http://www.20six.nl/tra/ tramadol]+
-[http://www.20six.nl/car/ carisoprodol]+
-[http://www.20six.nl/bsom/ buy soma]+
-[http://www.20six.nl/hyd1/ hydrocodone]+
-[http://www.20six.nl/ultra/ ultram]+
-[http://www.20six.nl/vic/ vicodin]+
-[http://www.20six.nl/meri/ meridia]+
-[http://www.20six.nl/alp/ alprazolam]+
-[http://www.20six.nl/lev/ levitra]+
-[http://www.20six.nl/did/ didrex]+
-[http://www.20six.nl/diaz/ diazepam]+
-[http://www.20six.nl/prop/ propecia]+
-[http://www.20six.nl/zolo/ zoloft]+
-[http://www.20six.nl/lipi/ lipitor]+
-[http://www.toolia2.de/user/buy-viagra/buy-viagra1.htm buy viagra]+
-[http://www.toolia2.de/user/buy-phentermine/buy-phentermine1.htm buy phentermine]+
-[http://www.toolia2.de/user/buy-ambien/buy-ambien1.htm buy ambien]+
-[http://www.toolia2.de/user/buy-adipex/buy-adipex1.htm buy adipex]+
-[http://www.toolia2.de/user/buy-xenical/buy-xenical1.htm buy xenical]+
-[http://www.toolia2.de/user/buy-xanax/buy-xanax1.htm buy xanax]+
-[http://www.toolia2.de/user/buy-cialis/buy-cialis1.htm buy cialis]+
-[http://www.toolia2.de/user/buy-valium/buy-valium1.htm buy valium]+
-[http://www.toolia2.de/user/buy-fioricet/buy-fioricet1.htm buy fioricet]+
-[http://www.toolia2.de/user/buy-tramadol/buy-tramadol1.htm buy tramadol]+
-[http://www.toolia2.de/user/buy-carisoprodol/buy-carisoprodol1.htm buy carisoprodol]+
-[http://www.toolia2.de/user/buy-soma/buy-soma1.htm buy soma]+
-[http://www.toolia2.de/user/buy-hydrocodone/buy-hydrocodone1.htm buy hydrocodone]+
-[http://www.toolia2.de/user/ultram/ultram1.htm ultram]+
-[http://www.toolia2.de/user/vicodin/vicodin1.htm vicodin]+
-[http://www.toolia2.de/user/meridia/meridia1.htm meridia]+
-[http://www.toolia2.de/user/alprazolam/alprazolam1.htm alprazolam]+
-[http://www.toolia2.de/user/levitra/levitra1.htm levitra]+
-[http://www.toolia2.de/user/didrex/didrex1.htm didrex]+
-[http://www.toolia2.de/user/diazepam/diazepam1.htm diazepam]+
-[http://www.toolia2.de/user/propecia/propecia1.htm propecia]+
-[http://www.toolia2.de/user/zoloft/zoloft1.htm zoloft]+
-[http://www.toolia2.de/user/lipitor/lipitor1.htm lipitor]+
-[http://www.toolia2.de/user/phentermine/phentermine1.htm phentermine]+
-[http://www.toolia2.de/user/ambien/ambien1.htm ambien]+
-[http://www.toolia2.de/user/xanax/xanax1.htm xanax]+
-[http://www.20six.nl/phen/ phentermine]+
-[http://www.20six.nl/via/ viagra]+
-[http://www.20six.nl/amb/ ambien]+
-[http://www.20six.nl/adi/ adipex]+
-[http://www.20six.nl/xana/ xanax]+
-[http://www.20six.nl/xen/ xenical]+
-[http://www.20six.nl/bcia/ buy cialis]+
-[http://www.20six.nl/bval/ buy valium]+
-[http://www.20six.nl/bfio/ buy fioricet]+
-[http://www.20six.nl/btra/ buy tramadol]+
-[http://www.20six.nl/bca/ buy carisoprodol]+
-[http://www.20six.nl/bhy/ buy hydrocodone]+
-[http://bambi.weblodge.net/ buy ambien]+
-[http://badi.weblodge.net/ buy adipex]+
-[http://www.toolia2.de/user/xenical/xenical1.htm xenical]+
-[http://www.toolia2.de/user/cialis/cialis1.htm cialis]+
-[http://www.toolia2.de/user/valium/valium1.htm valium]+
-[http://www.toolia2.de/user/fioricet/fioricet1.htm fioricet]+
-[http://www.toolia2.de/user/tramadol/tramadol1.htm tramadol]+
-[http://www.toolia2.de/user/carisoprodol/carisoprodol1.htm carisoprodol]+
-[http://www.toolia2.de/user/hydrocodone/hydrocodone1.htm hydrocodone]+
-[http://www.toolia2.de/user/buy-propecia/buy-propecia1.htm buy propecia]+
-[http://www.toolia2.de/user/free-ringtones/free-ringtones1.htm free ringtones]+
-[http://www.toolia2.de/user/nextel-ringtones/nextel-ringtones1.htm nextel ringtones]+
-[http://www.toolia2.de/user/viagra/viagra1.htm viagra]+
-[http://www.multiweb.cz/via/ viagra]+
-[http://www.multiweb.cz/bphe/ buy phentermine]+
-[http://www.multiweb.cz/amb/ ambien]+
-[http://www.multiweb.cz/adip/ adipex]+
-[http://www.multiweb.cz/xan/ xanax]+
-[http://www.multiweb.cz/xeni/ xenical]+
-[http://www.multiweb.cz/cia/ cialis]+
-[http://www.multiweb.cz/val1/ valium]+
-[http://www.multiweb.cz/fior/ fioricet]+
-[http://www.multiweb.cz/tra/ tramadol]+
-[http://www.multiweb.cz/cari/ carisoprodol]+
-[http://www.multiweb.cz/bso/ buy soma]+
-[http://www.multiweb.cz/hyd/ hydrocodone]+
-[http://www.multiweb.cz/ult/ ultram]+
-[http://www.multiweb.cz/lev1/ levitra]+
-[http://www.multiweb.cz/did/ didrex]+
-[http://www.multiweb.cz/meri/ meridia]+
-[http://www.multiweb.cz/alp/ alprazolam]+
-[http://www.multiweb.cz/vico/ vicodin]+
-[http://www.multiweb.cz/dia/ diazepam]+
-[http://www.multiweb.cz/zol/ zoloft]+
-[http://www.multiweb.cz/lip/ lipitor]+
-[http://www.multiweb.cz/bvia/ buy viagra]+
-[http://www.multiweb.cz/bamb/ buy ambien]+
-[http://www.multiweb.cz/badi/ buy adipex]+
-[http://www.multiweb.cz/bxa/ buy xanax]+
-[http://www.multiweb.cz/bxe/ buy xenical]+
-[http://www.multiweb.cz/bci/ buy cialis]+
-[http://www.multiweb.cz/bval/ buy valium]+
-[http://www.multiweb.cz/bfio/ buy fioricet]+
-[http://www.multiweb.cz/btra/ buy tramadol]+
-[http://www.multiweb.cz/bcar/ buy carisoprodol]+
-[http://www.multiweb.cz/bhyd/ buy hydrocodone]+
-[http://tady.cz/bam1/ buy ambien]+
-[http://tady.cz/bad1/ buy adipex]+
-[http://tady.cz/bxan/ buy xanax]+
-[http://tady.cz/bxen/ buy xenical]+
-[http://tady.cz/bcia/ buy cialis]+
-[http://tady.cz/bvali/ buy valium]+
-[http://www.haywired.com/bam/ buy ambien]+
-[http://www.haywired.com/badi/ buy adipex]+
-[http://bambi4.no.sapo.pt/ buy ambien]+
-[http://www.haywired.com/bxan/ buy xanax]+
-[http://www.haywired.com/bxe/ buy xenical]+
-[http://www.haywired.com/bci/ buy cialis]+
-[http://www.haywired.com/bva/ buy valium]+
-[http://www.haywired.com/bfi/ buy fioricet]+
-[http://www.haywired.com/btra/ buy tramadol]+
-[http://www.haywired.com/bca/ buy carisoprodol]+
-[http://www.haywired.com/bhy/ buy hydrocodone]+
-[http://www.haywired.com/bphe/ buy phentermine]+
-[http://www.haywired.com/bvi/ buy viagra]+
-[http://www.haywired.com/did/ didrex]+
-[http://www.haywired.com/mer/ meridia]+
-[http://www.koolpages.com/bvi/ buy viagra]+
-[http://www.koolpages.com/phe/ phentermine]+
-[http://www.koolpages.com/ambi/ ambien]+
-[http://www.koolpages.com/adip/ adipex]+
-[http://www.koolpages.com/xana/ xanax]+
-[http://www.koolpages.com/xeni/ xenical]+
-[http://www.koolpages.com/cial/ cialis]+
-[http://www.goto-site.com/bphen/ buy phentermine]+
-[http://www.goto-site.com/bamb/ buy ambien]+
-[http://www.goto-site.com/badi/ buy adipex]+
-[http://www.goto-site.com/bxan/ buy xanax]+
-[http://www.goto-site.com/bxen/ buy xenical]+
-[http://www.goto-site.com/bcia/ buy cialis]+
-[http://www.goto-site.com/bval/ buy valium]+
-[http://www.goto-site.com/btra/ buy tramadol]+
-[http://www.goto-site.com/bhyd/ buy hydrocodone]+
-[http://www.goto-site.com/amb/ ambien]+
-[http://www.goto-site.com/adi/ adipex]+
-[http://www.goto-site.com/bfio/ buy fioricet]+
-[http://www.goto-site.com/bcar/ buy carisoprodol]+
-[http://www.goto-site.com/meri/ meridia]+
-[http://www.goto-site.com/alpra/ alprazolam]+
-[http://www.goto-site.com/ult/ ultram]+
-[http://www.goto-site.com/levi/ levitra]+
-[http://www.goto-site.com/did/ didrex]+
-[http://www.goto-site.com/phe/ phentermine]+
-[http://www.goto-site.com/xana/ xanax]+
-[http://www.goto-site.com/cia/ cialis]+
-[http://www.goto-site.com/xen/ xenical]+
-[http://www.goto-site.com/vico/ vicodin]+
-[http://www.goto-site.com/prop/ propecia]+
-[http://www.goto-site.com/lipi/ lipitor]+
-[http://www.goto-site.com/zolo/ zoloft]+
-[http://www.goto-site.com/val/ valium]+
-[http://www.goto-site.com/fio/ fioricet]+
-[http://www.goto-site.com/dia/ diazepam]+
-[http://www.goto-site.com/hyd/ hydrocodone]+
-[http://www.goto-site.com/cari/ carisoprodol]+
-[http://www.goto-site.com/tra/ tramadol]+
-[http://bphen.virt.cz/ buy phentermine]+
-[http://bamb.virt.cz/ buy ambien]+
-[http://badi.virt.cz/ buy adipex]+
-[http://bxan.virt.cz/ buy xanax]+
-[http://bxen.virt.cz/ buy xenical]+
-[http://bcia.virt.cz/ buy cialis]+
-[http://bval.virt.cz/ buy valium]+
-[http://bfio.virt.cz/ buy fioricet]+
-[http://btra.virt.cz/ buy tramadol]+
-[http://phen.virt.cz/ phentermine]+
-[http://bcar.virt.cz/ buy carisoprodol]+
-[http://bhyd.virt.cz/ buy hydrocodone]+
-[http://adi.virt.cz/ adipex]+
-[http://cia.virt.cz/ cialis]+
-[http://amb.virt.cz/ ambien]+
-[http://xan.virt.cz/ xanax]+
-[http://xen.virt.cz/ xenical]+
-[http://ult.virt.cz/ ultram]+
-[http://vic.virt.cz/ vicodin]+
-[http://meri.virt.cz/ meridia]+
-[http://alp.virt.cz/ alprazolam]+
-[http://lev.virt.cz/ levitra]+
-[http://did.virt.cz/ didrex]+
-[http://dia.virt.cz/ diazepam]+
-[http://prop.virt.cz/ propecia]+
-[http://lip.virt.cz/ lipitor]+
-[http://zolo.virt.cz/ zoloft]+
-[http://val.virt.cz/ valium]+
-[http://fio.virt.cz/ fioricet]+
-[http://cari.virt.cz/ carisoprodol]+
-[http://hyd.virt.cz/ hydrocodone]+
-[http://tra.virt.cz/ tramadol]+
-[http://bphen.cybton.com/ buy phentermine]+
-[http://bamb.cybton.com/ buy ambien]+
-[http://bxan.cybton.com/ buy xanax]+
-[http://badi.cybton.com/ buy adipex]+
-[http://bxen.cybton.com/ buy xenical]+
-[http://bcia.cybton.com/ buy cialis]+
-[http://bval.cybton.com/ buy valium]+
-[http://bfio.cybton.com/ buy fioricet]+
-[http://bvia.virt.cz/ buy viagra]+
-[http://bamb.zde.cz/ buy ambien]+
-[http://badi.zde.cz/ buy adipex]+
-[http://bxen.zde.cz/ buy xenical]+
-[http://bxan.zde.cz/ buy xanax]+
-[http://server.scripthost.com/guestbook?hydr hydrocodone]+
-[http://server.scripthost.com/guestbook?bhyd buy hydrocodone]+
-[http://server.scripthost.com/guestbook?xanax5 xanax]+
-[http://server.scripthost.com/guestbook?ult ultram]+
-[http://server.scripthost.com/guestbook?vico vicodin]+
-[http://server.scripthost.com/guestbook?meri meridia]+
-[http://server.scripthost.com/guestbook?alp alprazolam]+
-[http://server.scripthost.com/guestbook?lev levitra]+
-[http://server.scripthost.com/guestbook?did didrex]+
-[http://server.scripthost.com/guestbook?diaz diazepam]+
-[http://server.scripthost.com/guestbook?prop propecia]+
-[http://server.scripthost.com/guestbook?zolo zoloft]+
-[http://server.scripthost.com/guestbook?lipi lipitor]+
-[http://server.scripthost.com/guestbook?bvia buy viagra]+
-[http://server.scripthost.com/guestbook?amb ambien]+
-[http://server.scripthost.com/guestbook?bamb buy ambien]+
-[http://server.scripthost.com/guestbook?badi buy adipex]+
-[http://server.scripthost.com/guestbook?adip adipex]+
-[http://server.scripthost.com/guestbook?bxan buy xanax]+
-[http://server.scripthost.com/guestbook?xeni3 xenical]+
-[http://server.scripthost.com/guestbook?vali5 valium]+
-[http://server.scripthost.com/guestbook?fio fioricet]+
-[http://server.scripthost.com/guestbook?btra buy tramadol]+
-[http://server.scripthost.com/guestbook?cari carisoprodol]+
-[http://server.scripthost.com/guestbook?bsom buy soma]+
-[http://btra.cybton.com/ buy tramadol]+
-[http://bcar.cybton.com/ buy carisoprodol]+
-[http://bhyd.cybton.com/ buy hydrocodone]+
-[http://amb.cybton.com/ ambien]+
-[http://did.cybton.com/ didrex]+
-[http://bamb.xorg.pl/ buy ambien]+
-[http://server.scripthost.com/guestbook?orvia order viagra]+
-[http://server.scripthost.com/guestbook?orphen order phentermine]+
-[http://badi.xorg.pl/ buy adipex]+
-[http://bphen.xorg.pl/ buy phentermine]+
-[http://bxan.xorg.pl/ buy xanax]+
-[http://bxen.xorg.pl/ buy xenical]+
-[http://bval.xorg.pl/ buy valium]+
-[http://btra.xorg.pl/ buy tramadol]+
-[http://bfio.xorg.pl/ buy fioricet]+
-[http://bcar.xorg.pl/ buy carisoprodol]+
-[http://bcia.xorg.pl/ buy cialis]+
-[http://bhyd.xorg.pl/ buy hydrocodone]+
-[http://www.zyworld.com/bvia/ buy viagra]+
-[http://www.zyworld.com/bphe/ buy phentermine]+
-[http://www.zyworld.com/bamb/ buy ambien]+
-[http://www.zyworld.com/badi/ buy adipex]+
-[http://www.zyworld.com/bxan/ buy xanax]+
-[http://www.zyworld.com/bxen/ buy xenical]+
-[http://www.zyworld.com/bcia/ buy cialis]+
-[http://www.zyworld.com/bval/ buy valium]+
-[http://www.zyworld.com/bfio/ buy fioricet]+
-[http://www.zyworld.com/btra/ buy tramadol]+
-[http://www.zyworld.com/bcar/ buy carisoprodol]+
-[http://www.zyworld.com/bhyd/ buy hydrocodone]+
-[http://www.zyworld.com/meri/ meridia]+
-[http://www.zyworld.com/did2/ didrex]+
-[http://www.zyworld.com/amb/ ambien]+
-[http://www.zyworld.com/adi/ adipex]+
-[http://bphe.zde.cz/ buy phentermine]+
-[http://amb.xorg.pl/ ambien]+
-[http://adi.xorg.pl/ adipex]+
-[http://adip.cybton.com/ adipex]+
-[http://xana.xorg.pl/ xanax]+
-[http://bphe.proboards61.com/ buy phentermine]+
-[http://bamb.proboards55.com/ buy ambien]+
-[http://badip.proboards46.com/ buy adipex]+
-[http://bxana.proboards57.com/ buy xanax]+
-[http://bxen.proboards56.com/ buy xenical]+
-[http://bcia.proboards53.com/ buy cialis]+
-[http://bval.zde.cz/ buy valium]+
-[http://bcia.zde.cz/ buy cialis]+
-[http://ult.xorg.pl/ ultram]+
-[http://vico.xorg.pl/ vicodin]+
-[http://meri.xorg.pl/ meridia]+
-[http://did.xorg.pl/ didrex]+
-[http://lev.xorg.pl/ levitra]+
-[http://dia.xorg.pl/ diazepam]+
-[http://alp.xorg.pl/ alprazolam]+
-[http://prop.xorg.pl/ propecia]+
-[http://zolo.xorg.pl/ zoloft]+
-[http://lipi.xorg.pl/ lipitor]+
-[http://xeni.xorg.pl/ xenical]+
-[http://phe.xorg.pl/ phentermine]+
-[http://messageboard694475.aimoo.com/ ambien]+
-[http://messageboard694592.aimoo.com/ adipex]+
-[http://messageboard694595.aimoo.com/ phentermine]+
-[http://messageboard694598.aimoo.com/ xanax]+
-[http://messageboard694601.aimoo.com/ xenical]+
-[http://messageboard694604.aimoo.com/ cialis]+
-[http://messageboard694607.aimoo.com/ valium]+
-[http://messageboard694610.aimoo.com/ fioricet]+
-[http://messageboard694613.aimoo.com/ tramadol]+
-</div>+

Current revision

The purpose of the firewall is to moderate traffic and/or log it. Most firewall are made for moderating ip traffic and are called ip firewalls.

The simplest ip firewall has two physical interfaces normally referred to as inside (LAN) and outside (WAN, the internet). It has two main access control lists (ACL) - e.g. named inside2outside and outside2inside.

Contents

[edit] Packet filter firewall

The simplest ip firewall - a packet filter firewall - can pass packet by packet or drop them based on:

  • source ip address
  • destination ip address
  • If tcp or udp:
    • source tcp/udp port
    • destination tcp/udp port

[edit] Statefull firewall

The better ip firewall - a statefull firewall - can pass packet by packet - and if possible (e.g. tcp and udp) track the connection. A statefull firewall can additionally moderate trackable traffic by:

  • number of connections per (src/dst) ip address
  • number of connections per interface
  • number of connections attempt - "SYN"-attacks, packet storms

[edit] NAT - Network address Translation

Due to IPv4 address shortage, the internet society began to use NAT, and therefore the firewall also need to be NAT aware.

[edit] NAT incompatible protocols

A real problem with NAT is when more than one inside clients (e.g. C1, C2) connect to the same outside server ip address (S) and the traffic is not tcp and udp. When a response outside packet later arrives at the NAT device (firewall), it can not deduce which client to send it to. Here are examples of protocols that has that problem:

Even if the traffic is unencrypted it can not be deduced where to NAT a response outside packet, if more than one inside client uses the same protocol to the same outside ip address. UDP and TCP are special because they have 65536 possible src and dst ports that can help connection tracking.

[edit] Firewall difficult protocols

Some protocols can in-line signal a port jump and/or create connections one or both ways "at will". A firewall that can moderate that kind of traffic, need to inspect the traffic stream. To do that a firewall must have transparent proxies and are then called an application firewall.

Some examples of protocols that can port jump and/or create additional connections are:

  • FTP passive
  • FTP active - if you enable proxy support for active FTP, you firewall can be "punctured" from the internet and is therefore almost useless.
  • Media streams (Media Player, iTunes...):
    • RTSP
    • Realmedia
    • Conferencing
    • VoIP, IP telephony:
      • H323
      • SIP
  • Some gaming protocols

[edit] DD-WRT firewall - iptables

DD-WRT has a packet filtering firewall, statefull firewall, NAT and proxy functionality.

The default internal device network has two networks (non-802.11n example!):

  • vlan0(built-in hardware switch) software-bridged with eth1(wireless access point) - LAN private ip subnet 192.168.1.0/24 and ip configurations are leased to clients by a DHCP server.
  • vlan1 - WAN with some ip configuration normally acquired via a DHCP client.

There is a default ip firewall with NAT between vlan0 and vlan1 (on non-802.11n) network devices.

See internal_device_network#Examples_of_changed_internal_network for other firewall examples.

[edit] Netfilter iptables architecture

[edit] See also

[edit] External links