Situation: I have an alias IP.
When data is sent to that IP from remote, the LAN gateway sends an ARP, Request who-has for it, and as long as my interface has this alias IP configured, there will be a permanent entry in arp, and data is received.
Then, as this alias IP is configured on the interface, the packet will be delivered locally.
Problem: I don't want this. I want these packets to be gatewayed; I want them to enter the routing table and be transported somewhere onwards.
The proper way to achieve this would probably be, to configure the routing table in the LAN router so that it does not search for a final destination via ARP, but considers my machine as the next-hop router for that IP.
Suppose I cannot do this. Are there any tricks within FreeBSD to achieve the desired result?
That would be, have an ARP response created to tell the LAN router that it can put these packets onto my interface, but then have FreeBSD not try to deliver the packet locally, but instead consult the local routing table and find a next hop.
When data is sent to that IP from remote, the LAN gateway sends an ARP, Request who-has for it, and as long as my interface has this alias IP configured, there will be a permanent entry in arp, and data is received.
Then, as this alias IP is configured on the interface, the packet will be delivered locally.
Problem: I don't want this. I want these packets to be gatewayed; I want them to enter the routing table and be transported somewhere onwards.
The proper way to achieve this would probably be, to configure the routing table in the LAN router so that it does not search for a final destination via ARP, but considers my machine as the next-hop router for that IP.
Suppose I cannot do this. Are there any tricks within FreeBSD to achieve the desired result?
That would be, have an ARP response created to tell the LAN router that it can put these packets onto my interface, but then have FreeBSD not try to deliver the packet locally, but instead consult the local routing table and find a next hop.
Last edited: