Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ Compiling the server
➜ LINUX SMAUG Server
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Thecrosan
(4 posts) Bio
|
Date
| Mon 21 Mar 2011 03:44 PM (UTC) |
Message
| I live in the US. I'm new at all of this. I've got several old computers and access to a lot of bandwidth and the fastest Internet that can be bought in my area. I'd like to host a MUD for my youngest brothers and their friends to play and build on because I enjoyed it when I was their age. I played on a SMAUG server for years and ended up as the asst. administrator because I built most of the areas used in the MUD myself. So I have lots of experience with area editing and some of the admin commands like race building etc. But I have no coding experience.
What would be the easiest way for me to host a SMAUG server?
Is there a SMAUG program available for Linux?
Is there a tutorial that will walk me through setting up the server, step by step from the very basics?
I have a MacBook pro with several virtual machines installed, including Linux and Windows XP. I have several old PCs with windows discs and licenses. I have access to the router and firewall and can do basic port forwarding.
I'd prefer to host on Linux because I'm just learning to use it.
But if there's an easy tutorial for windows then whatever.
Please post back. :-) | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #1 on Tue 22 Mar 2011 01:04 AM (UTC) |
Message
| Did you read this?
http://www.gammon.com.au/smaug/howtocompile.htm
Smaug compiles fine under Linux. That's what it is made to work with basically.
Try here for the latest source:
http://www.smaugmuds.org/ |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Thecrosan
(4 posts) Bio
|
Date
| Reply #2 on Tue 22 Mar 2011 08:03 PM (UTC) |
Message
| Thanks a lot! Great tutorials here! I got SMAUG running and it's working on my local network.
My brothers are very curious after seeing it last night. They want to play, but there is a firewall where I live that restricts incoming traffic.
Is there any way I could make some kind of telnet or ssh tunnel for them?
I tried something like ssh myip -R 4000:theirip:4000
OS Username
Password
And then had them try telnet myip 4000 but it didn't work. | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #3 on Tue 22 Mar 2011 08:40 PM (UTC) |
Message
| If there really is a firewall you may be in trouble, but you certainly need port forwarding.
http://portforward.com/
Otherwise the router won't send the incoming request to your PC. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Thecrosan
(4 posts) Bio
|
Date
| Reply #4 on Tue 22 Mar 2011 10:10 PM (UTC) |
Message
| I'm familiar with port forwarding using a routers ip and login to punch holes in the firewall. This is a simple Linksys router and ive set up VNC on one just like it on another network. But I was under the impression that you could create some type of reverse SSH tunnel without having to change router settings.
I just don't know enough about SSH and telnet to figure it out. | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #5 on Wed 23 Mar 2011 10:24 PM (UTC) Amended on Thu 24 Mar 2011 07:25 AM (UTC) by Nick Gammon
|
Message
| Well I got it to work in the end testing between a couple of local machines. One was Linux running Smaug, the other was a Windows PC.
First, your brothers need to have sshd (SSH daemon) running on their PCs so they can accept incoming calls.
I found this worked, after mucking around for about half an hour (I hope they are tech-heads!).
http://chinese-watercolor.com/LRP/printsrv/cygwin-sshd.html
They need to download and install Cygwin for a start and make sure you get the ssh package as part of the Cygwin install.
They also need to make sure they have a Windows account and password (ie. not password-less). This is so that ssh can actually connect to name/password.
Once all is done (and they have added the CYGWIN environment variable etc.) they should test by trying to connect to themselves, like this:
$ ssh localhost
The authenticity of host 'localhost (127.0.0.1)' can't be established.
RSA key fingerprint is FA:5C:7C:94:7D:28:8B:3F:29:6D:92:DD
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
If they don't get that far they need to tweak away until they do.
So they should ultimately be able to connect and disconnect from their own PC like this:
$ ssh localhost
Owner@localhost's password: <whatever>
Last login: Thu Mar 24 08:00:25 2011 from 10.0.0.2
Owner@nickgammone3b2 ~
# < --- we are connected via ssh here --- >
$ exit
logout
Connection to localhost closed.
$
Once you get that far, you can set up the tunnel on *your* PC (the Smaug server) like this:
$ ssh -nNf -R 10002:localhost:4000 mybrother@remote_ip
Now (if that worked) your brother connects to "localhost" port 10002 on his PC, and that should tunnel through to your server. In other word, localhost:10002 on his PC tunnels through to localhost:4000 (the Smaug server) on your PC (two different localhosts).
The meanings of the flags are:
- -n : Don't read from stdin as we will be in the background
- -N : Do not execute a remote command
- -f : Fork a background process
- -R : Tunnel remoteport:host:hostport (ie. port 10002 on his PC, port 4000 on your PC)
- mybrother@remote_ip : connect to username "mybrother" at site "remote_ip"
Once set up that background tunnel (on your PC) should be sitting there connected to your brother's PC (or PCs, if you do it more than once) accepting their attempts to play the game. It asks you for his password in order to make the secure connection to his PC. Maybe he would want to set up an account for you to tunnel into rather than disclosing his main password.
[EDIT]
I should point out, too, that the client PCs (your brothers) will need to open up their firewalls to allow incoming connections for SSH (port 22) so that the sshd can accept them from outside. And they may need to port forward port 22 from their router to their PC as well.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #6 on Wed 23 Mar 2011 10:27 PM (UTC) Amended on Wed 23 Mar 2011 10:28 PM (UTC) by Nick Gammon
|
Message
| |
Posted by
| Thecrosan
(4 posts) Bio
|
Date
| Reply #7 on Thu 24 Mar 2011 04:11 AM (UTC) |
Message
| This is great. Perused hours of other forums for this info and found nothing as comprehensive. Thank you very much for taking the time to do the research. This should be fun to try. | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
23,654 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top