[SOLVED] Add rules for SDN

vesuvienne

Member
Jun 7, 2024
82
3
8
hi team!
I'm wondering how to add rules for SDN simple bridge

can i add directly my config from /etc/network/interface to /etc/network/interface.d/sdn ?
i want this ssh rule for SDN
Code:
# ssh port forwarding
    post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 32768 -j DNAT --to 192.168.2.2:22
    post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 32768 -j DNAT --to 192.168.2.2:22

SOLVED: just configure the rule in /etc/network/interfaces and change the IP to match your VM SDN ip
 
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!