Hi,

for every address of a local interface a loopback route is created on
demand.
Those routes look like the second one here:

192.168.123.252/30 link#3             UC         1        0     -     4 vr2
192.168.123.253    00:0d:b9:24:60:42  UHLc       0        4     -     4 lo0

But this mechanism does somehow not work for Point to Point interfaces like
pppoe(4) or tun(4). The only routes I get here are the following; the
first one being created by the netstart script like suggested in
pppoe(4).

default            213.20.223.35      UGS        3     2190     -     8
pppoe0
213.20.223.35      217.190.92.137     UH         0        0     -     4
pppoe0

I would like to automatically add a route

217.190.92.137     127.0.0.1          UGHS       0        0 33196     8 lo0

So that local processes talking to my public IP won't get routed to my
ISP and back. The problem is that the IPs are dynamic.

What confuses me is that packets arriving on a local lan interface with
a destination to my public IP already get routed via the loopback
interface. This leads to the strange situation that connections from
lan are faster than connections from localhost.


Christopher

Reply via email to