Linux Netfilter discussions
 help / color / mirror / Atom feed
* nftables static routing fails
@ 2020-01-13 21:13 david NEW
  2020-01-13 21:28 ` Daniel
  2020-01-13 21:40 ` Florian Westphal
  0 siblings, 2 replies; 5+ messages in thread
From: david NEW @ 2020-01-13 21:13 UTC (permalink / raw)
  To: netfilter

hi,

I am trying to route blocked ip set to IP:8080 where is info about "you 
have been blocked"

table ip raw {
     set bad_ip {'
         type ipv4_addr
         elements = { xxx.xxx.xxx.xxx }
     }

chain prerouting {

     type filter hook prerouting priority -500; policy accept;
     nft add raw preroute ip saddr @bad_ip tcp dport { 80, 443 } ip 
daddr set xxx.xxx.xxx.xxx tcp dport set 8080 notrack
}

}

netfilter doesn't complain about this rule but nothing 
happens...connection timed out and nothing happened. I see no errors in 
Apache2 logs.

I can see connection attempt in tcpdump but it is not redirected.

any suggestion, please?


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-01-13 22:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-13 21:13 nftables static routing fails david NEW
2020-01-13 21:28 ` Daniel
2020-01-13 21:40 ` Florian Westphal
2020-01-13 21:59   ` david NEW
2020-01-13 22:33     ` Florian Westphal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox