Skip to contentSkip to conversation

I meet a problem about sctp and linux policy route

DISCUSSION Marcelo Ricardo Leitner 1 participant 1 message Jul 2, 2018 SCTP protocol

lore
Share & tools
lore

Marcelo Ricardo Leitner

author maintainer
#0 lore raw
Quoted 9 lines · peicaiyun

We config our system a policy route as follow:

echo "100 my" >> /etc/iproute2/rt_tables ip route add to 0.0.0.0/0 via 192.168.0.2 dev eth0 table my /sbin/ip rule add from 12.34.0.0/32 table my

When I send sctp package from 12.34.0.100 in my machine(12.34.0.100 is ip of this machine), to 12.34.0.111 Then I find the package was send to 12.34.0.111,not through gw 192.168.0.2 Is the sctp package not follow policy route?

Correct.

Quoted 1 line

Why the package is not routed to 192.168.0.2?

This has been asked quite a few times already. You should be able to find the answer in the archives.

Marcelo