Re: problems connecting to a lan from another subnet



On 31 Aug 2006 00:48:12 -0700, danish staggered into the Black Sun and
said:
[I've] set up two [servers] using RHEL4. One is acting as a router,
the other is acting as a development server.

Router: eth0: running on dhcp, IP is 192.168.10.235, also connected to
my office lan. eth1: statically assigned IP: 172.22.1.1

Development server, statically assigned ip: 172.22.1.2
172.22.1.2 <--ping--> 172.22.1.1
172.22.1.2 <--ping--> 192.168.10.235

I cannot access any service on the office lan or the router from the
development server

Read the IP-Masqing HOWTO and follow the directions. The "router" is
not a router; it's a gateway--it can't really make routing decisions as
it only has 2 NICs. You'll need to execute a few iptables commands, and
"echo '1' > /proc/sys/net/ipv4/ip_forward" on the gateway.

I have shut down the firewall [on] both the machines.

Without a few iptables rules in place, nothing will work at all. I
don't use or recommend Redhat for anything, so I have no idea what its
"default firewall" does--but it's probably not the right thing. HTH,

--
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin / mail: TRAP + SPAN don't belong
http://www.brainbench.com / I don't practice what I preach, because I'm
-----------------------------/ not the kind of person I'm preaching to.
.



Relevant Pages

  • problems connecting to a lan from another subnet
    ... the other is acting as a development server ... Router: two interfaces: ... Development server, statically assigned ip: ... I cannot access any service on the office lan or the router from the ...
    (comp.os.linux.misc)
  • Re: problems connecting to a lan from another subnet
    ... Development server, statically assigned ip: ... OK - on the router, have you set it to forward packets? ... only uses the eth1 network stack. ...
    (comp.os.linux.misc)
  • Re: Ip forward
    ... the Linux box acts as GW for XP box. ... > that is the default gateway): ... I _assume_ it is connected _directly_ to the lan router but it ... > Linux ping correctly WinXp and the office lan. ...
    (comp.os.linux.networking)
  • Re: IMAP Server
    ... home and office lan and have never done this before. ... for the users on the lan co nnected by a router to the outside world. ... Cyrus, Dovcot or Courier? ...
    (alt.os.linux.suse)
  • Configuring Windows XP to be a VPN Server
    ... I want to connect from my laptop at my home to my office LAN, ... connect to de internet throu router. ... LAptop but I cannot find what to do at my office side, ...
    (microsoft.public.windowsxp.work_remotely)