What about:
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j SNAT --to yourIP
iptables -t nat -A POSTROUTING -j DROP
or
iptables -t nat -P POSTROUTING DROP
Andreas
Jens Knoell wrote:
Is it possible to selectively enable NAT? i.e. I want to NAT
everything from 192.168.0.0/24 and nothing from 192.168.1.0/24 ...?
Thanks
J
-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html