Re: Rechner will an ihn geschickte Pakete nicht
- To: debian-user-german@lists.debian.org
- Subject: Re: Rechner will an ihn geschickte Pakete nicht
- From: Claudius Hubig <nfs_2007@chubig.net>
- Date: Wed, 19 Dec 2007 18:16:13 +0100
- Message-id: <20071219181613.205d4e42@zeus>
- References: <20071219134230.2d608332@zeus> <1198071198.4721.7.camel@FSCN> <20071219144709.51829156@zeus> <1198076454.4721.11.camel@FSCN>
Thomas Halinka <thohal84@yahoo.de> wrote:
>Jou - da sollte schon sowas wie Masquerading oder NAT gemacht werden ;)
>und zwar für dieses Netz hier... 10.43.0.0 255.255.255.0
Aber habe ich das nicht durch
iptables -t nat -A POSTROUTING -p tcp -o venet0 -j SNAT --to-source y.y.y.y -s 10.43.0.0/24
iptables -t nat -A POSTROUTING -p udp -o venet0 -j SNAT --to-source y.y.y.y -s 10.43.0.0/24
erschlagen?
iptables -L -t nat zeigt auch folgerichtig an:
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
SNAT tcp -- 10.43.0.0/24 anywhere to:y.y.y.y
SNAT udp -- 10.43.0.0/24 anywhere to:y.y.y.y
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Grüsse,
Claudius
--
Mail: nfs_2007@chubig.net ICQ: 224491597 ,= ,-_-. =.
Google: clhubig@googlemail.com SIP: x2017@ekiga.net ((_/)o o(\_))
MSN: claudiushubig@passport.com Jabber: x2017@jabber.ccc.de `-'(. .)`-'
Yahoo: claudiushubig@yahoo.de HTTP: http://www.chubig.net \_/ GNU
Reply to: