🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: ch.comp.os.linux
Article #20085

Re: Ipchains

#20085
From: Matthias Scherrer
Date: Sun, 07 Nov 1999 00:00
26 lines
1233 bytes
mck <mckh@gmx.de> wrote:

> weiss jemand zufaellig, wie das mit dem ipchains fuer das Portforwarding 
> genau funktioniert ?

Annahme: du hast den proxy squid auf Port 8080 und moechtest alle lokalen
(=vom 192.168.0.0 Netz) Zugriffe auf Port 80 umlenken:


ipchains -A input -s 192.168.0.0/24 1024: --dport 80 -p tcp \
-i eth0 -j REDIRECT 8080

(Anstatt --dport 80 kannst du auch www (oder http?) schreiben)

Falls du das ding als Firewall konfigurierst, musst du auch noch 
die Antwort-Pakete erlauben:

ipchains -A output --sport 80 -d 192.168.0.0/24 1024: -p tcp \
-i eth0 -j ACCEPT ! -y


Wie immer: als Lektuere die HOWTOs lesen...

Gruss

Matthias
Technical Details
Message-ID: <t4h408.3a.ln@amiga.pulsar>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <MPG.128fc138d570fa60989680@news.uni-stuttgart.de>

Show Full Headers
Complete Article Headers
X-Google-Language: GERMAN,ASCII-7-bit
X-Google-Thread: f4b73,a6482d7689099545
X-Google-Attributes: gidf4b73,public
From: Matthias Scherrer <metti@datacomm.ch>
Subject: Re: Ipchains
Date: 1999/11/07
Message-ID: <t4h408.3a.ln@amiga.pulsar>
X-Deja-AN: 545625926
Sender: <metti@amiga.pulsar>
References: <MPG.128fc138d570fa60989680@news.uni-stuttgart.de>
X-Trace: 7 Nov 1999 20:50:34 +0100, line259-basel.datacomm.ch
Organization: DataComm (Schweiz) AG
User-Agent: tin/pre-1.4-980618 (UNIX) (Linux/2.2.5 (i686))
Newsgroups: ch.comp.os.linux