LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-26-2011, 05:47 AM   #1
pawelch
LQ Newbie
 
Registered: Jul 2010
Posts: 26

Rep: Reputation: 0
[linux any] running web browser on a specific network interface


Dear all,

suppose I have multiple interfaces installed on my machine. The question is how to specify which interface to use while starting a web-browser.

What I would like to make possible is something like:

Code:
browser_name interface address
if it is possible in for any web-browser or via scripts please advise me accordingly.

Thank you for your help.

Best regards!
 
Old 02-26-2011, 05:53 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello,

Can you be any clearer on what you want to obtain? A browser is a client program that you can use to connect to a server (webserver, fileserver, ...). A browser connects to the URL you provide. If you want to provide it at startup then that could be done by providing the URL at startup like this for example:
Code:
google-chrome http://www.linuxquestions.org
Again, if you can be a bit more descriptive in what exactly you want, we can provide a more defined answer.

Or are you trying to route specific traffic through a specific interface? Then you would need to set up routes to do so with the route command for example or by editing config files. But what does that have to do with a browser?

Kind regards,

Eric

Last edited by EricTRA; 02-26-2011 at 05:54 AM.
 
Old 02-26-2011, 06:09 AM   #3
pawelch
LQ Newbie
 
Registered: Jul 2010
Posts: 26

Original Poster
Rep: Reputation: 0
Hi Eric,
Thank you for your swift response.

Quote:
Originally Posted by EricTRA View Post
Or are you trying to route specific traffic through a specific interface? Then you would need to set up routes to do so with the route command for example or by editing config files. But what does that have to do with a browser?
More or less I need that. I am doing a small research and I was thinking about having possibility of running different applications on different network interfaces. The best scenario would be that, suppose there are, say, 10 interfaces and what I want to do is to specify a network interface so that it could serve an application given my preferences. Do you think it is possible?

Cheers
 
Old 02-26-2011, 06:40 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello,

You can for example have 10 virtual hosts on Apache and bind them to a specific IP for each of them if your NICs are configured correctly. After that you could connect using a browser to each and everyone of them. Another example is have more than one MySQL instance binded to a specific IP address and connect/use that. Examples of the aforementioned are easy enough to set up and can be found on the internet. Unless you have some specific use/request/application. Are you setting this environment up at the moment? If so, what are problems you're encountering? Or are you just 'brainstorming'?

Kind regards,

Eric
 
Old 02-26-2011, 07:16 AM   #5
pawelch
LQ Newbie
 
Registered: Jul 2010
Posts: 26

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by EricTRA View Post
You can for example have 10 virtual hosts on Apache and bind them to a specific IP for each of them if your NICs are configured correctly. .... Another example is have more than one MySQL instance binded to a specific IP address and connect/use that.
this does not solve my problem - this creates multiple virtual addresses for Apache server. What I want is to have a standalone PC with multiple network interfaces and depending on my preferences I decide which one to use. Say, firstly I pick eth0 and afterwards eth24 and then eth10. Directly, it should work with web-browser, that is why I mentioned it at the very beginning. However, it might not be application-oriented
Thus, the problem is not related to multiple addresses of Apache server, rather I try to find out how to specify an interface to be used with an application.

Thank you for you help and commitment.

Cheers!
 
Old 02-28-2011, 10:03 AM   #6
pawelch
LQ Newbie
 
Registered: Jul 2010
Posts: 26

Original Poster
Rep: Reputation: 0
dear all,
sorry for bumping up the thread but I still could not find the right answer.
Thus, what is the best idea to perform the operation I mentioned above.
In ping for example you can run it as:
Code:
ping addr -I eth0
Is it possible for any network application?
If so, please let me know.

Cheers
 
Old 03-01-2011, 08:16 AM   #7
pawelch
LQ Newbie
 
Registered: Jul 2010
Posts: 26

Original Poster
Rep: Reputation: 0
bump
 
Old 04-18-2011, 01:33 PM   #8
cudabear
LQ Newbie
 
Registered: Apr 2011
Posts: 1

Rep: Reputation: 0
Create a network proxy for each interface and have a separate web browser profile for each proxy. Virtually every network-enabled application supports proxies and all the popular web browsers support multiple profiles. So it would be a matter of starting your webbrower using profile0 for interface eth0, profile1 for eth1, etc. Profile0 would use the proxy for eth0, profile1 would use the proxy for eth1, etc.

As to how to set up a proxy, I have no idea. I'm just starting out on this quest myself. If you use this method, perhaps post a follow-up on how you did it. My idea is to create a virtual network device with it's own proxy and have skype use it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bypass restrictions using another interface for specific browser ziphyre Linux - Networking 4 12-01-2010 05:21 AM
Making the software to use specific network interface. jaakkop Linux - Networking 1 02-16-2008 04:22 AM
CUPS web browser interface heffo_j Fedora 2 12-13-2005 12:30 AM
make a database and interface is web browser wood Programming 4 01-30-2004 07:35 AM
limiting bandwidth on a specific network interface. Passive Linux - Networking 3 05-01-2002 05:20 AM


All times are GMT -5. The time now is 11:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration