create dynamic rules..
hi all,
I'm e beginner in network developing. I would like to how to create dynamic rules in a netfilter firewall. I have to create rules like these:
iptables -t nat -A OUTPUT -d ! 127.0.0.1 -p tcp --destination-port 80 --tcp-flags syn syn -j QUEUE iptables -t nat -A OUTPUT -p tcp -d ! 127.0.0.1 -j DNAT --to 127.0.0.1:80
I started using libiptc, in particular the iptc_insert_entry function, but didn't understand how to fill the ipt_entry struct.
can anyone help me?
tax.
Ciao :-)
Signature · 7 lines
--------------------------------------------------------------- | ||||||| || | Fallucchi Antonio Giuseppe mat. 2282 | | || |||| | --> Live free() of die() <-- | | |||| || || | OpenSource philisophy | | || |||||||| | Universita' di Bologna sede di Cesena | | || || || | Computer Sience Romagna | ---------------------------------------------------------------