IP forwarding for 2.2.x kernels

1999-05-02 Thread Debian project development discussion
Is there some magic involved with IP forwarding for the 2.2.x kernels?

I have a box with a brand-new Debian installation (slink), a custom-
built 2.2.5 kernel, and a pair of ne2000 ethernet cards.  I can ping
systems going out through both cards, so I know they are both working.
I just cannot get packets to route _through_ the system.  I have done
the arcane bit of magic mentioned in the kernel help file:
  echo 1  /proc/sys/net/ipv4/ip_forward
  echo 0  /proc/sys/net/ipv4/conf/eth0
  echo 0  /proc/sys/net/ipv4/conf/eth1

The routing appears to be correct.  I have specified routes to networks
through each of the ethernet cards and a default route to one of the
hosts on one of the networks.

Networking part of the kernel .config:
  #
  # Networking options
  #
  CONFIG_PACKET=y
  CONFIG_NETLINK=y
  CONFIG_RTNETLINK=y
  # CONFIG_NETLINK_DEV is not set
  CONFIG_FIREWALL=y
  # CONFIG_FILTER is not set
  CONFIG_UNIX=y
  CONFIG_INET=y
  # CONFIG_IP_MULTICAST is not set
  CONFIG_IP_ADVANCED_ROUTER=y
  CONFIG_RTNETLINK=y
  CONFIG_NETLINK=y
  # CONFIG_IP_MULTIPLE_TABLES is not set
  # CONFIG_IP_ROUTE_MULTIPATH is not set
  # CONFIG_IP_ROUTE_TOS is not set
  # CONFIG_IP_ROUTE_VERBOSE is not set
  # CONFIG_IP_ROUTE_LARGE_TABLES is not set
  # CONFIG_IP_PNP is not set
  CONFIG_IP_FIREWALL=y
  # CONFIG_IP_FIREWALL_NETLINK is not set
  CONFIG_IP_ALWAYS_DEFRAG=y
  # CONFIG_IP_TRANSPARENT_PROXY is not set
  # CONFIG_IP_MASQUERADE is not set
  CONFIG_IP_ROUTER=y
  # CONFIG_NET_IPIP is not set
  # CONFIG_NET_IPGRE is not set
  CONFIG_IP_ALIAS=y
  # CONFIG_SYN_COOKIES is not set

(Note that I have aliased eth1, to that there are two virtual networks
on that physical network, but I don't think that should affect this.)

I have a system with 2.0.35, through which packets route just fine, so I
don't think I'm totally lost.  I suspect I either mis-set something when
I built the kernel, or there is some new configuration that I don't know
about.  Someone please enlighten me.

Thanks,
David H. Silber


Please send Debian-related email to debian-user @ orbits.com.

For custom software, see:  http://www.SilberSoft.com/



Re: IP forwarding for 2.2.x kernels

1999-05-02 Thread Will Lowe
 Is there some magic involved with IP forwarding for the 2.2.x kernels?

Are you using IPCHAINS at all?  Are you trying to do NAT?

Will


--
| [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]   |
|   http://www.cis.udel.edu/~lowe/   |
|PGP Public Key:  http://www.cis.udel.edu/~lowe/index.html#pgpkey|
--
|   You think you're so smart,  but I've seen you naked  |
|  and I'll prob'ly see you naked again ...  |
| --The Barenaked Ladies,  Blame It On Me  |
--



Re: IP forwarding for 2.2.x kernels

1999-05-02 Thread David H. Silber
On Sat, May 01, 1999 at 11:18:23PM -0400, Will Lowe wrote:
  Is there some magic involved with IP forwarding for the 2.2.x kernels?
 
 Are you using IPCHAINS at all?  Are you trying to do NAT?

Yes to ipchains.  No to NAT.

David


Please send Debian-related email to debian-user @ orbits.com.

For custom software, see:  http://www.SilberSoft.com/



Re: IP forwarding for 2.2.x kernels

1999-05-02 Thread David H. Silber
On Sat, May 01, 1999 at 08:31:42PM -0700, Paul Nathan Puri wrote:
 On Sat, 01 May 1999 19:39:07 Debian project development discussion wrote:
 Is there some magic involved with IP forwarding for the 2.2.x kernels?
 
   # CONFIG_IP_MASQUERADE is not set
 
 IP MASQ should be set to y.

But I don't need to do address translation.  All I need is IP forwarding.
I don't think that IP forwarding depends upon IP masquerading.  (Quite
the contrary, in fact.)

Please correct me if I'm wrong.

Thanks,
David H. Silber


Please send Debian-related email to debian-user @ orbits.com.

For custom software, see:  http://www.SilberSoft.com/