Firewall proxmox

naturlight

Member
Jan 2, 2011
65
0
6
Hello everybody

I tried to install some rules iptables to protect my network.
I created 2 rules :

  • The first to limit the flood udp
  • The second to limit synflood

Code:
iptables -A FORWARD -p udp -m physdev --physdev-in tap"$1"i0d0 --physdev-out eth0 -m state --state NEW -j ACCEPT
iptables -A FORWARD -p udp -m physdev --physdev-in tap"$1"i0d0 --physdev-out eth0 -m limit --limit 10/s --limit-burst 5 -j ACCEPT
iptables -A FORWARD -p udp -m physdev --physdev-in tap"$1"i0d0 --physdev-out eth0 -j DROP

Code:
iptables -N syn_flood
iptables -A FORWARD -p tcp -m physdev --physdev-in tap"$1"i0d0 --physdev-out eth0 --syn -j syn_flood
iptables -A syn_flood -m physdev --physdev-in tap"$1"i0d0 --physdev-out eth0 -m limit --limit 2/s --limit-burst 5 -j RETURN
iptables -A syn_flood -j DROP

Where $1 is my VMID.
I tried to flood upd & synflood an other Virtual server on an other host with succes :( so i presume it's not working and iptables show me 0DROP.

Any idea ?

Regards
 
Oups now it's working, just change tap to vmtab and it's work !
Any body have fin rules to prevent outgoing attack ? (slowloris, flood udp, synflood, etc)

Regards
 

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!