Seriously confused about linux routing



Ok, so, what I'm trying to do is to route between to 10.0.0.0/16
subnets.

There are two computers, connected via VPN, that are involved with the
routing.

Server 1: IP Address 10.10.0.1 and 192.168.1.1
Server 2: IP Address 10.15.0.2 and 192.168.1.2

The VPN is connecting the computers via the 192. addresses. I'm
trying to route traffic originating at 10.10.0.0/16 and direct it to
the 10.15.0.0/16 subnet and vise versa, also, beyond that, I'm trying
to route all internet-bound traffic on 10.10.0.0/16 out through the
10.15.0.0/16 network.

I have enabled ip_forward on both servers ( echo 1 > /proc/sys/net/
ipv4/ip_forward and editted /etc/sysctl.conf for future reboots, etc.)


So far, for the routing tables, on Server 1:

192.168.1.0 0.0.0.0 255.255.255.0 U 0 0
0 eth1
10.10.0.0 0.0.0.0 255.255.0.0 U 0 0 0
eth0
10.15.0.0 192.168.1.2 255.255.0.0 UG 0 0 0
eth1
0.0.0.0 192.168.1.2 0.0.0.0 UG 0
0 0 eth0

On Server 2:

192.168.1.0 0.0.0.0 255.255.255.0 U 0 0
0 eth1
10.15.0.0 0.0.0.0 255.255.0.0 U 0 0 0
eth0
10.10.0.0 192.168.1.1 255.255.0.0 UG 0 0 0
eth1
0.0.0.0 10.15.0.1 0.0.0.0 UG 0 0
0 eth0

It appears that these two servers can communicate, and even access
computers on the other subnets, however, I'm having problems with the
internet connection from 10.10.0.0/16 routing out through the
10.15.0.0/16 (10.15.0.1 gateway specifically).

How can I get this to work?

Thanks

.



Relevant Pages

  • Re: problem after adding second network card
    ... Until yesterday we were running via 1 NIC in the server that was connected ... The other computers were directly connected to the router too. ... turned off in the router and the server had DHCP running. ... server was connecting to the internet on the same NIC as the one connected ...
    (microsoft.public.windows.server.sbs)
  • Re: problem after adding second network card
    ... Until yesterday we were running via 1 NIC in the server that was connected ... The other computers were directly connected to the router too. ... turned off in the router and the server had DHCP running. ... server was connecting to the internet on the same NIC as the one connected ...
    (microsoft.public.windows.server.sbs)
  • Re: Help: Apache Server through Alcatel 570 Wireless Cable Modem
    ... so it's connected directly to a switch ... >and 4 Ethernet connected computers. ... >Server, but have not had any success in connecting to it. ...
    (comp.security.firewalls)
  • Re: Debain as gigabit router?
    ... I run a debian server with two 100Mb ethernet cards in to act as a router/firewall AND web server, tomcat applications server, mail server, fileserver, print server, name server, dhcp server etc etc. ... The maximum number of client computers running at the same time in our internal net is probably around a couple of hundred This works without any problems. ... I have however seen some tests of iptables and routing on double 1gb/s nics and it seems that iptables don't really scale that well. ... That would yield 1,25 million pps. ...
    (Debian-User)
  • Re: VPN question.
    ... How do I access the other computers? ... I only see the server I am connecting ... >> I have set up a VPN server with a Linksys router that allows only one ...
    (microsoft.public.windowsxp.work_remotely)