1

I have made a rough drawing of my network layout: Network image

The gateway, the two servers and the wifi router have a global IP address with a subnet mask of 255.255.255.240.

The PCs have local IP addresses in the 10.0.1.x range and a subnet of 255.255.255.0

What I need to do: Make the two servers accessible from the PC's local network and vice versa. The servers are running Ubuntu and the PCs are Windows, Ubuntu and Macs. Can this be accomplished by adding a route in the Ubuntu servers, or assigning them two IP addresses? I don't really know how to go about it.

Any help would be appreciated. Thanks!

Edit: More Info:

  • I don't have access to the gateway. It's provided by the ISP
  • The servers (and the gateway) have global IP addresses. That's why I can't combine them into a single network.
  • The router is an Apple Airport. I'm not sure of the model. But I don't think it can do much.

I understand that there is no definite solution to this with my current hardware and network topology. As some of you have pointed out, I can easily access the Servers from the PCs with LAN-speeds. I can live with that for now.

0

3 Answers 3

1

could you please post a traceroute from the pcs to one of the servers using its IP adress. (i think this should work fine, but not if you use the servers names as name resolution broadcasts do not cross subnet boundaries, which can be fixed by adding the servers ips and names to the hosts file)

the reverse could be tricky as the router is running nat. what ports do the servers need to acccess on the pcs?

1
  • Ideally, I would like the PCs and the servers to be visible to each other using Samba. As for the traceroute, I haven't really been able to run it yet. But I guess it should go directly through the wifi router to the server.
    – Akshay
    Dec 19, 2010 at 12:50
1

Actually this is quite a bit of routing in the question.

Problem with your setup.

  • Your typical wifi router usually would not support routes manually entered. If you want you can see if the firmware is replacable by e.g. openwrt, dd-wrt solutions, which are linux-based and can allow such modification.
  • You can consider setting up static routes & iptables rules that allows external network to go into the internal network. but remember, you have to setup the gateway so that the static routes points back to the wifi router that is properly configured.
  • setup a static route for 10.0.1.0/24 to the wifi router on the gateway
  • setup the e.g. iptables on the router so that it allow the two subnets be connected
1

As Weltenwanderer your PC's already should be able to access your server. The requests will go through the WIFI router just like connections to the Internet, that is the PC's can initiate a request and the servers will respond, but the servers cannot initiate a request to the PC's.

The easiest route would be to put the put the change your network so there is only a single network by moving the WIFI router to between the gateway and the switch so that the PC's and servers are both on the 10.0.1.x network and assign all the IP addresses to the router setup one-to-one NAT rules on the WIFI router. If you are using a consumer WIFI router it may not support this.

Another thought. What is that gateway in your diagram? Is that a firewall or router itself? You may be able to configure it to support multiple IP's and one-to-one NAT routing itself. If you can do that setup your network again so that everything is on the 10.0.1.x network and plug WIFI router in using one of it's switch ports, not the WAN port, so it acts only as an access point and not a router.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .