Questions tagged [iproute2]

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

The ip command is meant to replace ifconfig/route commands on Linux. This command lets you perform advanced configurations that were not possible with ifconfig/route.

See:

242 questions
2
votes
2 answers

hostapd not working anymore

I had a working hostapd file and a functioning wifi hotspot (device is busybox, iMX6 board). While the hotspot was up and running, I was doing manual routing connected to the device via ssh (I'm able to connect this device via another device's…
user522636
2
votes
1 answer

Howto redirect all SSDP packets to a specific interface via iproute2?

I have a faulty app which is sending SSDP packets on the wrong interface. I made the dev aware of the problem and it will be fixed in the new release but in the mean time I was hoping I could use iproute2 as a stop-gap measure to shore up this…
SiegeX
  • 567
  • 1
  • 6
  • 16
2
votes
1 answer

IPTables Multi-VLAN NAT to Multiple IPs

I have a slight Problem with my NAT-Setup. What I'm trying to do: I have 2 VLANs (in this example 100 and 200) and want that they can access the Network via separate IPs. This should be accomplished by a iptables NAT. I created this setup with pf…
WhoAmI
  • 347
  • 2
  • 11
2
votes
0 answers

What is "send bps" value in ss --info output?

If run ss --info, there is a send #bps in the output. I've found out that it's value is about twice bigger than real data flow speed. From ss's source code, send_bps is: s.send_bps = (double) info->tcpi_snd_cwnd * (double)info->tcpi_snd_mss *…
AlexZ
  • 41
  • 7
2
votes
1 answer

How to load-balance traffic across two independent NAT devices using Linux kernel?

I have a network with several Linux workstations/servers on it, and two Internet connections, each with a consumer-grade NAT router in front of it. So for concreteness, let's say the devices are: 192.0.2.0/26 network 192.0.2.1 router…
david
  • 263
  • 1
  • 11
2
votes
1 answer

IPv6 routing with unnumbered interface - beyound scope error

I have set up an unnumbered L2tp tunnel from home to a remote host. While trying to ping ipv6.google.com, the I received a beyond scope error, I know that prior to some time, link-local addresses are not supposed to be used this way, but now with…
Quan Zhou
  • 65
  • 1
  • 7
2
votes
1 answer

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 FORWARD (policy ACCEPT) target prot opt source …
2
votes
1 answer

ip route add works manually but throws "Error: an inet prefix is expected rather than ..." when run via bash script

I'm trying to run a script that should add this route to a table 11: ip route add local 10.1.3.212 dev eth1 proto kernel scope host src 10.1.3.212 table 11 If I run this command manually, it is successful and I can see the entry in table 11 but…
user1071840
  • 125
  • 1
  • 1
  • 8
2
votes
1 answer

OpenVPN redirect-gateway breaks other tunnels

This is my ifconfig setup: eth1 Link encap:Ethernet HWaddr 54:04:a6:49:99:16 inet addr:192.168.0.12 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::5604:a6ff:fe49:9916/64 Scope:Link UP BROADCAST…
Nikita240
  • 219
  • 1
  • 3
  • 11
2
votes
1 answer

iptables - Multiple IP's, only one is IP Prerouting correctly

I am trying to redirect all requests on port 80 to port 9000 across all my IP's I have 1 server hosting several IP addresses on eth0. For the sake of my problem, lets say they all use apache to listen to port 9000 Only the primary IP address (.106)…
Maruf
  • 159
  • 9
2
votes
4 answers

iptables drop negative DNS responses

How to drop incoming negative DNS responses in Linux? (I want a timeout instead) I'm thinking of creating an iptables rule: iptables -I INPUT -p udp --sport 53 -m u32 ... From wireshark: 000E start of IP Packet (fixed, at first, I wrote 0010) 0022…
basin
  • 558
  • 1
  • 5
  • 22
2
votes
1 answer

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 / router), eth3 is a secondary internet…
alci
  • 443
  • 2
  • 6
  • 15
2
votes
2 answers

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 configuration looks like: root@lx-anielsen ~ $ ip -6…
Allan
  • 123
  • 1
  • 5
2
votes
3 answers

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?
steveyang
  • 673
  • 4
  • 10
  • 16
2
votes
1 answer

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 (I have converted the ISP assigned subnets to…
nixnotwin
  • 1,543
  • 5
  • 35
  • 55