SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
first of all, this is not a Slackware problem. This is a network problem. I am asking on behalf of a friend of mine.
The problem. There is a stream which is only available in country B. My friend lives in country A. The stream is not available in country A. In country B there is a router with a static IP-Address provided by the Internet Service Provider. My friend wants to be able if possible to receive the stream from country B in country A. He had read that this could be possible by setting up a proxy server. I tried to search on the internet some information, but i only was able to find how to configure a router as a proxy server in the local network. My questions is - would it be possible to set up a proxy server on the router? Does he need to buy a computer additionally to the router where to run the proxy server? In the worst case he could connect remotely to that computer and start the stream from country A. Another approach would be to set up a proxy server in country B and use the IP-Address of the router in country A in the web browser. Any suggestions on how to solve this problem would be appreciated.
Unless that router is set up as a proxy, you likely won't be able to route through it unless you're behind that network.
A (possibly) simpler option would be to use a socks proxy through ssh. Basically, your friend would connect to your computer through ssh (I'd probably recommend creating an account for them), including some flags that opens a port on their end, then they would switch the proxy on their browser to connect through the localhost at the designated port. This can be done on both Windows (using an ssh client like putty) or on Linux. The command on their end would look something like:
Code:
ssh -D 8080 -C friend@your_IP
-D specifies the port to open the proxy on
-C enables compression
After this, your friend would go to the browser and change the proxy address to 127.0.0.1 (which points back at yourself) and port 8080. If they're on Windows, Chrome and IE use Window's proxy settings under Internet Options -> Connections tab -> LAN Settings -> Advanced and then add the address (127.0.0.1) and the port (8080) to the Socks line. You might be able to just add it to the HTTP and enable the checkmark at the bottom, but I've never tested this. Firefox has its own properties, but I don't have it in front of me.
You shouldn't need to do anything on your end other than make sure they have a valid account and that you have an ssh server up and running (Slackware has it enabled by default, but you can check to see if /etc/rc.d/rc.sshd is executable).
bassmadrigal pretty much nailed it. There is some additional information on DNS here
It is a technique I find useful for being able to access resources from home that are otherwise only available from a work IP address.
Hey, thank you for your answers. Unfortunately i was not able to understand where the sshd server should be set up? On the router or on a computer behind the router in country B?
Let's make this a bit more explicit. Your "friend" wants to tune into the US version of Netflix, in his own non-US country. Netflix, but also Amazon, ABC etc are content providers who use geo-fencing techniques to ensure that their content is only available to the people that pay for it, and additionally they provide different content based on the viewer's geographical location.
One way of achieving what you want is by using a SOCKS proxy running on a host in the US. That was what the advice regarding SSHD was about. Your "friend" will then be able to tunnel his network traffic through the resulting SSH tunnel and to the remote server it will look as if he is actually inside the US.
Watching Netflix that way is feasible when you are watching content on a laptop or desktop. It is however not possible when you have a tablet or a smart-tv, because these devices won't let you setup the network configuration appropriately. The Internet is full of "smart dns" solutions which are free, or cost you a monthly subscription. THey will offer you the IP address of a "smart DNS" server which you'll have to configure as your DNS IP address in tablet or smart-tv and from that moment on you'll be able to connect to US based content streaming providers transparently.
But think of this: in the end the comnpanies running these smart DNS services will be able to watch all your traffic since none of it will be encrypted when they proxy your connections and deliver your traffic into the US. Would you want that?
So some people have written code to setup such a Smart DNS service in private. You will still need your own host in the US (cheap VPS is easily found) so it will not be a for-free solution but you will be in control of all your outgoing traffic.
Check https://github.com/jamiees2/dnsproxy/wiki for instance.
thank you very much for your pieces if advice. We will try to set up sshd-server on the router. If it is working, this would be acceptable. If not we have to buy a dedicated host for that. Apropos do you know by chance some routers which are of a very good quality but not meant for the business, that could do the job? Probably you have experience with some and you have done that and you know that this is working.
If this is a router managed by the ISP, it isn't likely you'll be able to get ssh on it (with the possible exception the router supports something like dd-wrt, which replaces the stock firmware and includes ssh). If you live in the country that has access to that stream, you can host the ssh server on your computer. Then you would just set up port forwarding on the router, and then your friend can connect without an issue.
Hi again, the router is private, we have the password for it. Would it be possible then to do that? I have never set up something like that on a router. Thank you for the article you have posted. I will have a look at it.
It depends on what the router is running. If it is a commercial firmware, it may not be able to support ssh. If it is running a full blown linux OS, it probably already has ssh.
Hi again, the router is private, we have the password for it. Would it be possible then to do that? I have never set up something like that on a router. Thank you for the article you have posted. I will have a look at it.
What make and model is your router? What firmware does it have running on it? Does it provide a proxy service? Do you have shell access to it?
Your router needs to have firmware that supports what you are trying to accomplish. If it doesn't have the right firmware you will need to flash the hardware with firmware that does. In some cases routers do not support setting up a proxy server or the use of a SOCKS tunnel with SSH. There are projects out there that provide firmware that enable some feature lacking routers to accomplish this. I use DD-WRT firmware on my ASUS RT-N16 router. I am not familiar with other third party firmware though. If you do decide to flash different firmware on your router, be very careful, you can brick your router quite quickly in doing so.
Hello and thank you for you posts. I am a little bit afraid of flashing my router because i could break it. I am thinking of buying a new one that supports DD-WRT out of the box. I assume that with it SOCKS and ssh will be possible. Any other recommendations?
Hello and thank you for you posts. I am a little bit afraid of flashing my router because i could break it. I am thinking of buying a new one that supports DD-WRT out of the box. I assume that with it SOCKS and ssh will be possible. Any other recommendations?
The Asus RT-xxx series routers are great for DD-WRT. Some Linksys models are good too, I have no experience with Linksys though. This firmware supports openvpn as well as SOCKSv4/5 by port forwarding ssh ports as mentioned earlier.
i decided to buy one ASUS RT-AC87U router. Now i started to configure it but i do not know how to proceed. I enabled the SSH-Protocol. There are some VPN settings but i do not know if i need it. How to set the user for the ssh access? Does it need to be the same as the router administrator user? Do i need to set some port forwarding? How it should be done?
Finally i was not able to find out how to create additional users on the router. That is why i am connecting via ssh with the admin user to the router as suggested by AlienBob and when i make the SOCKS Proxy settings in the browser, everything is working properly. Thanks for your support!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.