IPtables Prerouting

Einrichten des lokalen Netzes, Verbindung zu anderen Computern und Diensten.
Antworten
wiski
Beiträge: 1
Registriert: 10.08.2012 15:54:58

IPtables Prerouting

Beitrag von wiski » 10.08.2012 15:58:58

Hallo,

ich habe via IPtables ein prerouting vorgenommen welches alle Anfragen an port 80 auf die 8080 umleitet.
Ich möchte jedoch eine Adresse (quasi http://www.meinedomain.de/nicht8080.html) davon ausschließen.

Ist das möglich?

Danke im voraus!

Cae
Beiträge: 6349
Registriert: 17.07.2011 23:36:39
Wohnort: 2130706433

Re: IPtables Prerouting

Beitrag von Cae » 10.08.2012 16:32:59

Nein, zumindest nicht ohne Weiteres. An der Stelle, wo du umleitest, interessiert sich niemand für das HTTP-Protokoll, wo solche Pfade angegeben werden würden. Das wäre Layer 7; Port-Weiterleitungen sind ein Fall für Layer 4.
Falls iptables jetzt ein tolles Modul hat, wie zum Beispiel das FTP-Teil da, welches analog für HTTP deep packet inspection macht, ginge das vielleicht.

Willkommen im Forum!

Gruß Cae
If universal surveillance were the answer, lots of us would have moved to the former East Germany. If surveillance cameras were the answer, camera-happy London, with something like 500,000 of them at a cost of $700 million, would be the safest city on the planet.

—Bruce Schneier

Antworten