Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Possible for router to forward you to a specific website.......

  • 06-10-2007 7:00pm
    #1
    Registered Users, Registered Users 2 Posts: 2,719 ✭✭✭


    Is it possible for a router to forward you to a specific website even though you asked to go to a different site altogether on your laptop? Basically I want to type in google.ie on my laptop, and i go to yahoo.com instead (well thats an example). Just something I want to do with an archos portable media player I have and a website that it connects to (I want it to go to a different site altogether). I have 3 wireless linksys router in the house with non-official firmwares. Just a simple yes/no would be great!


Comments

  • Registered Users, Registered Users 2 Posts: 30,469 ✭✭✭✭Ghost Train


    editing the hosts file on the laptop would do it i think
    google hosts file


  • Registered Users, Registered Users 2 Posts: 2,719 ✭✭✭kaisersose77


    Sorry i didnt make myself clear, I want it so that if anything accesses the router, its sent to site B even though it asked to go to site A. The router itself has to do this and not depend on certain stuff being changed on laptops etc, as its not possible to do anything on the archos media player with regards hosts file etc.

    Its only the archos player that I want to be forwarded to a specific website (and only the archos player that visits the site that I dont want it to go to).


    Basically the archos 605 is a touchscreen media player. On the main screen there is a thing called the archos control panel. Ppl in France/US/UK can rent and buy films etc from this control panel. That will never be possible in Ireland so this control panel is no use to me. So I want to create my own sort of control panel(webpage) with streaming tv/radio, film trailers etc. And when I click the archos control panel button, I want to be sent to my control panel and not the official archos control panel(which is just a webpage). Hope i made sense!


  • Registered Users, Registered Users 2 Posts: 16,288 ✭✭✭✭ntlbell


    depends on the router what way you could do it

    i think linksys can accept WINS which should be looked up first and run a local WINS server redirect it from there

    if it's linux based router you could just make changes to the hosts file.


  • Registered Users, Registered Users 2 Posts: 37,316 ✭✭✭✭the_syco


    Not just shell out €30 for the Opera Web browser? Click here for info on how. You can then browse to whatever site you want.

    Did you ty to think outside the box, or are you thinking outside to box to save €30?


  • Registered Users, Registered Users 2 Posts: 2,719 ✭✭✭kaisersose77


    have that already, this is just to use the control panel for something useful


    saw this mentioned elsewhere, where somebody was asking a similar question

    insert under firewall scripts

    iptables -t nat -A PREROUTING -p tcp -d "xxx.com" --dport 80 -j DNAT --to-destination xxx.xxx.xxx.xxx

    tried it but didnt work for me


    (using linksys wrt54g btw)


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 16,288 ✭✭✭✭ntlbell


    have that already, this is just to use the control panel for something useful


    saw this mentioned elsewhere, where somebody was asking a similar question

    insert under firewall scripts

    iptables -t nat -A PREROUTING -p tcp -d "xxx.com" --dport 80 -j DNAT --to-destination xxx.xxx.xxx.xxx

    tried it but didnt work for me


    (using linksys wrt54g btw)

    is there a hosts file in /etc ?


  • Registered Users, Registered Users 2 Posts: 2,719 ✭✭✭kaisersose77


    no sign of it when i telnet in, im sure i saw a hosts file in the root folder when i telneted in earlier.


  • Registered Users, Registered Users 2 Posts: 16,288 ✭✭✭✭ntlbell


    is dd-wrt installed on it or linksys firmware?


  • Registered Users, Registered Users 2 Posts: 2,719 ✭✭✭kaisersose77


    havent changed fw in ages

    Firmware Version: v4.71.1, Hyperwrt 2.1b1 + Thibor15


  • Registered Users, Registered Users 2 Posts: 16,288 ✭✭✭✭ntlbell


    havent changed fw in ages

    Firmware Version: v4.71.1, Hyperwrt 2.1b1 + Thibor15

    try out dd-wrt it's a distro of linux for your router which gives you a lot more control over the router.

    I don't use it personally but it seems to be very popular and the feature list looks good.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 1,065 ✭✭✭Snowbat


    iptables -t nat -A PREROUTING -p tcp -d "xxx.com" --dport 80 -j DNAT --to-destination xxx.xxx.xxx.xxx

    tried it but didnt work for me

    This does work for me (WRT54G running Sveasoft Alchemy) but with caveats -
    • The hook will only work when the client and the router both resolve xxx.com to the same IP address at about the same time. If "xxx.com" uses multiple aliases or round-robin DNS, the hook will frequently miss.
    • When it works, the browser will ask for the original site by name (name-based web hosting). How the new site copes with that depends on their setup. Google servers seem to ignore a request for 'www.yahoo.ie' but Yahoo servers throw up a document not found error when the browser requests 'www.google.ie' .

    www.google.ie resolves to multiple aliases so the hook frequently misses but the other way works - www.yahoo.ie currently shows only 217.12.3.11 and the following at your router should get you Google Ireland for www.yahoo.ie. Unfortunately, iptables does not support wildcard matches at this time.

    iptables -t nat -A PREROUTING -p tcp -d 217.12.3.11 --dport 80 -j DNAT --to 64.233.161.104:80


    For the Archos problem, provided the control panel web page sits on a server that does not use multiple aliases and stays at a single IP address, you shouldn't have any problem redirecting port 80 traffic for this site to a server you control which you can configure to handle the name-based request and serve your custom page.


  • Registered Users, Registered Users 2 Posts: 2,719 ✭✭✭kaisersose77


    havent changed firmware yet, but your example isn't working for me, still goes to yahoo's site. Thanks for the help btw.


Advertisement