From mboxrd@z Thu Jan 1 00:00:00 1970 From: Didier Tournier Subject: update iptables rule from a target module... Date: Thu, 05 Dec 2002 11:54:54 +0100 Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <3DEF307E.4000100@gemplus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Return-path: To: netfilter-devel@lists.netfilter.org Errors-To: netfilter-devel-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: netfilter-devel.vger.kernel.org Hi all, Is there anybody that could help me with what's following ... I need to create a new binding rule from a target function of my target module loaded by iptables. this rule is : iptables -t nat -A PREROUTING -d 192.168.0.250 -j DNAT --to 10.10.29.50 I've tried to make it with a "do_exec", but that dont work and it could be better to update the table directly. Is there a way to do that? some examples ... Thanks in advance Didier