Koozali.org: home of the SME Server

port forward

Offline enchesss

  • **
  • 69
  • +0/-0
Re: port forward
« Reply #60 on: July 03, 2015, 10:48:38 AM »

Hopefully, this is the problem:

http://opensimulator.org/wiki/FAQ

Connecting to OpenSimulator

Quote
I've set up my OpenSimulator server and it looks like the login works but the client hangs on 'connecting to region' ... etc ... then you probably don't have a router that supports NAT loopback ...

I need to set up SME to do this if possible -- and hopefully this can be done using the dns solution provided earlier


Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: port forward
« Reply #61 on: July 03, 2015, 03:19:10 PM »
first of all, let me say that usually a client machine should not connect to another internal client using WAN address.. that's bad..

in any case, as you already found, you need NAT loopback working on SME.. I think you can achieve it with a custom template..

you'd find the right IPTABLES syntax and then adapt it; find them, try them directly.. if they work properly, let's work on a custom fragment/template

Charlie and others: I'm not a iptables guru and I've no experience with them.. if OP find the right rules, would you mind to help him? :-)
TIA

Offline enchesss

  • **
  • 69
  • +0/-0
Re: port forward
« Reply #62 on: July 04, 2015, 02:07:01 AM »
Hi Stefano,

Using IPTABLES to create a template for NAT Loopback would be great.

Just a thought though ...

Would it be better to direct focus on getting mono (and opensim) to run on the SME.

This would be a better solution for most people because they could then just use SME instead of two servers - and the NAT loopback would not be needed.

The Mono contribs links do not work.

There are some CentOS packages

http://www.mono-project.com/docs/getting-started/install/linux/

- but am not sure about their installation re: breaking SME in the process


Also - it would be good to run the mono instant of opensim in an ibay ??? Is this possible?


I am also working on an IPTABLES/ Masq solution.

Please be aware that atm the router is being used until opensim can temporarily be moved off site to work on the SME

Regards
« Last Edit: July 04, 2015, 02:08:33 AM by enchesss »

Offline enchesss

  • **
  • 69
  • +0/-0
Re: port forward
« Reply #63 on: July 04, 2015, 02:14:31 AM »
Hi Stefano,

Using IPTABLES to create a template for NAT Loopback would be great.

Just a thought though ...

Would it be better to direct focus on getting mono (and opensim) to run on the SME.

This would be a better solution for most people because they could then just use SME instead of two servers

however NAT loopback will still be an issue and as you say:

Quote
first of all, let me say that usually a client machine should not connect to another internal client using WAN address.. that's bad..

the NAT loopback would still be needed because opensim requires it.

Is there any way around this - if opensim is running on the sme?

e.g. by using a proxy (or DNS) to force the LAN clients to resolve the external ip to local sme ip from LAN?


To run opensim on the SME - mono is needed
 
The Mono contribs [http://wiki.contribs.org/Mono] links do not work.

There are some mono CentOS packages

http://www.mono-project.com/docs/getting-started/install/linux/

- but am not sure about their installation re: breaking SME in the process


Also - it would be good to run the mono instant of opensim in an ibay ??? Is this possible?


I am also working on an IPTABLES/ Masq solution. Using the information from here:

http://opensimulator.org/wiki/NAT_Loopback_Routers


Please be aware that atm the router is being used until opensim can temporarily be moved off site to work on the SME

Regards
« Last Edit: July 04, 2015, 03:47:55 AM by enchesss »

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: port forward
« Reply #64 on: July 04, 2015, 04:07:47 AM »
Using IPTABLES to create a template for NAT Loopback would be great.

What is "Nat loopback"?

Offline enchesss

  • **
  • 69
  • +0/-0
Re: port forward
« Reply #65 on: July 04, 2015, 04:08:50 AM »

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: port forward
« Reply #66 on: July 04, 2015, 05:09:04 AM »
http://opensimulator.org/wiki/NAT_Loopback_Routers

I don't see a definition or description there. Nor do I see why you would want or need it if you have split horizon DNS.

Offline enchesss

  • **
  • 69
  • +0/-0
Re: port forward
« Reply #67 on: July 04, 2015, 05:11:34 AM »
The definition or description is under the heading:

Linux specific solutions

SETTING UP A LINUX COMPUTER TO ACT AS A ROUTER

this is the 3rd last heading on the page


Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: port forward
« Reply #68 on: July 06, 2015, 06:29:29 PM »
The definition or description is under the heading:

Linux specific solutions

No, that is just an iptables script. It's neither a description, nor a definition. It's a tautology to say that the script is a definition.

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: port forward
« Reply #69 on: July 06, 2015, 06:48:59 PM »

Offline ReetP

  • *
  • 3,740
  • +5/-0
Re: port forward
« Reply #70 on: July 06, 2015, 08:36:19 PM »
Blimey stefano.. your're getting brave! :-D
« Last Edit: July 06, 2015, 08:47:11 PM by Stefano »
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: port forward
« Reply #71 on: July 06, 2015, 08:47:35 PM »
only older but not wiser, my friend

[sorry, I edited your post, Reetp, my fault.. ]

Offline ReetP

  • *
  • 3,740
  • +5/-0
Re: port forward
« Reply #72 on: July 06, 2015, 08:49:31 PM »
Hehehe..

As they say...

It is a wise man who has second thoughts first

:-)
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: port forward
« Reply #73 on: July 07, 2015, 01:55:40 PM »

Offline enchesss

  • **
  • 69
  • +0/-0
Re: port forward
« Reply #74 on: July 07, 2015, 02:57:31 PM »
What type of tautology?
https://en.wikipedia.org/wiki/Tautology

Would it be logical or truthful to suggest adding a toggle switch in the server-manager console that implements an nftables route or masq or iptables script?

https://en.wikipedia.org/wiki/Nftables

or just a philosophically sound suggestion?
« Last Edit: July 07, 2015, 03:06:01 PM by enchesss »