General :: Route Different Applications Through Different Network Interfaces?

Jan 13, 2011

Is it possible to route different applications through different network interfaces?

Let's say (hypothetically) I want to route /usr/bin/thunderbird through vlan0 but /usr/bin/firefox through eth0.

Is there a way? And if so, is there a graphical tool for it as well?

View 2 Replies


ADVERTISEMENT

Fedora Networking :: Two Network Interfaces - Setup Default Gw Route?

Mar 26, 2009

So I have two network Interfaces

eth0 - NAT behind a router
eth1 - Public IP

When ever I restart the machine, both interfaces pull a IP, but the it randomly chooses eth0 or eth1 to have the gateway. I want the gateway to be eth0 always.

[Code]...

Is there some file or setting I can modify in Fedora10 that will always choose 192.168.1.1 on eth0 as the default gateway?

View 2 Replies View Related

Ubuntu :: Route Internet Through Interfaces Running BackTrack 5?

May 26, 2011

I have an interesting problem for you all today. Lately, I've been learning a lot about computer security and I have a weird request. I would like to route the internet connection from a laptop running BackTrack 5 (Linux distrobution for security), to another Backtrack computer through an SSH session. I believe this is called SSH tunneling. Essentially I have these interfaces set up.
Code:
eth0
wifi0
I would like to route the internet I get from wifi0 and send it through eth0. Essentially this would make my laptop a sort of hub. The reason is, I have a wireless router I use for all my penetration testing computers and I don't like them on my network normally. I want it so that way I can use my main computer, which has no wifi card, to connect to this network. Also, this would be great experience for other things. I'm not completely set on having it done through an SSH session also. I think there is a way to do it with iptables but, I'm not entirely sure how.

View 1 Replies View Related

Ubuntu Networking :: Adding Interfaces To /etc/network/interfaces?

Apr 16, 2010

If I try to add a new interface (eth1) to /etc/network/interfaces, I get

Code:
* Reconfiguring network interfaces... SIOCSIFADDR: No such device
eth1: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device

[Code]...

How do I add 2 interfaces and get anyone of them to work, as available ?

View 5 Replies View Related

General :: Get Wvdial To Run From /etc/network/interfaces?

Dec 23, 2010

I am using wvdial to connect to a mobile network (I have a usb modem) and it works fine. However, I wanted to automate the connection a bit (currently I am running wvdial every time I want to connect). I was wandering if there is a way to add this network to /etc/network/interfaces (in a truly Debian way) to have it connect on startup and/or whenever I connect my modem.

View 1 Replies View Related

General :: Set Up Routing Over Two Network Interfaces

Sep 9, 2011

I'm often on my corporate network but also need to be on another network simultaneously. At the moment I have to manually switch back and forth between the two. I'm using ubuntu 10.04. I've come across an excellent document that explains how to do this: "Linux Advanced Routing & Traffic Control HOWTO" by Bart Hubert. He mentions:

make sure that your kernel is compiled with the "IP: advanced router" and "IP: policy routing" features

I've downloaded the kernel sources, but I don't find any config options with names like these in them.

sudo apt-get build-dep --no-install-recommends linux-image-$(uname -r)
sudo apt-get source linux-image-$(uname -r)

Searching doesn't reveal anything

~/kernelBuild/linux-2.6.35/debian.master$ grep -iR policy . | grep -i routing
~/kernelBuild/linux-2.6.35/debian.master$

So my question is...how can I tell if the kernel I have has these config options. Failing that, how do I build a kernel that does support these things?

Additional use cases for this knowledge. (1) At work with desktop computer plugged into corporate network. Plug 3g phone into USB port. My corporate network wont allow me to access my external servers over ssh, but the 3g phone will. (2) At home on the corporate VPN, but would like to access my other local network computers.

View 1 Replies View Related

General :: How To Know Network Interfaces Under Ubuntu 11.04

Sep 9, 2011

When I run cat /etc/network/interfaces in Ubuntu 11.04 I get the below output.
auto lo
iface lo inet loopback
I don't see the eth0 or eth1 interfaces, but I am able to see them in the Network Tools application. How do I configure the eth0 and eth1 from command line?

View 2 Replies View Related

General :: Route Local Network Through Server?

Jul 2, 2010

