Iptables on host machine

vlx

Member
Jul 28, 2009
14
0
21
I'm trying to secure my host machine as much as I can, so I'm configuring iptables to restrict access to ssh, https and vnc ports only to few trusted addresses. Everything else is blocked. Next thing is to allow trafic to virtual machines. How can I do that? Don't have much expirience with iptables forwarding.

Default policy is DROP.

I tried with
iptables -I FORWARD -i vmbr0 -o tap111i5d0 -j ACCEPT
and
iptables -I FORWARD -i tap111i5d0 -o vmbr0 -j ACCEPT
but it doesn't work.

If I understood correctly, tap111i5d0 is virtual machines interface and traffic is forwarded to vmbr0.

What is the right way to do it?
 

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!