Re: problems connecting to a lan from another subnet



On 31 Aug 2006, in the Usenet newsgroup comp.os.linux.misc, in article
<1157010492.796660.3550@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>, danish wrote:

Ive set up two server's using RHEL4:

1) one is acting as a Router
2) the other is acting as a development server

Router: two interfaces:
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

OK - on the router, have you set it to forward packets? This doesn't
happen by default because you have two interfaces. There's probably some
wonderful Red Hat Tool to configure this, but the bottom line is that
there should be a line in /etc/sysconfig/network that sets the variable
FORWARD_IPV4 to true. On boot, the network scripts check that variable,
and set/clear a kernel parameter (/proc/sys/net/ipv4/ip_forward) that
actually controls packet forwarding.

Im able to ping

the router (which knows both of it's addresses, but the ping response
only uses the eth1 network stack.

I cannot access any service on the office lan

Do the systems on the office LAN know how to reach 172.22.1.2, or are
you expecting them to follow the bread crumbs left by packets coming
from that host?

or the router from the development server,

What error messages? What is in the server logs? What does a packet
sniffer show? Are those services on the router _listening_ to the
eth1 interface (netstat -tuan will indicate this)?

but I can access the normal service of ssh and http on 172.22.1.2.

You can reach yourself - not relevant.

Old guy
.



Relevant Pages

  • Re: Multihomed - seperate subnets...
    ... >>server behind our router... ... > packets to return via that path. ... traffic coming in to eth1, to go back out the primary interface eth0. ...
    (Debian-User)
  • 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: ... I cannot access any service on the office lan or the router from the ... You'll need to execute a few iptables commands, ...
    (comp.os.linux.misc)