[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Rechner will an ihn geschickte Pakete nicht



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: