mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-07-31 14:41:15 +08:00
15 lines
476 B
Plaintext
Executable File
15 lines
476 B
Plaintext
Executable File
#!/usr/sbin/nft -f
|
|
|
|
table ip intp {
|
|
chain PREROUTING {
|
|
type nat hook prerouting priority dstnat; policy accept;
|
|
meta l4proto udp udp dport 123 counter packets 0 bytes 0 jump ntp_force_local
|
|
}
|
|
|
|
chain ntp_force_local {
|
|
ip daddr 0.0.0.0/8 counter packets 0 bytes 0 return
|
|
ip daddr 127.0.0.0/8 counter packets 0 bytes 0 return
|
|
ip daddr 192.168.0.0/16 counter packets 0 bytes 0 return
|
|
ip saddr 192.168.0.0/16 counter packets 0 bytes 0 dnat to 192.168.10.1
|
|
}
|
|
} |