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