Default gateway'i shell'den değiştirebilir miyim ?
-
Pfsense 2.3.4 kullanıyorum.
İki tane ayrı internet bağlanrımız var.Sistemde squid kurulu olduğundan, web trafiği sadece default gateway üzerinden oluyor, burada loadbalance yapılamıyor.
Gündüz belli bir saatten sonra default gateway'i değiştirme ihtiyacımız var.
Normalde web arayüzünden System - Routing - Gateways altındaki gateaylerden birinde, Default Gateway kutucuğunu tıklayarak yaptığımız bu işlemi, komut satırından yapmak mümkün mü ?
Böylece cron'a yazıp bu işi otomatik hale getirmek istiyorum.
Ya da bu ihtiyacıma alternatif olarak ne yapabilirim ?
-
Deneme sansim olmadi routing komutlari ile cozulebilir bir sorun gibi duruyor rc.conf dosyasina eklenmedigi surece pfsense her basladigindan gw degisebilir. Asagidaki ornekler isini gorebilir.
https://www.freebsd.org/cgi/man.cgi?route
EXAMPLES
Add a default route to the network routing table. This will send all
packets for destinations not available in the routing table to the
default gateway at 192.168.1.1:route add -net 0.0.0.0/0 192.168.1.1
A shorter version of adding a default route can also be written as:
route add default 192.168.1.1
Add a static route to the 172.16.10.0/24 network via the 172.16.1.1 gate-
way:route add -net 172.16.10.0/24 172.16.1.1
Change the gateway of an already established static route in the routing
table:route change -net 172.16.10.0/24 172.16.1.2
Display the route for a destination network:
route show 172.16.10.0
Delete a static route from the routing table:
route delete -net 172.16.10.0/24 172.16.1.2
Remove all routes from the routing table:
route flush
-
Squid Advanced Options a
tcp_outgoing_address 127.0.0.1
ekleyip dener misiniz?
Pfsense 2.3.4 kullanıyorum.
İki tane ayrı internet bağlanrımız var.Sistemde squid kurulu olduğundan, web trafiği sadece default gateway üzerinden oluyor, burada loadbalance yapılamıyor.
Gündüz belli bir saatten sonra default gateway'i değiştirme ihtiyacımız var.
Normalde web arayüzünden System - Routing - Gateways altındaki gateaylerden birinde, Default Gateway kutucuğunu tıklayarak yaptığımız bu işlemi, komut satırından yapmak mümkün mü ?
Böylece cron'a yazıp bu işi otomatik hale getirmek istiyorum.
Ya da bu ihtiyacıma alternatif olarak ne yapabilirim ?