Forward traffic to Suricata, NFQUEUE, PVEFW-IPS

bfwdd

Renowned Member
Mar 29, 2016
17
2
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:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!