[Bug 1397] New: What am I doing wrong!?

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Wed Jan 15 16:31:35 CET 2020


https://bugzilla.netfilter.org/show_bug.cgi?id=1397

            Bug ID: 1397
           Summary: What am I doing wrong!?
           Product: nftables
           Version: unspecified
          Hardware: x86_64
                OS: other
            Status: NEW
          Severity: normal
          Priority: P5
         Component: nft
          Assignee: pablo at netfilter.org
          Reporter: tad1073 at gmail.com

code snippet

table inet nat {
    chain prerouting {
        type nat hook prerouting priority dstnat; policy accept;
        fib saddr . iif oif 0 counter drop
        fib saddr . iif oif "lo" counter accept
        fib saddr . iif oif "$inet_if" counter accept
        fib daddr . iif type { local, broadcast, multicast } counter accept
        ip daddr 10.0.0.11 tcp dport 80 dnat to 8080
        ip daddr 10.0.0.11 udp dport 80 dnat to 8080
        ip daddr 10.0.0.11 tcp dport 80 redirect to 8080
        ip daddr 10.0.0.11 udp dport 80 redirect to 8080        
        ip6 daddr 2601:c3:8000:6680::11 tcp dport 80 dnat to 8080
        ip6 daddr 2601:c3:8000:6680::11 udp dport 80 dnat to 8080
        ip6 daddr 2601:c3:8000:6680::11 tcp dport 80 redirect to 8080
        ip6 daddr 2601:c3:8000:6680::11 udp dport 80 redirect to 8080
        counter accept
    }


$ sudo nft -c -f nat.nft
nat.nft:14:56-59: Error: Could not resolve hostname: Address family for
hostname not supported
        ip6 daddr 2601:c3:8000:6680::11 tcp dport 80 dnat to 8080
                                                             ^^^^

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20200115/f7ae6602/attachment.html>


More information about the netfilter-buglog mailing list