[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Is it possible to target rule in one table to a user defined chain in another?



Hi.

Is it possible to target rule in one table to a user defined chain in
another?

For example:

1. Adding my own chain to filter table

# iptables -N MY_CHAIN

2. Add a rule in nat table targeting MY_CHAIN from filter table

# iptables -A PREROUTING -t nat -s 0.0.0.0/0 -d 0.0.0.0/0 -j MY_CHAIN

the last results in:

iptables v1.2.11: Couldn't load target
`MY_CHAIN':/lib/iptables/libipt_MY_CHAIN.so: cannot open shared object
file: No such file or directory

Try `iptables -h' or 'iptables --help' for more information.


P.S. If the chain MY_CHAIN is added to nat table as follows:

# iptables -N MY_CHAIN -t nat

the above would work

-- 
Покотиленко Костик <casper@meteor.dp.ua>



Reply to: