Koozali.org: home of the SME Server

Dial in SME-Server Configuration?

Offline Hagies

  • 2
  • +0/-0
Dial in SME-Server Configuration?
« on: February 23, 2009, 10:20:26 AM »
Has anyone setup the sme-server to act as a dial in server but keeping the outgoing broadband gateway interface and the internal LAN interface active while an external 56k modem, connected on com1, communicates with an incoming 56k modem connection on a dedicated telephone line extention. If there is any info on the the configuration I would appreciate a pointer to it or any direct advice would be great. I need to set this configuration up as I have a dial up modem and do not have an DSL connection from a remote point only a dedicated telephone line extention. I have searched through our forum and "Googled" the subject but have found no info. Any help would be appreciated.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Dial in SME-Server Configuration?
« Reply #1 on: February 23, 2009, 05:16:34 PM »
SME server has no dial-in capability. At one stage there was a contrib, but I haven't heard of anyone using it for a long time. Most people use the VPN system for "dial-in".

Offline dgs

  • ***
  • 63
  • +0/-0
Re: Dial in SME-Server Configuration?
« Reply #2 on: February 23, 2009, 10:37:26 PM »
I've used a Netgear prosafe FR328S firewall on the wan side of SME, on those occasions I've had to wait for a broadband connection. This will allow a connection via a dial-in auto answer modem. But like anything dial-up it is Slowwwwwwwwwww and not particularly satisfying or useful if you wish to transfer files.


Offline OCB

  • *
  • 8
  • +0/-0
Re: Dial in SME-Server Configuration?
« Reply #3 on: June 28, 2009, 10:00:39 PM »
i'm using an old dial-in contrib from sme6 on 7.4 and it works perfectly for short maintenance over ssh if dsl and vpn aren't available. If you are still interested PM me. :)

Offline daniel

  • ****
  • 146
  • +0/-0
  • Platinum Sponsor
    • http://www.charton-mgmt.com
Re: Dial in SME-Server Configuration?
« Reply #4 on: June 29, 2009, 03:57:54 PM »
A while back I needed a contrib for a dial in connection.  If someone could point me in the right direction, I'd love to keep a copy of that in my toolbag.

Offline wires12

  • ***
  • 56
  • +0/-0
Re: Dial in SME-Server Configuration?
« Reply #5 on: October 27, 2009, 06:47:55 AM »
I could sure use a dial in!

I am trying to set up a dial in server on SME7.4. I have mgetty 1.1.31-14.e14 installed and if I issue

mgetty -x 7 ttyS0

on the command line the modem answers and connects. If I try the next step and add

s0:2345:/sbin/mgetty -D ttyS0

to /etc/inittab and do a kill -HUP 1 or kill -1 1 or /sbin/telinit q or init q the modem never answers. It even appears from looking at /var/log/mgetty.log.ttys0 that the modem never initializes like it does with mgetty -x 7 ttyS0.

Any ideas?

I would love a copy or link to the old contrib.
« Last Edit: October 28, 2009, 07:59:47 AM by wires12 »

Offline wires12

  • ***
  • 56
  • +0/-0
Re: Dial in SME-Server Configuration?
« Reply #6 on: October 28, 2009, 07:58:50 AM »
***** MORE INFO *****

It appears that something in runlevel 7 is killing the mgetty respawn. If I change to runlevel 3 mgetty works.

Code: [Select]
[root@ptax rc7.d]# init 7
[root@ptax rc7.d]# ps -ef |grep  mgetty
root     13451  4460  0 02:47 pts/0    00:00:00 grep mgetty
[root@ptax rc7.d]# init 3
[root@ptax rc7.d]# ps -ef |grep  mgetty
root     13877     1  0 02:47 ?        00:00:00 /sbin/mgetty -D /dev/ttyS0
root     13879  4460  0 02:47 pts/0    00:00:00 grep mgetty
[root@ptax rc7.d]# init 7
[root@ptax rc7.d]# ps -ef |grep  mgetty
root     14731  4460  0 02:47 pts/0    00:00:00 grep mgetty
[root@ptax rc7.d]#

Since runlevel 7 appears to only have S (startup) links what could be stopping mgetty from working?


Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Dial in SME-Server Configuration?
« Reply #7 on: October 28, 2009, 08:32:15 AM »
ahem... maybe putting
Code: [Select]
s0:23457:/sbin/mgetty -D ttyS0
in inittab? ;-)

