cyx wrote:
HI, all: the command is "iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE" how to write the code using libiptc to implement this? It is hard to get enough useful information about programing with libiptc APIs, so can you give me the sample code ? thanks a lot!
libiptc doesn't provide a API for external programs, its purely for iptables use. You *can* use it (at least some people do), but we give no guarantees that it stays stable and additionally it used to leak memory (not sure about the state today). -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html