Skip to contentSkip to conversation

update iptables rule from a target module...

DISCUSSION Didier Tournier 1 participant 1 message Dec 5, 2002 netfilter

lore
Share & tools
lore
#0 lore raw

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