1
vote
0answers
31 views

Is it possible to prevent eth0 network traffic from accessing eth1 network?

I am not really sure how this is possible but I have a linux(ubuntu 14.04) box with 2 interfaces. eth0 is connected to our lan 192.168.0.* and eth1 is connected to a dlink wifi router on network ...
4
votes
2answers
37 views

Redirecting loopback traffic through a router

For some tests purposes, I am running multiple socket-based applications on one machine and want to simulate "real" network conditions between them. I thought the simplest would be to redirect all ...
2
votes
1answer
53 views

Fix “Route hash chain too long” without restart

On our production server (ubuntu 12.04, 3.2.0-63 kernel) routing cache reached its capacity. Modifying rhash_entries is out of the question, since it is a kernel boot param, and we can not restart the ...
1
vote
1answer
24 views

Re-enable route cache

In my kernel log I found: lo: 5 rebuilds is over limit, route caching disabled I know what triggers route cache rebuilds (too long hash bucket chains), but what exactly gets disabled? Which device? ...
1
vote
1answer
45 views

repair the static route to allow traffic to right place

I recently was taking an online test and I got the below question. The server has been configured with a TUN device tun-aib0 that acts as an endpoint for a VPN tunnel. The IP address of the device ...
0
votes
1answer
48 views

Trying to connect to gateway in static ip network

I have arch-linux-arm running on a raspberryPi. The network I am in uses static IPs. gateway IP is 192.168.178.5 IP for my device is 192.168.178.201 To connect to the internet I use: ip addr add ...
3
votes
3answers
67 views

What happens to local LAN traffic on linux to non-loopback addresses?

One thing I've never quite understood on Linux is what happens to local traffic that isn't directed at loopback. For example, given the following network setup: [root@pe-323-master ~]# ifconfig eth0 ...
1
vote
0answers
58 views

Packets sent through TUN interface not routed

I have a C program attached to a TUN interface. In my C program, I'm building packets and writing them to the TUN interface. Now to check if packets are really sent from my TUN interface I use ...
2
votes
0answers
42 views

Configure routes to access WAN and LAN through diffrent interfaces

In my organization. Some useful technical websites are blocked by the firewall. In my machine i got three interfaces eth0, wlan0, wwlan0 eth0 Link encap:Ethernet HWaddr 00:9c:02:93:b1:b4 ...
2
votes
2answers
117 views

Primary network interface in Linux

I have a server box with two interfaces. One of the interfaces is connected to the internal network, another - to external. I have assigned IP 192.168.1.200 to internal interface (eth0). I have some ...
1
vote
0answers
270 views

Port redirection on loopback with IP other than 127.0.0.1

I want to redirect port 80 on the loopback network interface so that accesses to that port actually go to port 8080. I tried using the following command, but it only works if the application is ...
5
votes
1answer
159 views

Skip routing via `lo` interface for outgoing packets

Introduction I have following load balancing configuration: 10.0.1.31 - lb 10.0.1.35 - virtual IP 10.0.1.32 - node1 (tomcat + mysql) 10.0.1.33 - node2 (tomcat + mysql) I'm using keepalived which ...
1
vote
1answer
136 views

Conntrack TCP Timeout for state stablished not working

Im using a private IP address and I want to keep alive SNAT entries in my Router (Gateway) for at least two hours (some windows apps of my network are using TCP keepalive set to 2 hours). Gateway is a ...
0
votes
0answers
29 views

How to use networks default gateway dynamically? [duplicate]

I want to use specific interface for specific use from different different application. I am using Ethernet, Wi-Fi and 3G modem interfaces in my embedded Linux set-up. Now my set-up is up with ...
2
votes
1answer
432 views

mutliple default gateways for alias interfaces (SOLVED)

Alias interfaces defined in /etc/network/interfaces cannot have multiple default gateways. Unfortunately I would like to use the same interface to access 2 differents nets, and I need to define 2 ...
2
votes
2answers
79 views

Different sites on different interfaces using link aggregation

I read about Ubuntu Bonding and how it allows to bond multiple connections to get several advantages. My requirements is this : I want two different interfaces at a time (A wifi and other Ethernet) ...
3
votes
1answer
208 views

What is the interface scope (global vs. link) used for?

Routing table entries have an attribute scope. I would like to know how the change from global to link (or the other way round) affects the network system.
1
vote
1answer
45 views

