OPNsense Forum

Archive => 20.7 Legacy Series => Topic started by: andrema2 on November 12, 2020, 03:46:16 pm

Title: Rule creation for only one connection at a time
Post by: andrema2 on November 12, 2020, 03:46:16 pm
Hi all

I'm trying to use Greenbone community feed server (Vulnerability Manager). When I try to download its rules it fails. According to their forum their FW is set in a way that only accepts one connection per IP and I should have not a FW or NAT between us. This is impossible for me. Below is how they say their FW is configured:

Code: [Select]
REJECT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:873 flags:0x17/0x02 #conn src/32 > 1 reject-with tcp-reset
ACCEPT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:873 flags:0x17/0x02

I'm connection to their IP 45.135.106.142. Is there any way I can create a rule that would make it work, forcing only one connection at a time and resetting it when finished ?

Thanks
Title: Re: Rule creation for only one connection at a time
Post by: andrema2 on November 13, 2020, 02:33:50 pm
Hi,

Is it impossible to be accomplished ?

Thanks
Title: Re: Rule creation for only one connection at a time
Post by: Fright on November 13, 2020, 04:22:06 pm
it doesn't look like you need to do something on the opn

https://community.greenbone.net/t/no-community-feed/6453/9

that is, it is only a matter of the number of tcp sessions. if your GCE gracefully closes tcp session to OPN, OPN closes the corresponding session to GCF (with corresponding _WAITs).
you can limit number of sessions on pf but it doesn't seem like the problem is this