umstieg von ipchains auf iptable - Kurze Frage

Jan-Benedict Glaw jbglaw at lug-owl.de
Mon Jun 11 09:56:10 CEST 2001


On Sun, Jun 10, 2001 at 10:23:43PM +0200, Thomas Dohl wrote:
> Hi ich bin's nochmal. :-)
> 
> Bin jetzt auf iptables umgestiegen und bräuchte desshalb etwas Hilfe.
> 
> Wie müsste man diesen Script umwandeln, damit er bei iptables funktioniert?
> 
> #! /bin/bash
> ipchains -F
> echo 1 > /proc/sys/net/ipv4/ip_forward
> ipchains -A forward -s 192.168.100.0/8 -d 0/0 -i ppp0 -j MASQ

iptables -s 192.168.100.0/8 -d 0/0 -t nat -A POSTROUTING -j MASQUERADE

Ach ja, dazu gibt's 'nen wunderbares HOWTO, notfalls auch in Deutsch,
unter http://netfilter.kernelnotes.org/ oder netfilter.samba.org.

MfG, JBG

-- 
Fehler eingestehen, Größe zeigen: Nehmt die Rechtschreibreform zurück!!!
/* Jan-Benedict Glaw <jbglaw at lug-owl.de> -- +49-172-7608481 */
keyID=0x8399E1BB fingerprint=250D 3BCF 7127 0D8C A444 A961 1DBD 5E75 8399 E1BB
     "insmod vi.o and there we go..." (Alexander Viro on linux-kernel)
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : nicht verfügbar
Dateityp    : application/pgp-signature
Dateigröße  : 240 bytes
Beschreibung: nicht verfügbar
URL         : http://www.tlug.de/pipermail/tlug_allgemein/attachments/20010611/057a1442/attachment.pgp