How to use one nic for storage traffic & other for network traffic in Linux(Slackware)?

Problem I have a Linux machine (Slackware) with two network interface cards and i want to use one interface for network traffic and other for storage traffic . As this is Slackware i dont know this ...
0
votes
1answer
89 views

Why won't my computer connect to my Linux access point?

I'm setting up a Raspberry Pi as a proxy access point which accesses the internet via my USB tethered smartphone and is connected to my Windows PC via Ethernet. The internet works fine on the Pi, but ...
1
vote
1answer
79 views

tcp/ip - trigger action or event after period of no network activity on certain port(s)

Is it possible, perhaps using iptables or one of the wrappers/frontends to iptables, to trigger an action or run a script after a certain period of time has elapsed with no network activity on a ...
4
votes
1answer
94 views

Send traffic to self over physical network on Ubuntu

I have a dual port ethernet NIC and let's say I have connected both ports in a loop and assigned the following IPs to the 2 ethernet interfaces: eth2 -> 192.168.2.1 eth3 -> 192.168.3.1 I want to ...
0
votes
3answers
67 views

iptables rules - input and output

I'm new with Linux and iptables. I have a Ubuntu Server distro (12.04) on a PC which has 2 network interfaces (eth0 and eth1). I also have 2 laptops, one is plugged to eth0 and the other to eth1. ...
0
votes
0answers
127 views

Access local UPNP and port forwarding while using OpenVPN

I have a laptop with Arch Linux and NetworkManager. When I connect to any wireless network I establish client OpenVPN connection to PrivateInternetAccess (my VPN provider) for privacy. SSH and ...
3
votes
1answer
112 views

Linux: How to auto-configure IP routing based upon ping results

I've got a linux server with two possible connections to the net: one is a slow, high-latency cellular modem (ppp0), and the other is through fast wifi->broadband (wlan0). The problem is that the ...
0
votes
1answer
36 views

How to route “single ip” to different interfaces [duplicate]

i have a dd-wrt router (ip 192.168.1.1) with the following network interfaces: eth0 ath0 ppp0 (a pptp vpn client) i would like to route all traffic from ip 192.168.1.10 to 192.168.1.20 through ...
0
votes
0answers
135 views

On ssh connection the auth.log shows as source IP the external IP of the server instead of the IP of the client

I have a very odd situation with my ssh connection. Every time I connect to my server, whatever is my external ip, the connection have as source the server's external ip. Example Server S.O.: ...
1
vote
1answer
133 views

How do I prevent my hostapd access point from pretending to route to the Internet?

I have a nice little iMX6 (an ARM CPU) board running Linux kernel 3.0.35 with hostapd 0.7.3. Setting up the wireless interface as an access point works fine but clients think they can be routed ...
0
votes
0answers
25 views

Routing Application through different network interfaces [duplicate]

I have two interfaces on a server, let's call them eth0 and eth1. The underlying server is running CentOS 6.5 I would like to be able for some application to use eht0 while some others use eth1. ...
1
vote
0answers
390 views

Understand the Route table

I just setup the OpenVPN and it is working as expected. However, the routing table of the client is confusing me to no end. Here is the route table: # route -n Kernel IP routing table Destination ...
3
votes
0answers
146 views

Creating a private network for internal VMs

I am trying to configure a private network for use with my Xen VMs, in addition to the public network in use by another of the VMs (VM1, which has its own public IP). So far, I have the public side ...
1
vote
0answers
36 views

invisible bridged router with 2 route table

my setup I have 2 ISP connexion : ADSL and SDSL. A qos (named qos, ip : 192.9.201.252) server stands before the ADSL router. It is the only way to access the ADSL gateway (192.9.201.254) through a ...
0
votes
0answers
578 views

Use iptable do redirect all the HTTP traffic to localhost

I use a Linux machine as WLAN Router with the help of hostapd and udhcpd. There's also an Apache web server installed on the same machine. Now I want to redirect all the traffic which comes through ...
1
vote
0answers
391 views

Route outgoing traffic to different gateway based on port

I am trying to get around my Usenet download bandwidth restrictions based on IP. I currently have two IPs from my ISP to double the download speed. So far I have it working and getting double speed ...
0
votes
1answer
127 views

How to automate route commands

