Sunday, August 7, 2016

Linux PBR routing

ip
rule (simplified) usage
ip
rule add
- insert a new rule
ip
rule delete
- delete a rule
from
PREFIX
: select the source prefix to match.
to
PREFIX:
select the destination prefix to match.
iif
NAME
: select the incoming device to match. If the interface is loopback, the rule
only matches packets originating from this host. This means that you may create
separate routing tables for forwarded and local packets and, hence, completely segregate
them.
oif
NAME:
select the outgoing device to match. The outgoing interface is only available
for packets originating from local sockets that are bound to a device.
tos
TOS:
select the TOS value to match.
fwmark
MARK:
select the
fwmark
value to match. priority PREFERENCE the priority of
this rule. Each rule should have an explicitly set unique priority value. The options
preference and order are synonyms with priority.
table
TABLEID:
the routing table identifier to lookup if the rule selector matches. It is also
possible to use lookup instead of table.

Thursday, June 30, 2016

Packet Capture tools

Very useful tool for field engineer.  I personally use this when my co-workers need my help.

https://www.cloudshark.org/