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 - To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
- To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
