Hi!

I am running a http server on my dynamic public IP. The only thing that
annoys me is that when clients on the http server connect to the public
IP, the packets get routed through my pppoe connection and back:

$ ifconfig pppoe0
pppoe0: [...] inet 217.190.91.237 --> 213.20.223.35 netmask 0xffffffff
$ traceroute -P 1 -n 217.190.91.237
traceroute to 217.190.91.237 (217.190.91.237), 64 hops max, 60 byte packets
 1  213.20.223.35  49.180 ms  48.480 ms  48.773 ms
 2  217.190.91.237  98.173 ms  98.30 ms  98.280 ms

How can I route those packets locally? I already tried a
pass out to (pppeo0) route-to 127.0.0.1@lo0
but this cannot work because the routing decision has already been made
when the packet passes an outbound rule.

A simple route add 217.190.91.237 127.0.0.1 helps, but not for long,
becauso the IP changes daily.

Is there some easier solution than daily changing the route with some
script?

Christopher

Reply via email to