Bart
Member
Registered: 19th Aug 02
Location: Midsomer Norton, Bristol Avon
User status: Offline
|
I have A record setup for adam.mydomain.co.uk which resolves to an ip address.
Is it possible to forward adam.mydomain.co.uk to the same ip address with a port on the end?
Ive gone through various options on my web server (vidahost), but doesn't seem to allow a port to be entered.
|
ed
Member
Registered: 10th Sep 03
User status: Offline
|
Not at a DNS level - you can setup a proxy on the server though.
Assuming you're using Apache:
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|
As Ed said, if it's a webserver you're pointing it at then proxying is your best bet. Although personally i'd stick to using Nginx for the proxy rather than Apache's mod_proxy as mod_proxy isn't the safest unless configured well.
|
Brett
Premium Member
Registered: 16th Dec 02
Location: Manchester
User status: Offline
|
Did you sort this Bart?
I think I'm after a similar thing. Basically I've got X running on port 81, but at work port 81 is restricted. What I want to do is to be able to access X, I assume by routing through another port that is allowed like 80.
|
ed
Member
Registered: 10th Sep 03
User status: Offline
|
If you're setting it up yourself then Dom's advice to use Nginx is pretty sound, it's a great server. When playing about with Node.js in the past I used this sort of technique:
http://stackoverflow.com/questions/5009324/node-js-nginx-and-now
The same principles could be applied to proxy to something else though.
|
Brett
Premium Member
Registered: 16th Dec 02
Location: Manchester
User status: Offline
|
Ed, forgive me for being ignorant, but that's a lot of reading and I CBA. Is there a script or something I can just drag over to sort it for me?
|
ed
Member
Registered: 10th Sep 03
User status: Offline
|
Hmmm, don't think so You'll need to install Nginx onto a computer/server/VPS and then copy and paste most of that configuration over.
|
willay
Moderator Organiser: South East, National Events Premium Member
Registered: 10th Nov 02
Location: Roydon, Essex
User status: Offline
|
quote: Originally posted by Brett
Did you sort this Bart?
I think I'm after a similar thing. Basically I've got X running on port 81, but at work port 81 is restricted. What I want to do is to be able to access X, I assume by routing through another port that is allowed like 80.
Depends what you are running?
If its sshd for example, you can just reconfigure the daemon to listen to a different/another port.
|
Brett
Premium Member
Registered: 16th Dec 02
Location: Manchester
User status: Offline
|
Cheers guys. I'll leave it
|
willay
Moderator Organiser: South East, National Events Premium Member
Registered: 10th Nov 02
Location: Roydon, Essex
User status: Offline
|
tell us what you are running mate and I can help
|
Brett
Premium Member
Registered: 16th Dec 02
Location: Manchester
User status: Offline
|
Apache.
I have a DVR running and it's using port 81 to login and 8101 as the control port. Work server blocks anything not on conventional ports like 80, etc. basically somehow I need to be able to access the DVR.
|
VrsTurbo
Premium Member
Registered: 8th Jun 10
User status: Offline
|
i dont know it it would work but couldn't you enable RDP onto a computer and translate the port to 80 on your firewall. never tried doing it with 80 before.
|
willay
Moderator Organiser: South East, National Events Premium Member
Registered: 10th Nov 02
Location: Roydon, Essex
User status: Offline
|
if the DVR is behind a router doing port forwarding, some routers let you change the port on the forward, so for example you could use port TCP/80 to forward to TCP/81 on the DVR and port TCP/443 (https) to port TCP/8101
Your work won't be blocking 80 or 443.
|
willay
Moderator Organiser: South East, National Events Premium Member
Registered: 10th Nov 02
Location: Roydon, Essex
User status: Offline
|
If its not behind a router/firewall then you can edit the httpd.conf (apache) to listen to another port, there should be a line like
code:
Listen 80
Just change 80 to the desired port number and restart apache.
|
Brett
Premium Member
Registered: 16th Dec 02
Location: Manchester
User status: Offline
|
True dat willay, I could try the router, didn't think of that
|
willay
Moderator Organiser: South East, National Events Premium Member
Registered: 10th Nov 02
Location: Roydon, Essex
User status: Offline
|
If they have some standardish filtering/firewall it shouldnt be a problem, if they do deep packet inspection to check that it is indeed https/http going over the link, you could be fucked. Either way give it a go and let us know how you get on
You spying on home during the day or something
|
Brett
Premium Member
Registered: 16th Dec 02
Location: Manchester
User status: Offline
|
It's actually for my dad so he can spy on his empire yes
Got cams all round the house and he works away a lot so would like to be able to check up on it from wherever and the server where he works won't allow dodgy ports, although strangely they allow it if he uses the same companies VPN from outside the office
Unfortunately I won't be able to try till later in the week since I'll have to do it at their house.
[Edited on 07-05-2013 by Brett]
|
Brett
Premium Member
Registered: 16th Dec 02
Location: Manchester
User status: Offline
|
Sorted it all router side 443 was handy willay, cheers.
|