I'm trying to allow a host NTP access through
ASL (NTP port 123 in both directions) however, currently without success.
I think this is related to a Masq/NAT.
Looking at the packet filter logs I can see that I have the following filter/NAT rules:
Chain AUTO_OUTPUT (1 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT udp -- * * 0.0.0.0/0 ntpserver udp spts:1024:65535 dpt:123
Chain USR_INPUT (1 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT udp -- * * ntpserver externalIP udp spt:123 dpt:123
Chain USR_OUTPUT (1 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT udp -- * * externalIP ntpserver udp spt:123 dpt:123
Chain AUTO_NAT_OUT (1 references)
pkts bytes target prot opt in out source destination
0 0 DNAT udp -- * * ntpserver externalIP udp spt:123 dpt:123 to:NTPclientLAN:123
Chain AUTO_NAT_POST (1 references)
pkts bytes target prot opt in out source destination
0 0 SNAT udp -- * * NTPclientLAN ntpserver udp spt:123 dpt:123 to:externalIP:123
25 1520 MASQUERADE all -- * eth1 LAN 0.0.0.0/0
Chain AUTO_NAT_PRE (1 references)
pkts bytes target prot opt in out source destination
0 0 DNAT udp -- * * ntpserver externalIP udp spt:123 dpt:123 to:NTPclientLAN:123
I have setup the following NAT rules:
Private_network -> All/All, Src translation: MASQ_eth, Dst translation: none
NTPclient -> ntpserver / NTP, Src translation: to eth / NTP, Dst translation: none
ntpserver -> eth / NTP, Src translation: none, Dst translation: NTPclient / NTP
NTPclient is on LAN, ntpserver is on Internet.
I have the following packet rules:
eth, NTP, ntpserver, allow
ntpserver, NTP, eth, allow
However, from the packet filter violation log I have entries:
date, ntpclientIP, 123, ->, ntpserver, 123, udp
Seems like NAT'ing isn't working.
What am I doing wrong?
Initially I thought there might be a conflict with ASL using NTP (or ntpdate), but ASL uses an async. mode (client host port not equal to 123), and also, I use a different ntp server for ASL and another one for the LAN.
Why aren't NAT'ing ordered, like the packet filtering is? How is a package changed if it matches two NAT rules?
I'm looking forward to hearing from you!
Michael
[size="1"][ 15 October 2002, 07:48: Message edited by: Michael Jenner ][/size]
This thread was automatically locked due to age.