Koozali.org: home of the SME Server

Automatic port forwarding?

Offline dtech

  • ***
  • 70
  • +0/-0
Automatic port forwarding?
« on: November 21, 2008, 06:15:05 PM »
Hi All;

I need to allow a client remote RDP access to a workstation behind an SME 7.3 server/gateway. I hesitate to set up port forwarding and leave it open at all times. First I'd be interested in opinions on the security issue of leaving a port forward to an XP box waiting for RDP, and secondly I'm wondering if anyone has done something like set up a cron job to run a script that would set up the port forwarding on a limited but predictable timetable.

Thanks in advance!

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Automatic port forwarding?
« Reply #1 on: November 21, 2008, 06:26:29 PM »
Hi All;

I need to allow a client remote RDP access to a workstation behind an SME 7.3 server/gateway. I hesitate to set up port forwarding and leave it open at all times. First I'd be interested in opinions on the security issue of leaving a port forward to an XP box waiting for RDP, and secondly I'm wondering if anyone has done something like set up a cron job to run a script that would set up the port forwarding on a limited but predictable timetable.

Thanks in advance!
I suggest you consider VPN, does not open up such vital ports to the whole world and can be restricted. For the user it seems like he/she is connected to the local network although connecting from the outside. The VPN connection should also put the client on the LAN side which means you do not need to open up anything more than the VPN port (which is terminated and guarded by you SME Server).
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Fumetto

  • *
  • 899
  • +1/-0
Re: Automatic port forwarding?
« Reply #2 on: November 21, 2008, 07:09:00 PM »
I try it but when use VPN for RDP have a problem...
Code: [Select]
Nov 21 16:56:05 server1 kernel: mppe_decompress[0]: osize too small! (have: 1404 need: 1405)
If use VNC over VPN ok, RDP connection have this problem...

I search a solution but so far not managed to solve the problem...

This problem is only for RDP connection and if use Client Access AS400 session, VNC is OK.

Some ideas on how to solve?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Automatic port forwarding?
« Reply #3 on: November 21, 2008, 07:36:18 PM »
ciao Fumetto

AFAIR RDP problem is due to packet fragmentation.. search on the forums for mtu, I remember something about it

HTH
Ciao

Stefano

Offline Fumetto

  • *
  • 899
  • +1/-0
Re: Automatic port forwarding?
« Reply #4 on: November 21, 2008, 08:24:32 PM »
It's possible... various MTU present... search and report...  :smile:

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Automatic port forwarding?
« Reply #5 on: November 22, 2008, 04:31:19 PM »
I try it but when use VPN for RDP have a problem...
Code: [Select]
Nov 21 16:56:05 server1 kernel: mppe_decompress[0]: osize too small! (have: 1404 need: 1405)
If use VNC over VPN ok, RDP connection have this problem...

I search a solution but so far not managed to solve the problem...

This problem is only for RDP connection and if use Client Access AS400 session, VNC is OK.

Some ideas on how to solve?
Have a look at this bug report, the feature should be implemented in 7.4: http://bugs.contribs.org/show_bug.cgi?id=549
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Fumetto

  • *
  • 899
  • +1/-0
Re: Automatic port forwarding?
« Reply #6 on: November 22, 2008, 04:47:23 PM »
I've upgrade a low-important server now... if all ok upgrade a production server and test again... thanks  :smile:

Offline Fumetto

  • *
  • 899
  • +1/-0
Re: Automatic port forwarding?
« Reply #7 on: November 23, 2008, 05:20:49 AM »
Have a look at this bug report, the feature should be implemented in 7.4: http://bugs.contribs.org/show_bug.cgi?id=549
I love you man...  :grin:

In version 7.3, I resolved with the changes mentioned in that report bugs, Monday update to 7.4 and see what happens ...

Thanks again!!!

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Automatic port forwarding?
« Reply #8 on: November 23, 2008, 11:00:56 AM »
I love you man...  :grin:

In version 7.3, I resolved with the changes mentioned in that report bugs, Monday update to 7.4 and see what happens ...

Thanks again!!!
Keep in mind that only updating will stil lhave the default settings that do not work for you, so after upgrading you will have to tweak the parameters to your needs.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Fumetto

  • *
  • 899
  • +1/-0
Re: Automatic port forwarding?
« Reply #9 on: November 24, 2008, 01:42:13 PM »
Upgrade done.
Version 7.3 was given this set of commands
Code: [Select]
#Log into the Console as root

#check the settings before changed
cat /etc/ppp/options.pptpd

#note mtu & mru settings

mkdir -p /etc/e-smith/templates-custom/etc/ppp/options.pptpd/
touch /etc/e-smith/templates-custom/etc/ppp/options.pptpd/mtu
touch /etc/e-smith/templates-custom/etc/ppp/options.pptpd/mru
signal-event remoteaccess-update

#check the settings are changed
cat /etc/ppp/options.pptpd

#note the absense of mtu & mru settings
After the upgrade to version 7.4, I checked with
Code: [Select]
cat /etc/ppp/options.pptpdand there was no need to give commands first cited to go all ... bug definitely resolved, I do only the tests with clients AS400 and then I can confirm the solution to a problem that has made me spend nights awake to study and try to understand

 :grin:

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Automatic port forwarding?
« Reply #10 on: November 24, 2008, 02:48:36 PM »
Upgrade done.
Version 7.3 was given this set of commands
Code: [Select]
#Log into the Console as root

#check the settings before changed
cat /etc/ppp/options.pptpd

#note mtu & mru settings

mkdir -p /etc/e-smith/templates-custom/etc/ppp/options.pptpd/
touch /etc/e-smith/templates-custom/etc/ppp/options.pptpd/mtu
touch /etc/e-smith/templates-custom/etc/ppp/options.pptpd/mru
signal-event remoteaccess-update

#check the settings are changed
cat /etc/ppp/options.pptpd

#note the absense of mtu & mru settings
After the upgrade to version 7.4, I checked with
Code: [Select]
cat /etc/ppp/options.pptpdand there was no need to give commands first cited to go all ... bug definitely resolved, I do only the tests with clients AS400 and then I can confirm the solution to a problem that has made me spend nights awake to study and try to understand

 :grin:
AFAIK a custom template is not needed anymore as you can set the MTU and MRU parameters from the configuration database now:

Code: [Select]
db configuration setprop pptpd mru xxx
db configuration setprop pptpd mtu xxx
Replace xxx with the desired values.

After that you can remove your custom template fragments and do the signal-event:
Code: [Select]
signal-event remoteaccess-update
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)