All Questions
Tagged with ip-routing iproute2
9
questions
0
votes
1
answer
930
views
How to add a routing rule that only match "dport"?
In my OpenWrt box, I want to route only a specific protocol(tcp:1888) to a tun interface only for one PC(192.168.28.2), so I do as following:
ip rule add from 192.168.28.2 dport 1888 lookup 123
ip ...
-1
votes
2
answers
2k
views
Debian - Dual WAN - Static Route on a DHCP Interface
I've got two WAN interfaces coming into a Debian 8 VM.
WAN 1 - All Internet and local traffic. (0.0.0.0/0) Has a a static IP, thus IP, netmask and gateway are fixed values.
WAN 2 - Specific private ...
1
vote
1
answer
895
views
How to create a protocol-based default route using iproute2
I'm trying to create two routes --
Send all packets with IP protocol version 100 to 1.1.1.1 (via device eth1)
Send all other IP packets to 2.2.2.2 (via device eth2)
Reviewing the man pages of ip-...
2
votes
1
answer
39k
views
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 ...
2
votes
1
answer
354
views
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:...
1
vote
2
answers
408
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 ...
2
votes
1
answer
4k
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 ...
2
votes
1
answer
9k
views
What's the difference between GRE and IPIP tunnel?
What's the difference between GRE and IPIP tunnel and which one is better for connecting two Linux machines?
2
votes
1
answer
826
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 ...