lkml.org 
[lkml]   [1998]   [Jan]   [5]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateMon, 5 Jan 1998 18:36:25 +0100 (MET)
From Andries.Brouwer@cwi ...
SubjectRe: sysctl, ip_forward[ing], Configure.help
    From alan@lxorguk.ukuu.org.uk Mon Jan  5 18:16:10 1998

    > fact was documented somewhere, e.g. by adding a sentence like
    >     You have to enable IP forwarding by doing
    >     echo "1" > /proc/sys/net/ipv4/ip_forward
    > (cc to Axel, just in case there will be a 2.0.34;
    This isnt correct. In 2.0.x you have to set forwarding at compile time
    unless using some vendors magically tuned krnel 

Have you ever caught me saying something incorrect?

Take your 2.0.33 source, look at net/ipv4/ip_input.c,
and read
                  if (sysctl_ip_forward) {
                          if (ip_forward(skb, dev, is_frag, ...
and later
                  if (sysctl_ip_forward) {
                          ...
                          if (ip_forward(skb, dev, is_frag, iph->daddr)) ...
Only de-masquerading masqueraded packets is done without
first checking the sysctl_ip_forward variable.
It is the variable sysctl_ip_forward that is set either
by sysctl or by accessing the above-mentioned proc file.
Without setting it masquerading will not work (with 2.0.33).

Andries




\
 
 \ /
  Last update: 2005-03-22 12:41    [W:2.380 / U:0.050 seconds]
©2003-2008 Jasper Spaans