Forward traffic to Suricata, NFQUEUE, PVEFW-IPS

bfwdd

Renowned Member
Mar 29, 2016
22
3
68
Dresden
www.bfw-dresden.de
I am actually trying to link Pve-IPS output to suricata. I am running suricata using the NFQ mode and im sending traffic to suricata with the gateway-scenario using the following cmd: # iptables -I FORWARD -j PVEFW-IPS

The problem is every time i restart the host the added rule is gone (-A FORWARD -j PVEFW-IPS) and there is no rules-file where i can modify it directly. It seems that proxmox generate the rules directly.

Any idea how can i solve this issue ??
Thanks
 
you could add a rules in /etc/network/interfaces for example

"post-up iptables ...."

(Like for nat, check the forum).

BTW,
proxmox firewall support it natively:

https://pve.proxmox.com/wiki/Firewall

Code:
# /etc/pve/firewall/<VMID>.fw

[OPTIONS]
ips: 1
ips_queues: 0
I tried this but, it seems that "post-up " runs before the iptables service so the rule will not be added to the table chain
 
Last edited: