<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Andrej Moravcik escribió:
<blockquote cite="mid:4D0E8D5C.30304@datalock.sk" type="cite">
<pre wrap="">Hello Jose,
from the picture you provided the situation looks pretty simple.
- you have enabled IP forwarding on router, I recommend you to put it
into /etc/sysctl.conf for persistence.
- you have configured firewall rules on router to allow forwarding
traffic from left to right subnet. You can also try to set up ACCEPT
policy just for testing.
- the default gateway for left subnet is 192.168.1.1 (you mentioned
router for Internet access). Correct me if I'm wrong.
- the default gateway for right subnet I assume is 192.168.236.74. You
don't have to do anything with routing here. Every host in right subnet
knows where to send replies.
- the problem seems to be missing routing information in left subnet.
Hosts don't know anything about the right subnet and thus send requests
to the default gateway 192.168.1.1.
- modifying routing table on every host in left subnet can be solution
in case, if there is only a few hosts which need to access right subnet
- if you need to have fully accessible subnets, put the static route to
default gateway 192.168.1.1 to redirect requests to proper gateway. If
it is Linux gateway, try something like this
[root@default-gw]# ip route add 192.168.236.0/24 via 192.168.236.74
Regards
Andrej
Jose Maria Terry Jimenez wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I have a CentOS 5.5 machine with 2 nics each one configured to work in
one of the nets. The CentOS also uses a router for Internet access that
is 192.168.1.1.
192.168.1.0/24 >-----192.168.1.100--[CentOS Machine]--192.168.236.74
--------< 192.168.236.0/24
</pre>
</blockquote>
<pre wrap=""><!---->
_______________________________________________
CentOS mailing list
<a class="moz-txt-link-abbreviated" href="mailto:CentOS@centos.org">CentOS@centos.org</a>
<a class="moz-txt-link-freetext" href="http://lists.centos.org/mailman/listinfo/centos">http://lists.centos.org/mailman/listinfo/centos</a>
</pre>
</blockquote>
Thank you very much, Andrej.<br>
<br>
Today i couldn't test this, but default gateway for right subnet is
192.168.236.21 and i can't change anything in that router and many
machines of that network, i only admin a few there.<br>
<br>
Best,<br>
<br>
<br>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<br>
Scanned with <a href='http://www.copfilter.org'>Copfilter</a> Version 0.84beta3a (<a href='http://memberwebs.com/nielsen/software/proxsmtp'>ProxSMTP</a> 1.6)<br>
AntiVirus: <a href='http://www.clamav.net'>ClamAV</a> 0.95.2/12419 - Mon Dec 20 17:17:01 2010<br>
by Markus Madlener @ <a href='http://www.copfilter.org'>http://www.copfilter.org</a><br>
<br>
</body>
</html>