Koozali.org: home of the SME Server
Contribs.org Forums => General Discussion => Topic started by: Hagies 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.
-
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".
-
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.
-
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. :)
-
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.
-
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.
-
***** MORE INFO *****
It appears that something in runlevel 7 is killing the mgetty respawn. If I change to runlevel 3 mgetty works.
[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?
-
ahem... maybe putting
s0:23457:/sbin/mgetty -D ttyS0
in inittab? ;-)
-
ahem... maybe putting
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...)
-
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/.
-
I would add that this should be posted in the wiki
-
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
# 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.
# templates-custom for dial in
user001 * user001 *
And a couple of more files...
vi /etc/ppp/options.server
-detach
asyncmap 0
modem
crtscts
lock
proxyarp
ms-dns 10.105.1.1
vi /etc/ppp/options.ttyS0
10.105.1.50:10.105.1.150
netmask 255.255.255.0
I think that is it! YMMV Good luck!
-
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
-
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".