VM firewall rule - Source -> Dest Port not working

Hugues Depasse

Renowned Member
Mar 2, 2016
7
1
68
35
Brussels, Belgium
Hello,

I'm trying to configure a port forwarding from 3390 to port 3389 but the rule does not work properly, the VM is directly accessible trough a dedicated public IPv4 so there's no NATing here.

My /etc/network/interfaces file :

Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

iface eth0 inet manual

auto eth1
iface eth1 inet dhcp

auto vmbr0
iface vmbr0 inet static
    address 62.210.XXXX
    netmask 255.255.255.0
    gateway 62.210.XXXXX
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0
    post-up echo 1 > /proc/sys/net/ipv4/ip_forward

Thanks a lot for your help
 
that is not portforwarding but an ACCEPT rule
the rule you configured lets all packets in on net0 wich is tcp and comes from port 3390 with a destination of 3389

port forwarding is not implemented in the gui (yet)