lkml.org 
[lkml]   [1998]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
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 13:41    [W:0.027 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site