Koozali.org: home of the SME Server

Network Setup to Access services via leased line

Offline warren

  • *
  • 293
  • +0/-0
Network Setup to Access services via leased line
« on: July 19, 2007, 08:50:21 AM »
Hi all,

I have a network connection scenario for a NGO that I'm unsure of the setup thereof and would appreciate some help in clearing the fuzz that set into the cranium.

Server is SME 7.1 ( all updates ) running in
Server/Gateway mode. Server is  co-located , with members of the NGO
accessing a customized ibay via VPN. They need to access a suppliers service - but only by a leased line (T1) directly into the supplier.

As I understand it, the local network function is to provide additionally specified networks , access to services on the SME box. So in order to access the suppliers service, would this be a case of adding a static route to SME ?


  Internet
     |
     |
     |
co-located Router
     |
     |======128k point to point=======>
     |
Switch
     |
     |
SME-Server



Thanks

Warren

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Network Setup to Access services via leased line
« Reply #1 on: July 19, 2007, 12:21:34 PM »
How many sites are you talking about?  I would normally use 'co-located' to mean that the SME server is at a 'co-location facility', which means 'NOT local to the users', giving me a network (in your situation) something like this:
Code: [Select]
Internet----SME
  |
  |
NGO_Internet_Router
  |        |
  |         \
Users        Router_to_supplier====>supplier


However, since you're having trouble I suspect your network is actually more like this:
Code: [Select]
Internet
  |
  |
NGO_SME
  |
Switch
  |   \
  |    \
Users   Router_to_supplier====>supplier


The 'local networks' option in SME does not do anything with routing tables - it only modifies firewall and access rules (allowing unauthenticated smtp relay,  for example).

In either case you should be able to get traffic from 'Users' to 'supplier' by adding a route to either each user's computer or to the system that acts as the default gateway for each user's computer (NGO_SME or NGO_Internet_Router).

You're likely to have some trouble doing this on the SME unless your Users can talk to 'supplier' without any NAT or PAT.  If you do NOT need NAT or PAT between your users & supplier you may be able to
Code: [Select]
route add -net 192.168.1.0/24 gw 192.168.200.3where:
- 192.168.1.0/24 is the supplier's network
- 192.168.200.3 is the IP address of Router_to_supplier

If you DO need NAT or PAT between you, you will also need to customize the iptables rules.

I have *no idea* how to template custom routes in SME, though...

You could also (with either configuration above) modify the routing table for each user (assuming windows and the same IP scheme used previously) using a batch file that says:
Code: [Select]
route add 192.168.1.0 mask 255.255.255.0 192.168.200.3You could make this route persist on each workstation through a reboot using route -p add 192.168.1.0 mask 255.255.255.0 192.168.200.3.  

Here's a link w/ more info: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/route.mspx?mfr=true

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Network Setup to Access services via leased line
« Reply #2 on: July 19, 2007, 03:19:32 PM »
Quote from: "mmccarn"

The 'local networks' option in SME does not do anything with routing tables - it only modifies firewall and access rules (allowing unauthenticated smtp relay,  for example).


You're not often wrong, but you are here :-)

The local networks panel does affect routing tables. In order for local networks to be reachable, the LAN router address must be provided, and the routing tables adjusted so that that router is used to reach that local network.

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Network Setup to Access services via leased line
« Reply #3 on: July 19, 2007, 04:13:57 PM »
Cool!  That should make warren's problem easy to solve!