Package: nftables
Version: 0.7-1
Severity: normal

Dear Maintainer, I'm trying to set simple dnat with nftables
The problem is: destination host is ignored:
When applying this construction:

table ip main {
        chain dstnat {
                type nat hook prerouting priority -100; policy accept;
                iifname "wan0" ip daddr 10.10.10.1 tcp dport 2210 dnat to 
172.17.18.1:22 # also tried with space before ":22"
        }
}

destination host is missing from result:

table ip main {
        chain dstnat {
                type nat hook prerouting priority -100; policy accept;
                iifname "wan0" ip daddr 10.10.10.1 tcp dport 2210 dnat to :22
        }
}
 

-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (900, 'testing'), (400, 'unstable'), (300, 'experimental')
Architecture: amd64
 (x86_64)

Kernel: Linux 4.9.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages nftables depends on:
ii  dpkg                 1.18.23
ii  init-system-helpers  1.47
ii  libc6                2.24-10
ii  libgmp10             2:6.1.2+dfsg-1
ii  libmnl0              1.0.4-2
ii  libnftnl4            1.0.7-1
ii  libreadline7         7.0-2
ii  libxtables12         1.6.0+snapshot20161117-6

nftables recommends no packages.

nftables suggests no packages.

-- Configuration Files:
/etc/nftables.conf changed [not included]

-- debconf-show failed

Reply via email to