Koozali.org: home of the SME Server

router / gateway

Offline jvels

  • ****
  • 130
  • +0/-0
    • http://vels.dk
router / gateway
« on: October 23, 2007, 03:15:10 PM »
Hi

If I use my SME 7.x as internet gateway / router is it possibel to make this...:

I have 2 clients computers behinde SME server:
client 1 I need to run a fx. a windows 2003 server
client 2 I need to rune something else...

I have only 1 IP address from my ISP, so is it possibel if I access mydomain1.com:80 redirect traffic to client 1 and if I go to mydomain2.com:80 traffic is redirectet to client 2.

Is it possibel?

Best Regrads
Jesper Vels

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: router / gateway
« Reply #1 on: October 23, 2007, 03:20:22 PM »
Proxy Pass does what you want, but may have issues with https connections:
http://wiki.contribs.org/SME_Server:Documentation:FAQ#Proxy_Pass
http://bugs.contribs.org/show_bug.cgi?id=3481

Offline jvels

  • ****
  • 130
  • +0/-0
    • http://vels.dk
Re: router / gateway
« Reply #2 on: October 23, 2007, 03:27:37 PM »
Hi

Is it only possibel with http?
Or can I do the same with fx ftp or SSH?

/Jesper Vels

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: router / gateway
« Reply #3 on: October 23, 2007, 04:06:35 PM »
FTP you would have to do either using port forwarding, or by using smbmount to 'mount' a share from the various internal servers to ibays on your SME.

SSH you can do with port forwarding pretty easily - 2221->host1, port 22; 2222->host 2, port 22

Neither ftp nor ssh will let you re-direct to different internal hosts based on the hostname the remote user specified (as far as I know).

Offline arne

  • *****
  • 1,116
  • +0/-4
Re: router / gateway
« Reply #4 on: October 24, 2007, 08:49:07 PM »
But a ssh tunnel will get you access to any server on lan. The ssh tunnel can be set up using Putty at a WinXP or using the standard ssh client on a Linux server or workstation. Winscp from WinXP and trough that tunnel will give you full graphical file management. Internal server of any typa can generaly be accest trough that tunnel. Servers on lan will not be available "the ordnary way" on internet but only trough that tunnel that has to be set up first. (Google on ssh tunneling and Putty.)

By the way .. as far as I remember .. ftp will not be able to pass trough the ssh tunnel, but winscp will do it.
......