Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking at flashing my Linksys to use DD-WRT... but only if it supports functionality that the base firmware doesn't have... which I actually want to use.

One of the routing features I've wanted for some time is the ability to route to a different computer on my network based on more than just he port number... namely the Host Header value. So I have DynDNS already setup to go to my router, but based on the subdomain, I'd like it to route to one computer or another in my internal network.

I've looked through the DD-WRT documentation, but it's pretty sparse in this area. Its so sparse, that I can't even tell if it's possible with this firmware right now. Can anyone help?

share|improve this question

closed as off-topic by HopelessN00b Mar 25 '15 at 4:26

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions should demonstrate reasonable business information technology management practices. Questions that relate to unsupported hardware or software platforms or unmaintained environments may not be suitable for Server Fault - see the help center." – HopelessN00b
If this question can be reworded to fit the rules in the help center, please edit the question.

I doubt it'll be able to do that, even if you found a way to patch it yourself and allow for it. You need a little more horsepower than what those linksys routers can provide to be able to reliably do packet inspection to pull out that info and route accordingly - in real time.

Why not setup an internal proxy, and have it redirect based on the host header value? This way you just redirect to that, and then it will process the HTTP and redirect accordingly to your different hosts.

share|improve this answer
dd-wrt supports optional packages. The list is here: . I see squid is available. You have some work to do to understand how this all works. – uSlackr Oct 24 '11 at 16:37
@uSlackr - Not exactly an "answer" to my problem, but thanks for the pointer in a partial direction. Maybe I need to rethink the framework to my solution. – Nick Oct 24 '11 at 18:51
The way I see it is that you are asking for is not a routing problem. Routing is a layer 3 function, you have an application layer problem. – uSlackr Oct 24 '11 at 21:07
@uSlackr I understand your point, and you're correct in that regard. But frankly, these "routers" do a heck of a lot more than simply routing right now anyway, from print sharing, to FTP server, to file server. So why suddenly the distinction on this? – Nick Oct 25 '11 at 14:15
Agreed - and the optional dd-wrt packages is one way to make that router do what you need. – uSlackr Oct 25 '11 at 16:45

(Perhaps this should be its own answer)

As @sandroid said, what you want to do can be handled by a web proxy. dd-wrt supports installation of software not compiled into the firmware (it is linux after all).

Read about Optware packaging first and implement the prerequisites. Then install one of web proxies (nginx, squid, pound, etc) and configure it for your use.


share|improve this answer

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