For some reason everytime I connect to my VM I have to manually launch these two commands for it to connect to the Internet. route add 198.245.49.254 dev eth0 route add default gw 198.245.49.254 Is ...
3
votes
0answers
315 views

What do I need to add a virtual IPsec adapter?

I'm trying to set up an IPsec connection manually from the console with iproute2. What I need is a virtual interface (at best, a virtual IP address could also be sufficient) that IPsec-transforms ...
7
votes
3answers
5k views

what is the meaning of 0.0.0.0 as a gateway?

Can anyone clarify gateway assignment for me? What is the difference between adding gateway as 0.0.0.0 and assigning a specific ip address as a gateway?
2
votes
1answer
113 views

Mark packets between machines (client and router)?

Can I mark a packet on the client's OUTPUT chain and add an iproute policy on the router to route them via a specific gateway? This what I tried to do, but it isn't working. My client's mangle table ...
2
votes
0answers
550 views

Adding multiple gateways for separate physical interfaces with various metrics/priorities

My system has 3 interfaces. These are eth0, eth1 and usb0. eth0 is linked to my router and is the line I want to be used by default. eth1 is un used. usb0 is a 3G phone that's tethered. My issue is ...
2
votes
0answers
25 views

Route a particular process over another gateway [duplicate]

I have 2 internet connections on differnet interfaces. I have eth0 which is internal ip of 192.168.1.70 and then I have another network connection to a different network which is on wlan0 ...
4
votes
1answer
1k views

Can't ssh to beaglebone?

After I did: route add default gw 192.168.7.1 I also changed /etc/resolv.conf: nameserver 192.168.7.1 in order to share internet between Ubuntu in VMware. I've got internet working but after a ...
1
vote
1answer
289 views

What does the route Dest: 123.123.123.123, GW: 0.0.0.0 mean?

I have a route table: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 123.123.123.123 0.0.0.0 255.255.255.255 UH 0 0 0 ...
1
vote
1answer
601 views

How do I route different users over different OpenVPN tunnels in Linux?

The setup: I have multiple, static-key OpenVPN client/server configurations, labeled "client1", "client2", and "client3" with server/client IPs 10.10.1.1/10.10.1.2, 10.10.2.1/10.10.2.2, and ...
2
votes
3answers
179 views

Detect which interface traffic to an IP address goes through

I'm making an script, and I need to detect in what interface is the traffic of an IP going through. This is because in the arch, an IP address is attended only for one of four NIC's, but can be any of ...
1
vote
0answers
149 views

Network in LXC not forwading through a bridge

I've got an LXC container, on the host I've got a bridge between the LXC container and eth0. The LXC container can ping it's Host 10.1.0.5, but can't ping the gateway of 10.1.0.2. The host is able to ...
3
votes
2answers
666 views

Use eth interface to connect to a router and wlan for the internet

I am currently trying to configure a router to which I connect to (to its web interface) using an Ethernet cable through the eth0 interface. That router doesn't have access to the internet. Now, I ...
5
votes
2answers
2k views

Routing for multiple uplinks/providers

I have a PC with two internet connections. The first one is an Ethernet interface to connect to my local network and access internet via my router. The second one use a GSM modem to connect with ppp. ...
2
votes
1answer
263 views

Solaris 11: How to use ILB to create HA loadbalancer across two backend servers?

I'm attempting to use Solaris 11's ILB to create a loadbalancer across two backend DNS servers. Here's my requirements: Two external IPs: .XXX.YYY, .XXX.ZZZ - these are the DNS IP's that our clients ...
1
vote
0answers
89 views

Network not working after fiddling with webmin

Can some please help me restore my networking? I have a VPS CentOS 6.3. Few minutes ago it was working well, Except I couldn't connect to the Yum repository. So I thought I could change some settings ...
3
votes
1answer
286 views

Alternative to mrouted for DVMRP on Debian Squeeze

I need to implement DVMRP protocol to route multicast over Openvpn (tun) connection for some old 3Com NBX phones. I use Debian squeeze so mrouted is not available (obsolete). What can I use ...
0
votes
2answers
861 views

Is /etc/resolv.conf needed when using a static IP address?

I am trying to configure the IP address of my embedded device. The device should have a static IP address and I attempt to set this using the /etc/network/interfaces file with iface eth0 inet static ...