[SOLVED] PVEFW Logs with custom rules

Mecanik

Well-Known Member
Mar 2, 2017
173
6
58
33
Hi,

I'm not sure if I asked the question already, checked but cannot find in my posts. Basically I have some custom iptables rules per VM/adapter and I do logging.

These logs go into the main node logs instead of the VM Firewall logs.

Bash:
/sbin/iptables -N ...
/sbin/iptables -A ... -m limit --limit 1/sec -j NFLOG --nflog-prefix  ':myprefix:...: '
/sbin/iptables -A ... -j DROP
/sbin/iptables -A ... -m comment --comment 'Log...'

Any way I can put the logs in the right place? Please advise.

Thanks
 
Last edited: