Top Mud Sites Forum Return to TopMudSites.com
Go Back   Top Mud Sites Forum > Mud Development and Administration > MUD Administration
Click here to Register

Reply
 
Thread Tools
Old 03-11-2010, 09:51 PM   #1
Threshold
Legend
 
Threshold's Avatar
 
Join Date: Apr 2002
Home MUD: Threshold RPG
Posts: 1,240
Threshold will become famous soon enough
Easiest way to point alternate ports to the same port.

Since its opening, Threshold has run on port 23. This was generally most convenient for people as it is the primary telnet port. Also, it was the least likely port to be blocked by schools or work.

Flash forward 14 years, and now there are workplaces that block port 23 occasionally.

I'd like to give my players more options, so I was wondering if anyone had a suggestion for the best/easiest ways to have other ports forward to 23.

Since I don't like to take Threshold down very often, the simplest, most reliable method would definitely be appreciated.
Threshold is offline   Reply With Quote
Old 03-12-2010, 01:30 AM   #2
Newworlds
Legend
 
Newworlds's Avatar
 
Join Date: Aug 2007
Name: NewWorlds
Home MUD: New Worlds
Posts: 1,382
Newworlds will become famous soon enoughNewworlds will become famous soon enough
Re: Easiest way to point alternate ports to the same port.

Quote:
Originally Posted by Threshold View Post
Since its opening, Threshold has run on port 23. This was generally most convenient for people as it is the primary telnet port. Also, it was the least likely port to be blocked by schools or work.

Flash forward 14 years, and now there are workplaces that block port 23 occasionally.

I'd like to give my players more options, so I was wondering if anyone had a suggestion for the best/easiest ways to have other ports forward to 23.

Since I don't like to take Threshold down very often, the simplest, most reliable method would definitely be appreciated.
My best advice is to do what we do at NWA (if you don't already) and setup a secondary instance of your game on another port, say port 5023. You will do this in order to test out this setup prior to knocking down the live version of Threshold (although, theoretically this should work without taking down the game at all).

After you got your backup (secondary) game running, then try this assuming the port your want to redirect is 5000 to port 5023:

iptables -A INPUT -i eth0 -p tcp --dport 5000 -j ACCEPT
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 5000 -j REDIRECT --to-port 5023

Then try connecting via port 5000 and see if it redirects and connects to port 5023.

If this works just change this to the following:

iptables -A INPUT -i eth0 -p tcp --dport 5000 -j ACCEPT
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 5000 -j REDIRECT --to-port 23

And wallah! Anyone porting to 5000 (or any other port you choose) should redirect to your live game on 23.

Remember you are dealing with iptables so be judicious and careful. These instructions assume you have full root access and administration rights of your server. Might even want to play around with these commands on a secondary homebase linux box with Redhat or similar system running to ensure proper operation.

Good Luck!
Newworlds is offline   Reply With Quote
Reply


Thread Tools


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -4. The time now is 03:38 PM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Style based on a design by Essilor
Copyright Top Mud Sites.com 2014