Offline wires12

  • ***
  • 56
  • +0/-0
Re: Dial in SME-Server Configuration?
« Reply #8 on: October 28, 2009, 09:57:45 AM »
ahem... maybe putting
Code: [Select]
s0:23457:/sbin/mgetty -D ttyS0
in inittab? ;-)

well YES!

Actually: s0:respawn:23457:/sbin/mgetty -D ttyS0 added to the end of /etc/e-smith/templates/etc/inittab/90serial then template-expand /etc/inittab did the trick!


THANKS!

(I feel a bit stupid, but I had never heard of runlevel 7 until a few hours ago...)

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Dial in SME-Server Configuration?
« Reply #9 on: October 28, 2009, 02:22:50 PM »
Actually: s0:respawn:23457:/sbin/mgetty -D ttyS0 added to the end of /etc/e-smith/templates/etc/inittab/90serial then template-expand /etc/inittab did the trick!

You shouldn't be editing anything in /etc/e-smith/templates. Use /etc/e-smith/templates-custom/.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Dial in SME-Server Configuration?
« Reply #10 on: October 28, 2009, 02:35:31 PM »
I would add that this should be posted in the wiki

Offline wires12

  • ***
  • 56
  • +0/-0
Re: Dial in SME-Server Configuration?
« Reply #11 on: October 28, 2009, 05:17:44 PM »
This works for me assuming a modem on com1, server IP of 10.105.1.50, PPP IP of 10.105.1.150, DNS 10.105.1.1, netmask of 255.255.255.0.

Commands and keypresses are in bold, comments in italics, text entered into files in code blocks.

yum install mgetty

finish the install thing and then start making directories and files..

mkdir /etc/e-smith/templates-custom/etc               
mkdir /etc/e-smith/templates-custom/etc/inittab       
vi /etc/e-smith/templates-custom/etc/inittab/90serial


press i to go into insert editing and enter the following text

Code: [Select]
# templates-custom for dial in server
s0:23457:respawn:/sbin/mgetty -D ttyS0

press esc then : then x to save the file. Next we will expand the custom template into /etc/inittab, reread inittab and test.


expand-template /etc/inittab                           
init q                                                 
ps -ef | grep mgetty                                   


You should get back something like this:
root       672     1  0 11:43 ?        00:00:00 /sbin/mgetty -D ttyS0
root      1060  3667  0 11:44 pts/0    00:00:00 grep mgetty 

Next set up the PPP stuff.      

vi /etc/mgetty+sendfax/login.config

Look for this line:
#/AutoPPP/ -     a_ppp   /usr/sbin/pppd auth -chap +pap login debug
put the cursor on the # at the beginning of the line and press x then esc then : and x to save the changes.

Next we will make another custom template:


# mkdir /etc/e-smith/templates-custom/etc/ppp                           
# mkdir /etc/e-smith/templates-custom/etc/ppp/pap-secrets               
# vi /etc/e-smith/templates-custom/etc/ppp/pap-secrets/05dialup-password


you know what to do with vi now.

Code: [Select]
# templates-custom for dial in
user001 *       user001 *     

And a couple of more files...

vi /etc/ppp/options.server 
                           
Code: [Select]
-detach                     
asyncmap 0                 
modem                       
crtscts                     
lock                       
proxyarp                   
ms-dns 10.105.1.1
         
                                                 
vi  /etc/ppp/options.ttyS0
                           
Code: [Select]
10.105.1.50:10.105.1.150   
netmask 255.255.255.0   
   


I think that is it! YMMV Good luck!

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Dial in SME-Server Configuration?
« Reply #12 on: October 28, 2009, 06:15:13 PM »
wires12: please tell exactly how to edit your file, not how to do it with vi.. many people use other editors like joe, nano or pico

thank you

Offline wires12

  • ***
  • 56
  • +0/-0
Re: Dial in SME-Server Configuration?
« Reply #13 on: October 28, 2009, 07:26:28 PM »
wires12: please tell exactly how to edit your file, not how to do it with vi.. many people use other editors like joe, nano or pico

thank you

I was hoping that this would give enough information to allow someone more familiar with the style here to be "posted in the wiki" with a link from here.

Sorry, I just figured it would be easier to give complete instructions instead of something "editor agnostic".