You can edit the /etc/apf/conf.apf and add eth1 in there, then reload apf by running apf -r
That is not what he is asking. This will only make the rules work on eth1. He need to filter more than one interface. I think it is not possible with apf.
Apf allows only one interface to filter and more than one interfaces to be set as trusted where no rules will be valid.
I would like to know how to filter more than one NIC with APF firewall... at the moment, it only let you filter Eth0, how do I add Eth1 in it as well?
Please help and thank you in advance...
He was clearly asking for more than one NIC. Not just swapping eth0 and 1. Your reply can mislead him, if he has no much adea about that as you just mentioned to add eth1 in the apf conf and reload the apf.
That is only confusing. Or you could have mention that it will change filtering interface from eth0 to eth1.
There really isn't a straightforward way to do this. If you really need this done, check out CSF which handles things much more efficiently than APF has done in the past.
WHMCS Guru - WHMCS addons, management, support and more. WHMCS Notifications Extended - Add slack, hipchat, SMS, pushover to WHMCS !!
Linux Problems? WHMCS Issues? +1-866-546-8914 (linux-14) or @whmcsguru on twitter!