3 Häuser, 1 Netzwerk, 3 Gateways

Ich habe mir den Artikel noch mal durchgelesen. Ein paar Sachen sind mir noch unklar. Ich würde mich freuen, wenn ich unterstützung bekomme. Viele Dank im Voraus.

WAN1 (eth2) address: 100.64.1.5
WAN1 gateway: 100.64.1.1/24
WAN2 (eth3) address: 200.64.2.5/24
WAN2 gateway: 200.64.2.1/24


Sind das die IP-Adressen, die man vom Provieder bekommt (bei PPPoE Verbindung)?

Wenn meine IP-Adresse vom Provider am WAN1 Post AAA.BBB.CCC.DDD lautet, und das VLAN Netz 192.168.178.0/24 ist, dann wird meine config.gateway.json so asusehen:

configure
set protocols static table 5 route 0.0.0.0/0 next-hop AAA.BBB.CCC.DDD
set firewall modify LOAD_BALANCE rule 2500 action modify
set firewall modify LOAD_BALANCE rule 2500 modify table 5
set firewall modify LOAD_BALANCE rule 2500 source address 192.168.178.0/24
set firewall modify LOAD_BALANCE rule 2500 protocol all
commit;exit

oder verstuhe ich das doch falsch?
 
So aus dem Stegreif würde ich sagen, dass du eher das hier brauchst:

Code:
set protocols static table 5 interface-route 0.0.0.0/0 next-hop-interface eth0

next-hop ist das Gateway, an das alles gesendet wird und eben nicht die IP am WAN-Port. Wenn IP und Gateway aber per DHCP dynamisch zugewiesen wird, kann das Gateway natürlich auch nicht fest in den Regeln hinterlegt werden. Mit obigem Kommando müsste aber alles was im folgenden gematched wird an eben das Interface eth0 (oder welches auch das WAN-Interface sein mag) durchgereicht und dann sollte es bei dessen Standardgateway weitergehen. Bei PPPoE musst du ggfs das Interface pppoe0 nehmen.
 
Zurück
Oben