source routing

Sziasztok,
adott egy szeró (Plesk panellel) és 2 additional IP-vel.
Valamiért a plesk licencet egy additional IP-vel próbálja lekérni nem a default IP-vel.
Be kellene lőnöm, hogy az adott IP-hez a default IP-vel kapcsolódjon de ez meghaladja a képességeimet :(
Valakinek valami tanács vagy konkrétum, hogy hol és hogyan állítsam be?

A plesk support ezt küldte:
The issue is caused by the fact that system uses different source IP addresses to connect to Key Administrator server.
All three IP addresses belong to one common subnet and operating system uses different source IPs to connect to the Key Administrator server.

To fix the issue, please configure the system to use xxx.xxx.xxx.xxx as source IP address to connect to the Key Administrator server at the following destination IPs:

195.214.233.80
195.214.233.81
195.214.233.82

This is administrative task and should be performed on your side.
The following resource may be of help:
https://netplan.io/examples#source-routing

Hozzászólások

Bár nem írod, hogy milyen linux fut a szerveren, így a permanens beálltást sem tudom megmondani, de simán vedd fel ezeket route-okat mint dst és add meg hozza a kívánt src ip-t is.

(csak én mászok a falra ha meglátom/meghallom, hogy "szeró"?)

Ebben nem tudom, mi a source routing, de egy sima nat szabály szerintem megoldja:

iptables -t nat -A POSTROUTING -d célíp -j SNAT --to-source teípd

en erre SNAT/MASQ-ot csinalnek: -I POSTROUTING -d 195.214.233.82 -j SNAT --to-source xxx.xxx.xxx.xxx

--
A vegtelen ciklus is vegeter egyszer, csak kelloen eros hardver kell hozza!

Minek NAT, ha egy static route megoldja?

Sima static route nem oldana meg, mert gondolom a masodlagos ip-k ugyanazok az interface-en vannak es attol ugyanugy a default ip-vel menne ki a forgalom, ha a static route-hoz megadja source-t is akkor mar jo lehet:
ip route add via src
pl:
ip route add 195.214.233.80/30 via 192.168.1.254 src 192.168.1.111