Linux Netfilter discussions
 help / color / mirror / Atom feed
* transparent proxying NTP
@ 2004-06-27 19:43 Folkert van Heusden
  2004-06-27 20:17 ` Dimitar Katerinski
  2004-06-27 20:19 ` Leonardo Rodrigues Magalhães
  0 siblings, 2 replies; 9+ messages in thread
From: Folkert van Heusden @ 2004-06-27 19:43 UTC (permalink / raw)
  To: netfilter

Hi,

I'm trying to do transparent proxying for NTP.
I want to do that as some access points I have over here want to sync their
time to some server in Amerika. Not so efficient as I live in europe and
have in fact my own local stratum 1 timeserver.
So, I tried this:
iptables -t nat -A PREROUTING -i eth1 -s ! 192.168.64.1 -p udp --dport 123 -j DNAT --to 192.168.64.1:123
iptables -t nat -A POSTROUTING -o eth1 -s 192.168.0.0/16 -d 192.168.64.1 -j SNAT --to 127.0.0.1

But when I do a tcpdump on ppp0 of my gateway (the adsl connection) and do
netdate ntp.xs4all.nl from a host on my lan (192.168.64.99), I still see
requests coming from that host to the internet!
I guess I'm doing something obvious wrong here but I'm not sure what.
Could someone please enlighten me?


Folkert van Heusden

+--------------------------------------------------------------------------+
| UNIX sysop? Then give MultiTail ( http://www.vanheusden.com/multitail/ ) |
| a try, it brings monitoring logfiles to a different level! See:          |
| http://www.vanheusden.com/multitail/features.html for a feature list.    |
+---------------------------------------------------= www.vanheusden.com =-+



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

end of thread, other threads:[~2004-06-28 15:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-27 19:43 transparent proxying NTP Folkert van Heusden
2004-06-27 20:17 ` Dimitar Katerinski
2004-06-27 20:46   ` Leonardo Rodrigues Magalhães
2004-06-27 20:48     ` Dimitar Katerinski
2004-06-28 14:45     ` Folkert van Heusden
2004-06-28 15:09       ` Dimitar Katerinski
2004-06-27 20:19 ` Leonardo Rodrigues Magalhães
2004-06-28  2:13   ` Dick St.Peters
2004-06-28 14:38   ` Folkert van Heusden

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