The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. September 21, 2019, 12:12:30 PM

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Setting default network interface  (Read 1389 times)
nop_90
Global Moderator
Lifer
*****
Offline Offline

Posts: 2203


View Profile
« on: May 11, 2009, 04:45:22 PM »

Lets say you are using program like wget
But you want to run multiple instances of wget
you can not play with the insides of wget (or you could, but it is much too difficult)

you have a server it has 10 network interface. eth0,eth1 etc

if there a way using enviroment variables etc.
So that you could make 1st instance of wget bind to eth0, 2nd instance of wget bind to eth1 etc.

Logged
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 10096



View Profile
« Reply #1 on: May 11, 2009, 05:22:25 PM »

Oooh, nice question. Haven't heard that before. No idea nops, but I'll bet VS does.

Popcorn
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
nop_90
Global Moderator
Lifer
*****
Offline Offline

Posts: 2203


View Profile
« Reply #2 on: May 11, 2009, 05:57:31 PM »

I hope he does
The only way I can think of is to do what tsocks does.
make a little C program that intercepts the socket create call, and then binds it to the interface you want.

I want to avoid doing that Smiley
poking arround in sys internals is dangerous, and it adds another place where bugs can occur
Logged
Pages: [1]
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!