IP forwarding: I probably have it but didnt know that..

Jack Lehte (aromes@microtec.net)
Sat, 10 Oct 1998 02:53:05 +0200


Hi

I ve installed redhat5.0/kernel 2.0.32(which normally has no IP masquerade
compiled
in) and did recompile it for IP_masquerade kernel support, and I can tell
you that I do not see
any difference between the kernel with IP masquerade and the one without it:
Both have exactly the same following files with same contents:

#/proc/net/ip_masquerade:
Prc From IP F Prt TO IP Tprt Masq Init seq Delta Pdelta Expires (free=4096,$)
#/proc/net/ip_masqu_app:
Prot port attach name
#/proc/net/ip_autofw:
type prot low High Vis Hi dWhere last cpto cprt timer flags

#/proc/net/ip_forward:
IP firewall forward rules, default 4
#/proc/sys/net/ipv4/ip_forward
0 ( theres a "0" under this file!)

#/etc/sysconfig/network
NETWORKING=yes
FORWARD_IPV4=false

I) So, I guess that what makes the difference is how these files are
configured..right??
For exple, in /proc/sys/net/ipv4/ip_forward
if I put the number "1"
and in
/etc/sysconfig/network
NETWORKING=yes
FORWARD_IPV4=(I put "true" instead of false)...
that enables IP masquerade on my system ??

II) But what about the command "ipfwadm" that is actually impossible to run
on my actual linux
box recompiled for IP_masquerade?? should I simply download the ipwadm
package and install it as
..???
And IP_masquerade/forwarding would then run ok on my system??

Thanks

Jack Lehte
Technical support
Department,
School of Sciences
Edburgh,CA

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/