Smaug behind a cable modem router

Posted by Halomantis on Tue 20 May 2003 11:42 PM — 4 posts, 20,398 views.

#0
Ok I have win xp and a linxus router. When I start Smaug 1.4 I can access the game from my computer using Zmud. I can access the game from my wives computer (also with Zmud and she is on the network). But if someone tries to access the game from outside the network through the net they can't find it.

We have tried several things. Number one I have already set myself as the DMZ host. We have tried the IP address of my computer, the router, and the ip address the router uses for the net.

Can anyone provide me with any more ideas?
Australia Forum Administrator #1
I'll assume from your description that the MUD is running on the XP machine and not the router.

I gather you have a network like this - I'll make up the IP addresses, but it is probably similar:

  • Router: 10.0.0.1 (internal) and 123.45.67.89 (external)
  • Yourself: 10.0.0.2
  • Your wife: 10.0.0.3


You can connect to yourself using 10.0.0.2 or 127.0.0.1 (localhost).

Your wife can connect to 10.0.0.2.

Nobody can connect (from outside) to any of those addresses. Correct?

For a start, they certainly won't be able to connect to the internal addresses because they are non-routable (private IP addresses) so you can forget trying 10.0.0.1, 10.0.0.2 or 10.0.0.3.

Plus, the problem is that the only IP address you have that is visible on the Internet is not actually running the MUD.

What you need is Port Forwarding - this lets the PC that is on the Internet (the router) forward incoming calls to a specified PC. I am using OpenBSD and not Linux so I can't give you an example that works for me, but I picked this up from the Linux link I give below.


ipmasqadm portfw -a -P tcp -L 123.45.67.89 4000 -R 10.0.0.2 4000


What this says is to take incoming TCP messages on 123.45.67.89 port 4000 and forward them to where you want them to go - in this case 10.0.0.2 port 4000.

Maybe your version of Linux uses slightly different commands, but that is the place to look.

Doing a Google search on "port forwarding" and "linux" revealed a heap of resources. Here is one that seems similar to what you are doing:


http://www.ox.compsoc.org.uk/~steve/portforwarding.html
USA #2
It could be any number of things. Setting yourself as the DMZ host isn't always the magical answer. You'll also want to ensure that the Winxp firewall is off or at least configured properly. The best way to fix something like that, is start from scratch, bring down all of your firewalls, route everything you can think of, ect. To make sure it works that way. Then start to tighten the nuts and bolts of your securitym until it's as locked down as you can get without restricting what you want to work. The main thing I'd check is the WinXp firewall settings. If that's enabled, nothing from the outside would get in without a request from your box. Finally, if push comes to shove try bypassing the router, in other words connect your cable-modem directly to your computer (assuming your setup supports such a config).
#3
i know its a bit late for this. but i use a router and several puters connected to it running muds.

basically you go into the router config and select NAT and tell the router to point at a particular puter for each port your using.