Oh wow, I didn't expect so extensive discussion.
Let me clarify things:
Here's my motivation to have own NTP server:
https://askubuntu.com/questions/14558/h ... ntp-server
I don't have atomic clock, but I want to have Stratum 1 time server, so I have GPS module.
Now the rules:
add action=dst-nat chain=dstnat comment="Force using local NTP Server" \
dst-port=123 in-interface-list=LAN protocol=udp src-address-list=\
"!NTP Server" to-addresses=10.0.0.100 to-ports=123
add action=masquerade chain=srcnat comment="Force using local NTP Server" \
dst-address-list="NTP Server" dst-port=123 out-interface-list=LAN protocol=\
udp
@rextended I can't have only dst-nat because it just don't work. @mkx explained it in his first post.
@anav about rules:
dst-port=123 -> port of NTP Server
in-interface-list=LAN -> all my LAN clients, wifi, guests, ethernet
protocol=udp -> protocol of NTP Server
src-address-list="!NTP Server" -> I don't want to rely only on GPS, I want to use also sources from Internet so I have to allow connect my NTP Server with other public NTP Servers. Without this my NTP Server could only communicate with himself
srcnat -> same config but for other chain.
@mkx I want to ask, what do you mean by another subnet, for eq. 10.1.0.0? Or some public IP from internet? I need to leave my own LAN?