Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a computer running 24 hours at a site protecteed by firewall, this computer call it 'A' can connect to internet but unable to host a site since the port is blocked.

I have an idea to purchase a VPS and host a website there call it 'B', however VPS often comes with low storage size for my files. My idea is when a client browse 'B' website and click a link to download a file, the file will be fetched from computer 'A'

so the case is 1. Client browse web hosted in VPS (computer 'B') 2. Client request to download a file from 'B' 3. 'B' connect to 'A' via tunneling and get the file from 'A'.

Do you think tunneling can serve this purpose or should is there any other method?

I hope this is related to server things.

share|improve this question
    
As Lucas notes, it's kind of a shitty setup. An alternative is to host the static assets on Amazon S3: docs.amazonwebservices.com/AmazonS3/latest/dev/… If your site is entirely static, hosting on S3 may be a less expensive option than the VPS. –  cjc Jul 29 '12 at 14:05

2 Answers 2

up vote 1 down vote accepted

You can, indeed, do that with a tunnel and ftp the files. Another possibility is a networkshare.

But in my opinion this is a bit of shitty setup. If the connection between your PC and VPS ever drops, your website breaks.

I think you should invest more in a VPS and get a bigger drive, or get some type of external filehosting.

share|improve this answer
    
Hi Lucas, thanks for answering. My website is not really an important site, just for groups of our community, so I prefer cheaper solution. –  John Kenedy Jul 29 '12 at 14:01

If only your desired port on A is blocked consider setting up a reverse proxy (with caching) on B.

Client <-> B (port 80) <-reverse proxy, e.g. varnish-> B (open port)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.