The HyperNews Linux KHG Discussion Pages

## Changing IP packets destined for a gateway

  Forum: Network Buffers And Memory Management
  Keywords: IP Packets routeing
  Date: Thu, 15 Jan 1998 13:38:58 GMT
  From: Ian Carr-de Avelon <ian@emit.com.pl>

`I want to intercept IP packets which are destined for a gateway and if the source address is within a certain range send it to another gateway. I first assumed that I could do that within ip_forward, but that is only called for packets which are being routed through. Some of the packets which I am interested in come from the host machine. Any ideas on the easiest place to achieve this would be appreciated. Why I want to do this ===================== I have 2 connections to the Internet, but the IP-numbers are seperate from each up stream provider therefore the default route needs to depend on the source IP. Ian`

Messages