In home-router-howto iptables uses negation option like this: iptables -A INPUT -p UDP --dport bootps -i ! ${LAN} -j REJECT but currently iptables says: Using intrapositioned negation (`--option ! this`) is deprecated in favor of extrapositioned (`! --option this`). All rules that uses negation should look like this: iptables -A INPUT -p UDP --dport bootps ! -i ${LAN} -j REJECT Reproducible: Always
Created attachment 204488 [details, diff] home-router-howto.xml.patch Patch with fixed commands
Source? According to the iptables manpage, it seems to be acceptable to use: -i ! eth0 . . . for example. Have you found another document online someplace, or is there any terminal output that specifically states that the above is deprecated in favor of "! -i eth0"?
I use stable net-firewall/iptables-1.4.3.2. iptables throw this: # iptables -A INPUT -p TCP --dport 33999 -i ! eth0 -j REJECT Using intrapositioned negation (`--option ! this`) is deprecated in favor of extrapositioned (`! --option this`). And his manpage says use negation sign _before_ option.
K, I'll see about updating the guide.
Thanks for reporting and for posting the patch. Fixed in CVS.