Resend my activation email : Register : Log in 
BCF: Bike Chat Forums


2 servers, 1 router, 2 DDNS

Reply to topic
Bike Chat Forums Index -> The Geek Zone
View previous topic : View next topic  
Author Message

orac
World Chat Champion



Joined: 25 Sep 2011
Karma :

PostPosted: 11:05 - 02 Dec 2016    Post subject: 2 servers, 1 router, 2 DDNS Reply with quote

I have a server that has a domain and runs quite happily providing port 80and 443 are forwarded. I have just obtained some PIC based servers, old end of line things (I have three of them)

So to be able to access 1 of them outside of my home network setup a DDNS with no-IP, only to find that I cant open port 80 to the PIC server.

If I open the port for the pic server I can use both addresses to access it, or open the port for the server I can use both addresses to access it.

Currently using a TP-link n600 router.
I would like to maybe in the future get things setup so that I can use all three PIC servers at the same time. I suspect more hardware is going to be needed.


Oh nearly forgot, each server has a fixed IP on the network
____________________
Current rides - 2016 Triumph Street Triple Rx, 1994 Suzuki Bandit 400 VM, TGB 204 Classic 125cc
"with nothing left to lose, there is everything to gain. It's not the size of the dog in the fight, it's the size of the fight in the dog"
 Back to top
View user's profile Send private message You must be logged in to rate posts

colink98
Could Be A Chat Bot



Joined: 27 Jun 2016
Karma :

PostPosted: 11:40 - 02 Dec 2016    Post subject: Reply with quote

You cannot forward the same port for one external IP to 2 internal IP addresses.

as the router would not know which internal IP address the connection was intended for.

you have X choices.

alter the port on the PIC based server to 81/82/83/84 and so forth.
then set a new port forward on the router to say forward External IP port 81 to PIC internal IP address on port 81.

external you would then connect to each pic server by using
no_ip_address:81 /82 /83 etc

or

if your router is smart enough you can use Port translation.
and the PCI based server HAS to be on port 80
External IP port 80 - Internal IP port 80
External IP port 81 - different Internal IP port 80
External IP port 82 - a third internal IP port 80

you would access each server via
no_ip_address:81 /82 /83 etc
however be mindful not all routers will support it and some servers can get funky about the port being changes.

or

you get 2 or more external IP addresses.
(if you ISP will provide and your router can handle it)
then External IP 1 port 80 -> internal IP 1 port 80
Extneral IP 2 port 80 -> internal IP 2 port 80

or

get super funky IT wise and impress all your mates.
On you existing internal port 80/443 server set up a couple of pages which use an iframe to display the contents of the PIC server using its private IP and port 80.

the chances of this option working is going to be directly dependant on the contents that is being displayed in the iframe and the dynamic nature of it.
in English highly unlikely.
____________________
PCX125 (stolen) - CBF600 (current)
Ride it like you stole it.
ride sensible and not like an idiot and you wont get 6 points in one week.
 Back to top
View user's profile Send private message You must be logged in to rate posts

orac
World Chat Champion



Joined: 25 Sep 2011
Karma :

PostPosted: 12:01 - 02 Dec 2016    Post subject: Reply with quote

Thanks,

port altering seems most likely. Need to download some terminal software, gonna start with hyperterminal free trial. and see how things go.

My router is not fancy so multiple IP addresses and port translation aren't an option.

I did think about setting up a small server/additional router to do a bit of hand shaking between things but seemed like a lot of work
____________________
Current rides - 2016 Triumph Street Triple Rx, 1994 Suzuki Bandit 400 VM, TGB 204 Classic 125cc
"with nothing left to lose, there is everything to gain. It's not the size of the dog in the fight, it's the size of the fight in the dog"
 Back to top
View user's profile Send private message You must be logged in to rate posts

Pjay
World Chat Champion



Joined: 18 Jan 2016
Karma :

PostPosted: 12:03 - 02 Dec 2016    Post subject: Reply with quote

What is it you want the new servers to do?
Are you only wanting to contact them? If so, just ssh with putty.
 Back to top
View user's profile Send private message You must be logged in to rate posts

ScaredyCat
World Chat Champion



Joined: 19 May 2012
Karma :

PostPosted: 12:13 - 02 Dec 2016    Post subject: Reply with quote

If you only have one routable IP on the outside then all you're going to be able to do is NAT and port forwarding, using a different port for each separate box. You'll only need to do that on your firewall/router on the outside, for example:

Box 1:

outside ip 1.1.1.1 port 8080 -> NAT -> 192.168.1.10 port 80
outside ip 1.1.1.1 port 8440 -> NAT -> 192.168.1.10 port 443

Box 2:

outside ip 1.1.1.1 port 8081 -> NAT -> 192.168.1.11 port 80
outside ip 1.1.1.1 port 8441 -> NAT -> 192.168.1.11 port 443

Box 3

outside ip 1.1.1.1 port 8082 -> NAT -> 192.168.1.12 port 80
outside ip 1.1.1.1 port 8442 -> NAT -> 192.168.1.12 port 443


It's also nice to keep at least one of the digits matching on the internal/external ip and/or port:

eg port 8082 is going to 192.168.1.12 in the above example.
____________________
Honda CBF125 ➝ NC700X
Honda CBF125 ↳ Speed Triple
 Back to top
View user's profile Send private message You must be logged in to rate posts

bigtin
Derestricted Danger



Joined: 04 Aug 2013
Karma :

PostPosted: 22:05 - 10 Dec 2016    Post subject: Reply with quote

If you're running Apache2 or Nginx you can just create some vhosts, define the server name in them and have them run as reverse proxies to your PIC servers whilst serving your current stuff from the default site.

That way you get access to each device using its own external DNS record and anything that isn't defined on your server will return what you had previously.
 Back to top
View user's profile Send private message You must be logged in to rate posts
Old Thread Alert!

The last post was made 8 years, 246 days ago. Instead of replying here, would creating a new thread be more useful?
  Display posts from previous:   
This page may contain affiliate links, which means we may earn a small commission if a visitor clicks through and makes a purchase. By clicking on an affiliate link, you accept that third-party cookies will be set.

Post new topic   Reply to topic    Bike Chat Forums Index -> The Geek Zone All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Read the Terms of Use! - Powered by phpBB © phpBB Group
 

Debug Mode: ON - Server: birks (www) - Page Generation Time: 0.07 Sec - Server Load: 1.78 - MySQL Queries: 13 - Page Size: 49.34 Kb