The iproute2 tag has no wiki summary.
0
votes
0answers
23 views
Route traffic through internal (VDE) bridge
I have two NICs configured, let's say eth0 with IP 10.0.0.1/24 and eth1 with IP 192.168.1.1/24.
IP forwarding is enabled, rp_filter is disabled.
I've created 2 tap interfaces and bridged them with:
...
1
vote
2answers
53 views
Is it possible to see the routing table at the gateway (next-hop) router?
Suppose the output of the "route -n" (on Red Hat/Debian) command is as follows:
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 a.b.c.d 0.0.0.0 ...
0
votes
1answer
39 views
Special setup for a linux server to route to itself
I've got two linux servers in question. When one server initiates a request for a specific IP address that the other server has, I would like the initiating server to route the request back to itself ...
0
votes
1answer
126 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
235 views
iptables: Internal port forwarding with fwmark and routing tables
I have 2 servers and I need to forwart to internal port.
To explain I use the server with 2 interfaces (internal/external) as server A and the internal server as server B.
In server A i use
...
0
votes
1answer
74 views
Troubleshooting a failing SIP connection
I have a linux Asterisk server that is behind a firewall.
The firewall has three interfaces :
eth0 is the LAN, where Asterisk resides,
eth2 is the default gateway to the internet (via an ADSL modem ...
1
vote
1answer
155 views
Static route without knowing the nexthop (linux)
I have an eth3 interface in a linux router, with an adsl modem. This adsl modem is in bridged mode, so the public IP is assigned to eth3 (say 11.22.33.44), and the modem is just not seen by my server.
...
0
votes
1answer
232 views
Got “RTNETLINK answers: Invalid argument” when trying to add a IPv6 route
When I try to add an IPv6 route I get an error message:
root@lx-anielsen ~ $ ip -6 route add ::a:6:0/112 via ::a:4:1 dev eth1.1001
RTNETLINK answers: Invalid argument
Here is what my interface ...
0
votes
1answer
72 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
0answers
88 views
Linux source routing with 2 WAN providers and DNAT does not seem to work
I have a linux gateway connected to 2 providers; the Linux is doing NAT (IPv4). The idea is having using one provider (WAN1) for incoming and outgoing traffic and using the second (WAN2) provider for ...
1
vote
1answer
100 views
Is it makes sense to manually set broadcast address for interfaces?
I'm converting my scripts from old net-tools:
ifconfig eth0 192.168.2.1 netmask 255.255.255.0
to iproute2:
ip link set eth0 up
ip addr add 192.168.2.1/24 dev eth0
and I notice new commands ...
0
votes
1answer
88 views
Multiple VPN devices with the same IP
Well, this is a rather awkward inquiry and I'm pretty pessimistic about it, but lets see what the community has to say.
The scenario:
A server connecting to multiple VPN endpoints doing all sort of ...
61
votes
4answers
4k views
Should I quit using Ifconfig?
With the servers that mount Infiniband cards, when I use the ifconfig command, I get this warning:
Ifconfig uses the ioctl access method to get the full address
information, which limits hardware ...
0
votes
3answers
496 views
Linux policy routing - packets not coming back [closed]
i am trying to set up policy routing on my home server. My network looks like this:
Host routed VPN gateway Internet link
through VPN
192.168.0.35/24 ---> 192.168.0.5/24 ...
0
votes
0answers
51 views
Multiple Internet connections, multiple networks and split access in Linux [duplicate]
Possible Duplicate:
load balancing multiple gateway using route and iptables
I am having trouble setting up multiple internet connections for split access in Linux. We have 3 internet ...
0
votes
1answer
54 views
ip route show src field
I read the man page of ip and still do not understand what src is and I could not find much documentation.
Please, if you can explain it thoroughly or point to some link it a good answer.
0
votes
1answer
153 views
Why doesn't TUN device have BROADCAST flag?
When creating a TUN device in Linux, on my machine the created TUN device has following flags:
<POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP>
Clearly MULTICAST is listed in there but not ...
1
vote
2answers
213 views
Gateway redundancy on a single subnet
I'm trying to discover if there are any methods to have more than 1 default gateway (in a fail-over strategy) on a single subnet. If one gateway goes down then I would like to have servers fail-over ...
-1
votes
1answer
71 views
Deleting all IPs on an interface with iproute2
I have an interface that I setup like this
ip addr add 192.168.1.1/24 dev eth0
ip addr add 192.168.1.2/24 dev eth0
ip addr add 192.168.1.3/24 dev eth0
etc.
Is there an easy way to delete all of ...
3
votes
1answer
151 views
Iproute2 tools vs conntrack tools
I have a linux box which is setup as firewall/gateway for the network. Was just wondering why ss and other iproute2 tools show much less than iptables conntrack. Is it because the router function is ...
-1
votes
2answers
659 views
Route forwarded traffic through eth0 but local traffic through tun0
I have a Ubuntu 12.04/Zentyal 2.3 server configured with WAN NATed on eth0, local interfaces eth1 and wlan0 bridged on br1 on which DHCP runs, and an OpenVPN connection on tun0. I only need the VPN ...
0
votes
3answers
137 views
Using DNS in iproute2
In my setup I can redirect the default gateway based on the source address. Let's say a user is connected through tun0 (10.2.0.0/16) is redirect to another vpn. That works fine!
ip rule add from ...
0
votes
2answers
524 views
Set up router with 2 WANs and multiple subnets
I'm trying to set up a Debian box as a router for an office. I need to have 3 subnets in the LAN and 2 WAN connections, and I want one of the subnets to ALWAYS use WAN 1 and the other subnet to ALWAYS ...
3
votes
1answer
740 views
Utilize two gateways on the same network same interface with load balancing
My setup is two ISPs on a single interface and single network. I can either set my default gateway to 192.168.0.1 or 192.168.1.250 and either work.
Edit: Netmask (as noticed in the comment) is ...
0
votes
0answers
205 views
Gentoo /etc/conf.d/net does not work as i expect
Here is net config for eth2 interface :
config_eth2="10.10.10.254/24"
routes_eth2="
46.4.152.96/27 dev eth0 table rteth2
10.10.11.0/24 dev tun0 table rteth2
10.10.10.0/24 dev eth2 table rteth2
...
2
votes
3answers
88 views
what's the difference between ICMP prohibited ICMP unreachable?
If I want to forbid a route to response a network, should I use
ip route add unreachable 209.10.26.51 or ip route add prohibit 209.10.26.51?
1
vote
1answer
1k views
Iproute2: Routing with multiple networks and multiple gateways
I have a Linux box running Ubuntu 10.04 with three interfaces: eth0, eth1 and eth2. I am planning to use it as a WAN router for 4 public subnets assigned by two different ISP's. Here are the subnets ...
3
votes
1answer
215 views
NAT box load-balancing with iptables and 4 DHCP uplinks
I am trying to configure a router which provides Internet to a couple hundred users. This router has 4 basic cable uplinks at its disposition, which all use DHCP and have a capacity of around 10/1 ...
2
votes
1answer
495 views
iptables asynchronous NAT. packets drop after prerouting table
I have a Centos server acting as a NAT in my network.
This server has one external (later ext1) interface and three internal (later int1, int2 and int3). Egress traffic comes from users via int1 and ...
0
votes
1answer
426 views
What's the difference between GRE and IPIP tunnel?
And which one is better for connecting two linux machines?
1
vote
1answer
92 views
Linux networking and routing
I have 3 networks:
192.168.1.0/24
192.168.11.0/24
192.168.50.0/24
192.168.1.0/24 and 192.168.11.0/24 are connected to each other through an IPSec tunnel, and 192.168.11.0/24 and 192.168.50.0/24 are ...
2
votes
1answer
105 views
Perform iproute2 actions based on a match criteria
Is there any way to use a wildcard or other matching criteria when using iproute2? I have multiple tunnel interfaces that follow a naming convention. Something like ip tunnel del blah-* (which gives ...
3
votes
2answers
661 views
TC hashing filters - single rule deletion
For traffic shaping I'm currently using a setup that looks exactly like the setup from LARTC, on this page:
http://lartc.org/howto/lartc.adv-filter.hashing.html
I have a simple problem with that - ...
5
votes
1answer
2k views
How many custom route tables can I have on Linux?
I've been working with custom route tables on Linux, and I'm a bit confused by some of the documentation and behavior of the "ip route" command. It seems that the only valid values should be 0-255 ...
1
vote
1answer
382 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
...
3
votes
2answers
1k views
Advanced routing problem
I have 2 internet links using 2 ADSL routers and I need to give access to the Internet for the 192.168.0.0/24 network.
I have to route outgoing traffic based on port number, protocol, …
using ...
1
vote
1answer
220 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 ...
4
votes
2answers
391 views
Blackhole route private intranet traffic
I have a private network with a handful of Linux routers all route sharing via OSPF. How do I blackhole private network ranges that I don't have routes for?
In other words, I want to be sure I NEVER ...
0
votes
2answers
172 views
set default route interface in iproute2
I have two machines. One runs arch linux and another runs fedora. arch uses iproute2. so i need a conversion for iproute2 from route. this command will set the default interface to ppp0.
I have ...
0
votes
2answers
253 views
Troubleshooting firewall and routing on Linux
Are there any tools or API hooks for troubleshooting iptables or routing on Linux? (besides the obvious -j LOG)
In other words: what to do when tables with 200 or 300 firewalling rules after adding a ...
0
votes
1answer
537 views
Mikrotik route syntax to create a new routing table
I want to replace my linux gateway box to Mikrotik. But I never found how to write this linux's iproute2 command in mikrotik's way:
ip route add default via 10.1.1.1 table browser
ip route add ...
2
votes
1answer
444 views
How to change netmask with iproute2?
With ifconfig we can change the netmask with the folowing:
ifconfig eth0 netmask <new netmask>
How can we do this with the command ip?
I know ifconfig is deprecated and this mostly why I ...
0
votes
2answers
454 views
Reported bandwidth usage differs between iproute2 and ifconfig
My group has a server set up to image our workstations using FOG. I was a bit curious to see how much bandwidth we were using. When I run ifconfig eth0, the TX/RX lines read
RX packets:166949376 ...
0
votes
2answers
253 views
How can I reroute heavy traffic using iproute2
I am having two ISP connection (Link1 and Link2), I want to route all downloads traffic which are of size more than 1MB through Link2.
I have created a routing table Link2 and routing all packets ...
2
votes
1answer
300 views
Linux route cache shows high RTT for loopback - is it normal?
Here are parts of route cache from three different servers that are NOT under high load.
# ip route show cache | grep -B 1 rtt
local 127.0.0.1 from 127.0.0.1 dev lo
cache <local> mtu ...
0
votes
1answer
231 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 ...
1
vote
2answers
150 views
getting linux kernel routing rules into version control
We currently use a number of linux routers, and currently a number of the team tend to jump into servers and change the routing rules when needed, and the auditing is becoming incredibly tedious.
For ...
2
votes
1answer
2k views
Linux port based routing : reponse packets discarded
I would like to use port-based routing on my Linux local gateway. Here is my network diagram :
192.168.42.148/24 192.168.42.1/24 192.168.44.2 192.168.44.1
...
1
vote
1answer
2k views
Linux split access (multiple internet connections w/ load balancing)
Short story: I've got a faulty cisco 1811 on my hands. It's a dual wan fixed configuration router. I had it setup with route maps to do load balancing.
It works but every couple of hours it shits ...
0
votes
1answer
111 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 ...