This may or may not be an easy question, as I'm somewhat uninformed in the networking side of computer science. I own a rented server with a static ip address. Is there a way that I can forward requests from it to my computer to setup a LAN network of sorts over the internet. Specifically, there is a program I would like to use that requires LAN (you enter an IP to connect to). Is it possible to setup my server in a way that users could connect to my server's ip, which would then forward it to my home computer (I'm fine with setting up my home computer with programs that would allow this) that could host?

View 2 Replies View Related

General :: Bridging Network Interfaces Hangs On Getting IP

Aug 14, 2011

I have two physical NICs (eth2 & eth3) with eth2 connecting to the home router/dhcp server and eth3 connecting to another machine which needs access to the internet. I'm trying to create a bridge so that the second machine on eth3 can be connected on the lan. I've tried the following, however it hangs when attempting to get an IP address from the router. Likewise, attempting to give it a static route doesn't seem to work either.

$ sudo aptitude install bridge-utils
$ sudo ifconfig eth2 down
$ sudo ifconfig eth3 down
$ sudo brctl addbr br0
$ sudo brctl addif br0 eth2 eth3
$ sudo dhclient br0 # this hangs and fails to get a dhcp address

I've tried to ensure my routing table mimics what it looks like when using eth2 normally, I cannot hit the gateway at all.

$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 2 0 0 br0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 br0

I attempted an 'arping' to the MAC address of the router while I had eth2/3 bridged, but it failed to obtain it's IP address as well. One interesting thing I noticed was that attempting to bring down the bridge & reactivate my internet on eth2, I was having trouble pinging the gateway. It turned out 'ipmasq' had been installed and was running causing odd problems. When I stopped the ipmasq service, my internet started working properly again. I removed the 'ipmasq' package entirely and tried bridging the NICs again thinking it may have been causing problems, but it still failed.

View 1 Replies View Related

General :: List Only The Device Names Of All Available Network Interfaces?

Oct 25, 2010

I want to get a list of all available Network-Device Names on my Linux server. I figured that

netstat -a

would do the job, however netstat produces quite much output:

eth0 Link encap:Ethernet Hardware Adresse 08:00:27:fc:5c:98
inet Adresse:192.168.2.222 Bcast:192.168.2.255 Maske:255.255.255.0
inet6-Adresse: fe80::a00:27ff:fefc:5c98/64 Gültigkeitsbereich:Verbindung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1

[Code]....

I assume that this can be done by a combination of "cat", "sed" and "grep", but I have simply no clue of how to strip the uneccessary information.

View 4 Replies View Related

General :: /etc/network/interfaces Doesn't Get Loaded Automatically

Feb 17, 2011

In Ubuntu 9.10 I configured manually network settings to /etc/network/interfaces, and it works fine when I run /etc/init.d/networking restart.

Problem is that those settings are not loaded to GUI application (Preferences/Network connections).

I don't want to edit my preferences there, I just want to use my interfaces file as default! Do you know what's going on?

View 1 Replies View Related

General :: Cannot Open Network Interfaces - Permission Denied

Dec 11, 2010

I can't open etc/network/interfaces file comes some permission denied. What can I do?

View 2 Replies View Related

General :: Route A Security Video Server Which Is Inside Network?

Jan 18, 2010

I am trying to route a security video server which is inside my network to the internet. my network is two interface eth0 (internet network xxx.xxx.xxx.198 and internal network 192.168.5.1

I am trying to see an web server on 192.168.5.184

View 2 Replies View Related

Applications :: Route Ssh Sessions From A Single Head Node To Multiple Slave Nodes?

Apr 7, 2010

My requirement is to route ssh sessions from a single head node to multiple slave nodes. So what i want is, for a client there is just one point of entry (master/head node) to ssh into, it evaluates the load on the slave nodes connected on to internal network and routes the ssh session, kind of a ssh load balancer. what open source solution i can apply for my problem?

View 1 Replies View Related

Networking :: Configure A Network Route To A Host For Testing Network Interface?

Aug 30, 2010

today I tried to configure a network route to a host for testing my network interface. Code: route add 192.168.1.15 eth0 As I have to eth interfaces and both interface got their IP from DHCP (192.168.1.11 and 192.168.1.12) and are in the same subnet, I shut the other interface down:

Code: ifconfig eth1 down Then I tried to test the interface by doing a ping to 192.168.1.15.
Problem: When I unplug the cable from eth0 (and eth1 is still plugged) the ping still works. Somehow my linux (it's debian) powers up again eth0 and pings over this port.

How can I stop my linux doing this. I just want to have the route added only on the one interface - not the other. Is it maybe some case of a default-gateway?

View 5 Replies View Related

Fedora Networking :: Setup The Network Scripts To Create Two Network Interfaces For Vlan X And Y?

Apr 7, 2009

Using Fedora 10, can anyone tell me how to setup the network scripts to create two network interfaces for vlan x and y. Both interfaces should obtain an ip from dhcp and both interfaces should run over eth0.

View 2 Replies View Related

OpenSUSE Network :: Network Manager Default Connection Can Handle Virtual Interfaces?

Jun 7, 2011

I've not found how to configure more than one ip address with network manager.Nor with kde nor with plasmoid network manager.I need several virtual ip addresses for eth0 when the "default" of eth0 is connected i.e. "Connected to Auto eth0" should initialize the virtual interfaces.I have not found no even how to configure the ip address.I think this will be used from ifup config in yast or not?There I have the virtual interfaces but they are not taken from network manager.And last but no least: Is it possible that when using network manager the eth0 is enabled even no user has logged in?

View 4 Replies View Related

Red Hat :: Networking - Setup Network Scripts To Create Two Network Interfaces For Vlan X And Y

Apr 7, 2009

Can anyone tell me how to setup the network scripts to create two network interfaces for vlan x and y. Both interfaces should obtain an ip from dhcp and both interfaces should run over eth0.

View 4 Replies View Related

Networking :: Xen Network-route And Network-bridge Setup?

Aug 22, 2010

I've currently got a Xen box with 3 Virtual machines on it, in a routed setup. I'd like to put them all on a private internal network as well, which I'm assuming I'd do with a dummy network card and a xen bridge, but I can't find any information about setting up the xen Bridging setup on top of the existing network-route instlal.

View 1 Replies View Related

OpenSUSE Network :: Can't Get Interfaces To Come Up Without IPs

Apr 19, 2010

I'm trying to configure OpenSuSE 11.2 with Open vSwitch, and I'm having trouble getting various interfaces to come up automatically when I have bootmode set to "none." startmode is set to auto (or on - tried both), and bootmode set to none, with no IP address assigned in the file. At boot time, I get the message that it's bringing up eth0, for example, but when I log in and check, the interface is not up. Also, if I try "ifup eth0", I get the following output:

xen-users:~ # ifup eth0
eth0 device: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02)

but the interface is not brought up. why SuSE is saying that it's bringing up the interface successfully, but is actually not bringing it up?

View 1 Replies View Related

Ubuntu :: Installing The Two Network Interfaces?

Feb 26, 2010

On my desktop having a NIC 3Com, connected to the company intranet and correctly working, I have added a second NIC ( Realtek RTL-8139) to connect a second small network ( three devices, instrumentation) using static addressing.The new board seems to be rekognized by Ubuntu, indicating "auto eth1" in the Network connections dialog. When I try to configure the connection, the "Apply" button is always disabled, therefore I cannot activate it. The command lspci shows that the board has been recognized but when i sent the

lshw -c network

the response is:

*-network:0 DISABLED
description: Ethernet interface
product: RTL-8139/8139C/8139C+
vendor: Realtek Semiconductor Co., Ltd.

[code]...

View 1 Replies View Related

Ubuntu :: Using The /etc/network/interfaces File

Apr 25, 2010

I am trying to set the interfaces file to connect to my wireless network. Here is my interfaces file...

Code: auto lo
iface lo inet loopback
auto wlan0
iface wlan0 inet static

[Code]....

View 4 Replies View Related

Ubuntu :: Network Interfaces Configuration?

Oct 23, 2010

I have a weird problem with my /etc/network/interfaces configuration. I have the most simple static setup possible: Code: # cat /etc/network/interfaces

auto lo
iface lo inet loopback
auto eth0

[code]....

View 1 Replies View Related

Debian :: Still Can't Reload Network Interfaces?

Mar 24, 2011

So I've always asked this in the past when I get on a Debian system. This makes no sense to me but I just don't see how I restart network interfaces (i.e. eth0) on a standard Debian install. If I change the static I.P. address listed in /etc/network/interfaces from x.x.x.100 to x.x.x.101, I then assume I can simply do any of the following:

- /etc/init.d/networking stop | start
- ifdown eth0
- ifup eth0
- service networking stop
- service networking start

All the commands above do nothing. My only solution I know that works and implements the changes I've made is a complete system reboot which to me in Linux, is ridiculous. I've struggled with this over and over and nothing I do correctly assigns the new I.P. in the 'interfaces' file to the actual adapter. This isn't my single isolated Debian machine but every Debian machine I can get my hands on. Servers, workstations, VM's, any release, etc etc etc. Below is my interfaces configuration file:

Code:
auto lo
iface lo inet loopback

[code]...

View 5 Replies View Related

Networking :: Network Interfaces Is Not Configured?

Sep 29, 2010

I have installed Debian 5 and dident configure the network interfaces at installation.Now i am not able to connect to the internet through Ethernet or Wireless. How do i configure the interfaces after installation ?PS. the interfaces show up as "Not configured" in the network manager

View 5 Replies View Related

Programming :: Print Out Network Interfaces

Feb 3, 2010

how do i combine these two lines to output all network interfaces on my machine?

View 1 Replies View Related

Networking :: Route Eth2 TCP Packets To Tun0 With IPTABLES And IP RULE/ROUTE?

May 8, 2011

I have 3 network interfaces on my Linux Router :

Interface - Gateway - Type

Code:

br0 - 192.168.0.1 - Internet
eth2 - 192.168.1.1 - LAN
tun0 - 10.0.0.2 - VPN (via br0)

What I'd like to do is to route all TCP packets coming from eth2 to tun0 where a VPN client is running on 10.0.0.2. If I delete all default routes and if I add a new route to tun0 like :

Code:

route del default
route add default gw 10.0.0.2

Everything is fine, and everyone on eth2 can reach the Internet using the VPN access. Now the problem is that my VPN client does not allow any other protocols other than TCP. And I also want to allow VPN access only to eth2, no other LAN nor the router itself. use iptables to filter any TCP packets and mark them, so they can be sent to tun0, while any other packets can reach the Internet via br0 (192.168.0.1). I found on the Internet that we can mark packets before they get routed. Using the following commands :

Code:

iptables -t mangle -A PREROUTING -j MARK --set-mark 85 -i eth2 -p tcp --dport 80
ip route add table 300 default via 10.0.0.2 dev tun0
ip rule add fwmark 0x55 table 300

First of all, --dport 80 never work... :/ I wanted to filter TCP 80 packets coming from eth2, but none of them seems to be HTTP packets... oO (very strange...). Nevermind, I decided to forget about the --dport option. I use the "iptables -L -v -t mangle" command to see how many packets are marked, and it is working fine, all TCP packets coming from eth2 are marked. Now the problem is that none of them are routed to tun0 they are all respecting the "route -n" rules... and not the "table 300" rule I have created.

View 4 Replies View Related

Ubuntu Networking :: ADVISEADDR: Error In Specifying Interfaces: No Existing Ip Interfaces Found

Jan 7, 2010

I have a weird issue that I have not seen on any forum. My jaunty on DELL studio laptop seems connected to net, but I can not access any network service (ssh, firefox etc.). But when I connect a cable the cable lights blink as it should be and in wireless connection my wifi light blinks.

It was working 2 days ago without problem, and I have not done big changes recently.I removed and reinstalled network-manager and network-manager-gnome. Nothing changed. I see a message in each restart as follows (when Openafs is starting). I can reproduce it with "/etc/init.d/openafs-client restart"

Code:

ADVISEADDR:error in specifying interfaces: no existing ip interfaces found

#lspci

Code:

04:00.0 Network controller: Intel Corporation Wireless WiFi Link 5100
08:00.0 Ethernet controller: Broadcom Corporation NetLink BCM5784M Gigabit Ethernet PCIe (rev 10)
#lshw -c network

[code].....

View 5 Replies View Related

Fedora Networking :: Enable 3 Interfaces \ When Start One Interface The Another Interfaces Goes Down?

Jan 25, 2010

I have 3 Interfaces for a different LAN's and when I start one interface the another interfaces goes down.How can it's possible?I configure my ethernets as:

Code:
/sbin/ifconfig eth0 172.16.3.108 netmask 255.255.0.0 broadcast 172.0.255.255
/sbin/ifconfig eth1 172.16.3.109 netmask 255.255.0.0 broadcast 172.0.255.255
/sbin/ifconfig eth2 172.16.3.1110 netmask 255.255.0.0 broadcast 172.0.255.255

View 12 Replies View Related

OpenSUSE Network :: Verizon 3G - No Default Route Being Set?

Dec 5, 2009

I've been seeing a bunch of issues with the /etc/resolv.conf not picking up the nameservers for 3g connections, and managed to fix that issue using tips found here.. the one thing I m having a problwm with is my 3G USB modem not picking up a default route/gateway. I can connect using KNetworkManager, get an IP and nameservers, but.

[Code]..

And to top it all off, I cannot figure out what the default gateway should be from verizon to just write a script out myself that'll do it automatically.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved