11. April 200620 j Hallo, hier meine Ausgabe: ~ # iptables -L -t nat Chain PREROUTING (policy ACCEPT) target prot opt source destination DNAT tcp -- anywhere XXXXX.dip.t-dialin.net tcp dpt:webcache to:192.168.1.253:80 DNAT icmp -- anywhere XXXXX.dip.t-dialin.net to:192.168.1.253 DNAT tcp -- anywhere XXXXX.dip.t-dialin.net tcp dpt:81 to:192.168.1.55:80 DNAT udp -- anywhere XXXXX.dip.t-dialin.net udp dpt:81 to:192.168.1.55:80 TRIGGER all -- anywhere XXXXX.dip.t-dialin.net TRIGGER type:dnat match:0 relate:0 Chain POSTROUTING (policy ACCEPT) target prot opt source destination MASQUERADE all -- anywhere anywhere RETURN all -- anywhere anywhere PKTTYPE = broadcast MASQUERADE all -- 192.168.1.0/24 192.168.1.0/24 Chain OUTPUT (policy ACCEPT) target prot opt source destination ~ # ------------------------- Jetzt möchte ich das statt: MASQUERADE all -- 192.168.1.0/24 192.168.1.0/24 das hier angezeigt wird: MASQUERADE all -- 192.168.0.0/16 192.168.0.0/16 Welchen Befehl muss ich eingeben? Hoffe mir kann jemand helfen. Würde mich auch über einen Tip freuen. MfG haves
11. April 200620 j Probier mal folgendes: iptables -t nat -D POSTROUTING -s 192.168.1.0/24 -d 192.168.1.0/24 -j MASQUERADE iptables -t nat -A POSTROUTING -s 192.168.0.0/16 -d 192.168.0.0/16 -j MASQUERADE
Archiv
Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.