iproute2 (ip) is a tool used to manipulate network configurations.

learn more… | top users | synonyms

0
votes
2answers
368 views

How to DHCP request a second, different, IP for the same physical interface?

(Similar to this question, but with two different DHCP-assigned IPs) Is there any way to let dhclient or dhcpcd request two different IPs for one physical interface, e.g. via virtual interfaces eth0 ...
1
vote
1answer
647 views

linux ip route via 2 gateways, 3 interfaces

I have 3 interfaces. I'll replace the public ips with 10.x.x.x. eth0: ips: 10.1.1.64-10.1.1.70 mask: 255.255.255.0 gateway: 10.1.1.1 ip route table: gw1a eth1: ip: 10.1.1.71 mask: 255.255.255.0 ...
1
vote
1answer
388 views

iproute and nat across devices

I've got the following configuration: vlan123@eth0 - range 1.2.3.0/24, with 1.2.3.4 assigned to it br2000 - range 10.2.3.0/24 In the ip route I see: 10.2.3.0/24 dev br2000 proto kernel scope link ...
0
votes
1answer
28 views

How to do policy routing with systemd?

I need to do policy routing on my CoreOS instances which use systemd. But I haven't found any documentation or examples on how to do it with systemd-network. How do I do that? So far I have only ...
0
votes
1answer
393 views

Route traffic to some host in Internet via VPN server

I need route traffic to some host in Internet via VPN server. Configuration: Computer: ubuntu-12.04 eth0 - x.x.x.x/24 tun0 - inet addr:10.8.0.6 P-t-P:10.8.0.5 Mask:255.255.255.255 There is ...
0
votes
1answer
121 views

Linux Firewall & sharing files between computers in different subnets connected to single switch

EDIT : I've edited the question & the title to bring more clarity hoping that someone will be able to point me in the right direction. ************************* * Internet ...
0
votes
1answer
126 views

Multi-homing: ip rule syntax for multiple uplinks

I'm trying to create ip rules for multiple WAN links and keep connectivity across multiple local networks. I have currently two network cards each connected to a different gateway to the internet ...
0
votes
1answer
365 views

Can a machine(physical or virtual) accept and process UDP packets with a different IP address coming from a known device?

Before everything, thanks for reading the next question. I have script,(ipUDPspoof.rb), which is a client/server script in Ruby (you choose the parameter 1 to be server and 0 to be client, at ...
0
votes
1answer
161 views

Routing config between internet load balancers and backend

Im facing a problem due my lack of experiencie on routing. I need to config the next things (all run on my computer virtualized, if works, i will pass it to hardware) [internet] ---- ...
0
votes
1answer
256 views

Network interface selection

Suppose I have more than a network interfaces and I want to selectively use them per application. eth0 is the standard interface with the standard gateway in the main routing table eth1 is another ...
0
votes
1answer
119 views

SOCKS4-5 network device driver

There are methods of forcing programs to use SOCKS4-5 proxy's, such as socksify, tsocks and other LD_PRELOAD hijacking methods. Is there a way of having a SOCKS proxy network device, such as one ...
-1
votes
1answer
64 views

How to choose source IP from multiple virtual IP's based on specific destination

I am having two private IP attached to an interface. inet 10.255.0.127/24 brd 10.255.0.255 scope global eth1 inet 10.255.0.153/24 brd 10.255.0.255 scope global secondary eth1 When traffic leaves ...
2
votes
0answers
148 views

How to route traffic through different interfaces based on the port number?

iptables -A PREROUTING -i usb0 -t mangle -p tcp --dport 8080 -j MARK --set-mark 1 iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain ...
2
votes
0answers
2k views

Routing only some local IPs through VPN on dd-wrt

Much similar to this entry: http://serverfault.com/questions/94283/using-dd-wrt-to-connect-to-vpn-and-forward-all-traffic-of-certain-devices-through , I have set up my router with dd-wrt + OpenVPN to ...
1
vote
0answers
207 views

Routing LDAP traffic from Application server to Proxy to internet

I've included a drawing so you get an idea how it would work. (Red = LDAP connections , Blue = HTTP / AJP in the backend) Problem: We want to connect our customer application server to an LDAP of ...
1
vote
0answers
54 views

what is PAT exactly?

In attempt to understand PAT, I've setup the following setup where I have a Linux Router that masquerades from in internal interface to the external. Thus both clients are able to talk to outside ...
0
votes
0answers
30 views

source based routing policy use ip route not works on my vm

I have an vm created with vmware. an installed centos 7 as os. the kernel is 3.x. now , my system have to network interface. and I want connect them to the same network. forexample : ...
0
votes
0answers
25 views

Auto modify all routes by a specific dev

I have to modify all routes using one specific dev. Not even modify, just append a correct src то the end of a route, like this: x.x.x.x(destination network) via y.y.y.y(MYDEV ip) dev MYDEV(network ...
0
votes
0answers
66 views

How to set up a Linux gateway for multiple WAN networks?

I have a network with the following IPv4 and IPv6 addresses: eth0 Link encap:Ethernet Hardware Adresse 30:85:a9:42:3e:60 inet Adresse:109.2xx.239.145 Bcast:109.2xx.239.255 ...
0
votes
0answers
124 views

Return traffic through same interface as entered

I've created a GRE tunnel on my Linux server (VPS, OpenVZ). Server gets a public IP address from this tunnel and I need it be accessible from Internet through it. There is already a default gateway, ...
0
votes
0answers
700 views

OpenVPN --route-up Missing environment variables when passing to script

I'm diving into the glory of OpenVPN and I'm having a bit of trouble manually configuring the routing tables. I'm on Arch Linux. I know OpenVPN automatically updates the routing tables when ...
0
votes
0answers
62 views

Conflicting ip routes with local table on attaching a virtual network interface

I have an EC2 instance with these ip rules: $ sudo ip rule show 0: from all lookup local 32766: from all lookup main 32767: from all lookup default I can attach an elastic network interface to ...
0
votes
0answers
31 views

What is the relationship between iproute2 and distro config files?

For various ip manipulation activities, what is the difference/relationship between iproute2 and modifying the distro's config files? For instance, some sources recommend ip address del for deleting ...
0
votes
0answers
85 views

Multiple routes and gateways with NAT

My setup is a VM host with two network interfaces where I want to use one as private/internal and the other one as public (which will get a public address on the host), where all the NAT magic to the ...